/* ══════════════════════════════════════════════
   VOLTEX — stock.css
   Styles pour les vues de gestion de stock
   À inclure dans chaque vue via <link> ou <style>
══════════════════════════════════════════════ */

/* ── SPACING GLOBAL STOCK PAGES ──────────────── */

/* Espace au-dessus du menu nav (toutes pages) */
.sn-wrap {
  margin-top: 1.8rem;
}

/* Padding gauche uniforme sur tous les titres/headers stock */
.stock-page-header,
.bo-page-header,
.stock-page-title,
.bo-title {
  padding-left: .25rem;
}

/* ── PAGE HEADER ─────────────────────────────── */
.bo-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(200,255,0,.1);
    flex-wrap: wrap;
    gap: 1rem;
}
.bo-eyebrow {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #C8FF00;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.bo-breadcrumb { color: #6B7280; text-decoration: none; }
.bo-breadcrumb:hover { color: #C8FF00; }
.bo-breadcrumb-sep { color: #4B5563; margin: 0 .3rem; }
.bo-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: .06em;
    line-height: 1;
    color: #F4F6F8;
    margin-bottom: .3rem;
}
.bo-subtitle { font-size: .82rem; color: #6B7280; }
.bo-header-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ── BUTTONS ─────────────────────────────────── */
.btn-bo {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.1rem;
    border-radius: 3px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
}
.btn-bo svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-bo-primary {
    background: #C8FF00;
    color: #080A0F;
    border-color: #C8FF00;
}
.btn-bo-primary:hover {
    background: #F4F6F8;
    border-color: #F4F6F8;
    color: #080A0F;
    transform: translateY(-1px);
}
.btn-bo-secondary {
    background: transparent;
    color: #6B7280;
    border-color: rgba(200,255,0,.15);
}
.btn-bo-secondary:hover {
    color: #F4F6F8;
    border-color: rgba(200,255,0,.4);
    background: rgba(200,255,0,.04);
}

/* ── STATS GRID ──────────────────────────────── */
.bo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 900px) { .bo-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .bo-stats-grid { grid-template-columns: 1fr; } }

.bo-stat-card {
    position: relative;
    background: #111520;
    border: 1px solid rgba(200,255,0,.1);
    border-radius: 3px;
    padding: 1.2rem 1.3rem;
    overflow: hidden;
}
.bo-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(200,255,0,.2);
}
.bo-stat-card.bo-stat-alert { border-color: rgba(255,68,68,.25); }
.bo-stat-card.bo-stat-alert::after { background: #FF4444; }

.bo-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: .04em;
    line-height: 1;
    color: #C8FF00;
    margin-bottom: .3rem;
}
.bo-stat-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #6B7280;
}
.bo-stat-icon {
    position: absolute;
    top: .9rem;
    right: 1rem;
    font-size: 1rem;          /* ← taille fixe petite */
    color: rgba(200,255,0,.2);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ── SECTIONS ────────────────────────────────── */
.bo-section {
    background: #111520;
    border: 1px solid rgba(200,255,0,.08);
    border-radius: 3px;
    padding: 1.4rem;
    margin-bottom: 1.5rem;
}
.bo-section-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid rgba(200,255,0,.06);
}
.bo-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: .1em;
    color: #F4F6F8;
    margin: 0;
}

/* ── BADGE ───────────────────────────────────── */
.bo-badge {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: rgba(200,255,0,.08);
    color: #C8FF00;
    border: 1px solid rgba(200,255,0,.2);
    padding: .15rem .5rem;
    border-radius: 2px;
}

