.gestion-page { --serif: Georgia, 'Times New Roman', serif; }
.gestion-shell { width: min(1260px, calc(100% - 80px)); margin-inline: auto; }
.gestion-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.gestion-brand { display: flex; align-items: center; gap: 15px; }
.gestion-brand svg { color: var(--water); }
.gestion-brand span { font-size: 23px; line-height: 1.25; letter-spacing: -1px; }
.gestion-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.gestion-store-link { color: var(--water-light) !important; font-size: 12px; }
.gestion-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; padding-block: 48px 28px; }
.gestion-intro h1 { font-size: clamp(2.7rem, 5vw, 4.5rem); }
.gestion-intro h1 em { color: #a7c6d6; font-weight: 400; }
.gestion-intro .eyebrow { margin-bottom: 16px; }
.gestion-intro-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.gestion-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #45606f; border-radius: 3px; color: var(--water-light); font-size: 10px; line-height: 1.5; letter-spacing: .04em; }
.gestion-feedback { margin: 0 0 25px !important; padding: 14px 17px; border: 1px solid #3b515c; background: #0b1821; color: #c2d5df; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.gestion-feedback[data-error="true"] { border-color: #795443; background: #251912; color: #ffdbc5; }
.gestion-nav { display: flex; gap: 12px 24px; flex-wrap: wrap; padding-block: 10px 24px; border-bottom: 1px solid var(--line); }
.gestion-nav a { color: var(--muted); font-size: 12px; padding-block: 5px; }
.gestion-nav a:hover { color: var(--water-light); }
.gestion-section { padding-top: 46px; scroll-margin-top: 25px; }
.gestion-section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
.gestion-section-heading .eyebrow { margin-bottom: 11px; }
.gestion-section-heading h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.65rem); }
.gestion-panel, .gestion-card { min-width: 0; padding: 25px; border: 1px solid #30444f; background: #091219; }
.gestion-panel p, .gestion-card p { font-size: 13px; line-height: 1.8; color: #becdd5; }
.gestion-stack { display: grid; gap: 16px; }
.gestion-section-note { max-width: 850px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.gestion-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 11px 17px; border: 1px solid var(--honey); border-radius: 2px; background: var(--honey); color: #111411 !important; font: 500 12px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; text-align: center; cursor: pointer; }
.gestion-button:hover { background: var(--honey-bright); }
.gestion-button-secondary { border-color: #466779; color: var(--water-light) !important; background: #0c1d29; }
.gestion-button-secondary:hover { background: #153243; }
.gestion-button-quiet { border-color: #3a4e58; background: transparent; color: #bdcbd1 !important; }
.gestion-button-danger { border-color: #8d5f51; background: #321d1b; color: #ffe0d3 !important; }
.gestion-button:disabled { opacity: .55; cursor: wait; }
.gestion-inline-link { color: var(--water-light) !important; font-size: 12px; text-decoration: underline !important; text-underline-offset: 4px; }
.gestion-page :is(button, input, select, textarea, summary, a):focus-visible { outline: 2px solid var(--water-light); outline-offset: 4px; }
.gestion-page label { display: block; min-width: 0; font-size: 12px; color: #c8d7df; }
.gestion-page label > span { display: block; margin-bottom: 7px; }
.gestion-page :is(input:not([type="checkbox"]), select, textarea) { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid #3a5665; border-radius: 2px; background: #0a1821; padding: 10px 12px; color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color-scheme: dark; }
.gestion-page textarea { resize: vertical; }
.gestion-page input[type="checkbox"] { width: 19px; height: 19px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--water); }
.gestion-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gestion-form-grid .gestion-full { grid-column: 1 / -1; }
.gestion-check { display: flex !important; align-items: flex-start; gap: 12px; line-height: 1.7; }
.gestion-check span { margin: 0 !important; }
.gestion-check small { display: block; margin-top: 3px; color: var(--muted); }
.gestion-settings-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 25px; margin: 26px 0; }
.gestion-filter { display: flex !important; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.gestion-filter > span { margin: 0 !important; }
.gestion-filter select { width: auto; max-width: 100%; }
.gestion-readiness-list { margin: 16px 0 0; padding-left: 20px; }
.gestion-readiness-list li { margin: 8px 0; font-size: 13px; color: #d0dae0; line-height: 1.7; }
.gestion-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.gestion-metric { padding: 20px; border: 1px solid #2a414e; background: #071018; }
.gestion-metric strong { display: block; color: var(--water-light); font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.2; }
.gestion-metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.gestion-card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.gestion-card-heading h3 { margin: 0; font-size: 24px; }
.gestion-card-heading .gestion-date { color: var(--muted); font-size: 11px; margin-top: 6px; }
.gestion-order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.gestion-order-grid h4 { margin: 0 0 9px; color: var(--water-light); font-size: 12px; font-weight: 500; }
.gestion-address { white-space: pre-line; overflow-wrap: anywhere; }
.gestion-order-lines { list-style: none; padding: 0; margin: 0; }
.gestion-order-lines li { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; border-bottom: 1px solid #243b47; font-size: 12px; line-height: 1.7; }
.gestion-order-lines small { color: var(--muted); display: block; }
.gestion-order-lines strong { white-space: nowrap; }
.gestion-order-totals { display: grid; gap: 6px; margin-top: 14px; }
.gestion-order-totals div { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; line-height: 1.7; }
.gestion-order-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #2b414c; }
.gestion-order-actions form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; width: 100%; }
.gestion-order-actions form label { flex: 1 1 180px; }
.gestion-order-actions form label.gestion-check { flex-basis: 100%; }
.gestion-order-actions .gestion-preparation-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.gestion-preparation-form h4 { margin: 0; color: var(--water-light); font-size: 16px; }
.gestion-preparation-note { margin: 0 !important; max-width: 850px; }
.gestion-preparation-line { min-width: 0; margin: 0; padding: 18px; border: 1px solid #3a5361; }
.gestion-preparation-line legend { max-width: 100%; padding: 0 7px; color: var(--ink); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.gestion-preparation-target { margin: 0 0 16px !important; }
.gestion-preparation-locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gestion-preparation-locations label { min-width: 0; }
.gestion-preparation-locations small, .gestion-preparation-packaging small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.gestion-preparation-total { display: block; margin-top: 15px; font-size: 12px; color: var(--muted); }
.gestion-preparation-total[data-valid="true"] { color: #a8dfc2; }
.gestion-preparation-total[data-valid="false"] { color: #f3c29d; }
.gestion-preparation-packaging { max-width: 580px; }
.gestion-preparation-form > .gestion-button { justify-self: start; }
.gestion-preparation-receipt { margin-block: 20px; padding: 16px; background: #0b1a22; border: 1px solid #385362; }
.gestion-preparation-receipt h4 { margin: 0 0 10px; }
.gestion-preparation-receipt ul { padding-left: 17px; margin: 0; font-size: 12px; line-height: 1.8; }
.gestion-preparation-receipt li { margin-bottom: 6px; overflow-wrap: anywhere; }
.gestion-preparation-receipt p { margin-bottom: 0; }
.gestion-product summary { cursor: pointer; font-size: 18px; color: var(--ink); line-height: 1.6; }
.gestion-product summary small { display: block; margin: 5px 0 0 20px; color: var(--muted); font: 11px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.gestion-product-body { margin-top: 25px; }
.gestion-price-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-block: 20px; }
.gestion-price-grid label > span { font-size: 11px; }
.gestion-price-grid input { padding-inline: 9px; }
.gestion-product-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.gestion-stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; padding-top: 22px; border-top: 1px solid #30444f; }
.gestion-stock-grid form { min-width: 0; padding: 17px; border: 1px solid #293e49; }
.gestion-stock-grid h4 { margin: 0 0 8px; font-size: 14px; color: var(--water-light); }
.gestion-stock-grid p { margin-bottom: 14px; font-size: 11px; }
.gestion-stock-grid label { margin-bottom: 13px; }
.gestion-stock-grid .gestion-button { width: 100%; }
.gestion-device-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.gestion-device-form label { flex: 1 1 250px; }
.gestion-device-form .gestion-device-scope-note { flex-basis: 100%; margin: 0; font-size: 12px; }
.gestion-device-form .gestion-device-native-confirm { flex-basis: 100%; padding: 16px; border: 1px solid #6e6044; background: #1d1b13; }
.gestion-device-native-confirm small { display: block; margin-top: 5px; color: #c7c0ac; font-size: 11px; }
.gestion-native-status { margin-bottom: 25px; padding: 20px; border: 1px solid #6d5d3d; background: #1b1811; }
.gestion-native-status h3 { margin: 0 0 12px; font-size: 23px; }
.gestion-native-status p:last-child { margin-bottom: 0; }
.gestion-native-status[data-active="true"] { border-color: #426a58; background: #0e2019; }
.gestion-native-status[data-active="unknown"] { border-color: #7b5143; background: #251813; }
.gestion-native-revision { color: var(--muted) !important; font-size: 11px !important; }
.gestion-native-stock-lock { padding-left: 10px; border-left: 2px solid var(--honey); color: #d3c39e !important; }
.gestion-stock-grid form[data-native-stock-locked="true"] input { opacity: .65; cursor: not-allowed; }
.gestion-secret { margin-top: 25px; padding: 22px; border: 1px solid #887044; background: #201b13; }
.gestion-secret h3 { margin-top: 0; }
.gestion-secret textarea { margin: 10px 0 16px; overflow-wrap: anywhere; }
.gestion-secret .gestion-button { margin: 0 10px 10px 0; }
.gestion-message-row, .gestion-device-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 19px; border: 1px solid #2c444f; background: #0a151d; }
.gestion-message-row p, .gestion-device-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.gestion-message-row strong, .gestion-device-row strong { font-weight: 500; font-size: 13px; overflow-wrap: anywhere; }
.gestion-empty { margin: 0 !important; padding: 25px; border: 1px dashed #3b5360; color: var(--muted); font-size: 13px; line-height: 1.8; }
.gestion-event { padding-block: 13px; border-bottom: 1px solid #293b45; font-size: 12px; overflow-wrap: anywhere; }
.gestion-event small { display: block; color: var(--muted); }
.gestion-withdrawal { margin-top: 20px; padding: 20px; border: 1px solid #705540; background: #20180f; }
.gestion-withdrawal p { color: #d5c7b5; font-size: 12px; overflow-wrap: anywhere; }
.gestion-reconciliation-form { display: grid; gap: 16px; margin-top: 22px; }
.gestion-reconciliation-form .gestion-button { justify-self: start; }
.gestion-packaging-row { min-width: 0; margin: 0 0 25px; padding: 24px 20px; border: 1px solid #3a5260; }
.gestion-packaging-row legend, .gestion-overseas legend { padding-inline: 8px; color: var(--water-light); font-size: 13px; line-height: 1.7; }
.gestion-packaging-row h4 { margin: 24px 0 14px; color: #d0dce2; font-size: 13px; font-weight: 500; }
.gestion-packaging-row p { margin-top: 14px; font-size: 11px; }
.gestion-packaging-row [data-remove-packaging-profile] { margin-top: 20px; }
.gestion-profile-flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.gestion-packaging-weights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gestion-overseas { min-width: 0; margin-top: 28px; padding: 20px; border: 1px solid #344d5b; }
.gestion-packaging-confirmation { margin: 25px 0 20px; }
.gestion-footer { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-top: 50px; padding-block: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
@media (max-width: 800px) {
  .gestion-shell { width: calc(100% - 40px); }
  .gestion-intro { align-items: flex-start; }
  .gestion-intro-actions { max-width: 150px; }
  .gestion-stock-grid { grid-template-columns: 1fr; }
  .gestion-stock-grid form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .gestion-stock-grid form h4, .gestion-stock-grid form p { grid-column: 1 / -1; margin: 0; }
  .gestion-stock-grid form .gestion-button { align-self: end; margin-bottom: 13px; }
  .gestion-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gestion-shell { width: calc(100% - 32px); }
  .gestion-header { padding-block: 21px; }
  .gestion-brand span { font-size: 20px; }
  .gestion-brand small { font-size: 8px; }
  .gestion-store-link { font-size: 10px; }
  .gestion-intro { display: block; padding-top: 32px; }
  .gestion-intro h1 { font-size: 43px; }
  .gestion-intro-actions { max-width: none; justify-content: flex-start; margin-top: 22px; }
  .gestion-nav { gap: 9px 18px; }
  .gestion-nav a { font-size: 11px; }
  .gestion-section { padding-top: 35px; }
  .gestion-panel, .gestion-card { padding: 20px 17px; }
  .gestion-metrics { gap: 8px; }
  .gestion-metric { padding: 16px 11px; }
  .gestion-metric strong { font-size: 27px; }
  .gestion-metric span { font-size: 10px; }
  .gestion-order-grid, .gestion-form-grid, .gestion-settings-checks { grid-template-columns: minmax(0, 1fr); }
  .gestion-profile-flags, .gestion-packaging-weights { grid-template-columns: minmax(0, 1fr); }
  .gestion-preparation-locations { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .gestion-preparation-line { padding: 16px 12px; }
  .gestion-preparation-form > .gestion-button { width: 100%; }
  .gestion-packaging-row { padding: 21px 13px; }
  .gestion-overseas { padding: 20px 13px; }
  .gestion-form-grid .gestion-full { grid-column: auto; }
  .gestion-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gestion-stock-grid form { display: block; }
  .gestion-stock-grid form h4 { margin-bottom: 8px; }
  .gestion-stock-grid form p { margin-bottom: 14px; }
  .gestion-stock-grid form .gestion-button { margin: 0; }
  .gestion-section-heading .gestion-button { width: 100%; }
}