/* ── TAGS ────────────────────────────────────── */
.bo-tag {
    display: inline-block;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .18rem .5rem;
    border-radius: 2px;
    border: 1px solid;
}
.tag-green  { background: rgba(200,255,0,.1);   color: #C8FF00; border-color: rgba(200,255,0,.25); }
.tag-red    { background: rgba(255,68,68,.1);    color: #FF4444; border-color: rgba(255,68,68,.25); }
.tag-blue   { background: rgba(0,200,255,.1);    color: #00C8FF; border-color: rgba(0,200,255,.25); }
.tag-purple { background: rgba(139,92,246,.1);   color: #8B5CF6; border-color: rgba(139,92,246,.25); }
.tag-muted  { background: rgba(107,114,128,.1);  color: #6B7280; border-color: rgba(107,114,128,.2); }

/* ── ALERTS ──────────────────────────────────── */
.bo-alert {
    padding: .85rem 1.1rem;
    border-radius: 3px;
    font-size: .82rem;
    margin-bottom: 1.2rem;
    border: 1px solid;
    line-height: 1.6;
}
.bo-alert-error   { background: rgba(255,68,68,.08);  color: #FF4444; border-color: rgba(255,68,68,.25); }
.bo-alert-success { background: rgba(200,255,0,.07);  color: #C8FF00; border-color: rgba(200,255,0,.2); }

/* ── TABLE ───────────────────────────────────── */
.bo-table-wrap { overflow-x: auto; }
.bo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}
.bo-table th {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #4B5563;
    padding: .55rem .75rem;
    border-bottom: 1px solid rgba(200,255,0,.08);
    text-align: left;
    white-space: nowrap;
}
.bo-table td {
    padding: .7rem .75rem;
    border-bottom: 1px solid rgba(200,255,0,.04);
    color: #6B7280;
    vertical-align: middle;
}
.bo-table tr:last-child td { border-bottom: none; }
.bo-table tr:hover td { background: rgba(200,255,0,.02); color: #F4F6F8; }
.bo-table td strong { color: #F4F6F8; }
.bo-table .text-right { text-align: right; }
.bo-table .text-center { text-align: center; }
.bo-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #4B5563;
    font-size: .82rem;
}
.row-alert td { background: rgba(255,68,68,.03) !important; }
.bo-meta { font-size: .7rem; color: #4B5563; margin-top: .1rem; }
.text-volt   { color: #C8FF00; }
.text-blue   { color: #00C8FF; }
.text-red    { color: #FF4444; }
.text-right  { text-align: right; }
.text-center { text-align: center; }

/* ── LINK ────────────────────────────────────── */
.bo-link { color: #C8FF00; text-decoration: none; }
.bo-link:hover { text-decoration: underline; }

/* ── HINT ────────────────────────────────────── */
.bo-hint { font-size: .68rem; color: #4B5563; margin-top: .3rem; line-height: 1.5; }
.text-center { text-align: center; }

/* ── FORMS ───────────────────────────────────── */
.bo-form { margin-top: .5rem; }
.bo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}
@media (max-width: 600px) { .bo-form-grid { grid-template-columns: 1fr; } }
.bo-field { display: flex; flex-direction: column; gap: .3rem; }
.bo-field--full { grid-column: 1 / -1; }
.bo-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6B7280;
}
.required { color: #FF4444; }
.bo-input {
    background: #0D1017;
    border: 1px solid rgba(200,255,0,.12);
    border-radius: 3px;
    color: #F4F6F8;
    font-size: .82rem;
    padding: .6rem .8rem;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.bo-input::placeholder { color: #4B5563; }
.bo-input:focus {
    border-color: #C8FF00;
    box-shadow: 0 0 0 2px rgba(200,255,0,.08);
}
.bo-input option { background: #111520; }
.bo-form-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.bo-info-list { display: flex; flex-direction: column; }
.bo-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(200,255,0,.06);
    font-size: .82rem;
}
.bo-info-row:last-child { border-bottom: none; }
.bo-info-lbl { color: #6B7280; }
.bo-info-val { color: #F4F6F8; font-weight: 600; }

/* ── STOCK SUB-NAVIGATION ────────────────────── */
.stock-subnav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: 1.5rem;
  padding: .3rem;
  background: #0D1017;
  border: 1px solid rgba(200,255,0,.1);
  border-radius: 4px;
  width: fit-content;
}
.stock-subnav-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #6B7280;
  transition: color .15s, background .15s;
}
.stock-subnav-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .7;
}
.stock-subnav-item:hover {
  color: #F4F6F8;
  background: rgba(200,255,0,.05);
}
.stock-subnav-item.active {
  color: #080A0F;
  background: #C8FF00;
}
.stock-subnav-item.active svg {
  opacity: 1;
}
