


.ret-ecran {
    min-height: 100vh;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    font-family: 'Manrope', sans-serif;
}


.ret-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    flex-wrap: wrap;
}

.ret-brand { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; }
.ret-brand em { font-style: normal; font-weight: 500; opacity: .7; font-size: 12.5px; margin-left: 6px; }

.ret-ctxs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ret-ctx { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ret-ctx .ret-k { opacity: .65; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.ret-ctx .ret-v { font-weight: 600; }
.ret-lk { font-size: 12px; }
.ret-sel {
    background: color-mix(in srgb, #fff 12%, transparent);
    color: #fff;
    border: 1px solid color-mix(in srgb, #fff 25%, transparent);
    border-radius: var(--r-8);
    padding: 4px 8px;
    font-size: 13px;
}
.ret-sel option { color: var(--ink); }

.ret-quit {
    background: color-mix(in srgb, #fff 10%, transparent);
    color: #fff;
    border: 1px solid color-mix(in srgb, #fff 25%, transparent);
    border-radius: var(--r-9);
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}


.ret-main {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.ret-scan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-14);
    padding: 18px;
}

.ret-scan-lbl { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); margin-bottom: 8px; }
.ret-scan-row { display: flex; gap: 8px; }
.ret-scan-row input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    padding: 12px 14px;
    font-size: 18px;
    font-family: var(--num-font);
    font-variant-numeric: tabular-nums;
}
.ret-loupe {
    border: none;
    background: var(--teal);
    color: #fff;
    border-radius: var(--r-10);
    padding: 0 18px;
    font-size: 18px;
    cursor: pointer;
}
.ret-note { margin: 8px 0 0; font-size: 12.5px; color: var(--slate); }


.ret-msg {
    border-radius: var(--r-12);
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
}
.ret-msg.warn { background: var(--amber-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.ret-msg.info { background: var(--blue-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.ret-msg span { display: block; margin-top: 4px; color: var(--slate); }
.ret-msg button {
    display: inline-block;
    margin-top: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-9);
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}


.ret-cands { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ret-cands-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.ret-cand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-11);
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13.5px;
}
.ret-cand:hover { background: var(--teal-soft); }
.ret-cand-t b { font-family: 'Manrope', sans-serif; }
.ret-cand-m { color: var(--slate); white-space: nowrap; }


.ret-vente {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-14);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ret-vente-t b { font-family: 'Manrope', sans-serif; font-size: 16px; display: block; }
.ret-vente-t span { font-size: 12.5px; color: var(--slate); }
.ret-vente-m { display: flex; align-items: center; gap: 16px; font-size: 13.5px; flex-wrap: wrap; }
.ret-autre {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-9);
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
}


.ret-lignes {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-14);
    overflow: clip;
}
.ret-lignes-t {
    padding: 10px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--slate);
    background: var(--thead-bg);
    border-bottom: 1px solid var(--line);
}

.ret-ligne { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ret-ligne:last-child { border-bottom: none; }
.ret-ligne.on { background: var(--row-soft); }
.ret-ligne.grise { opacity: .55; background: var(--paper); }

.ret-l-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.ret-l-t span { color: var(--slate); font-size: 12.5px; }
.ret-l-fin { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--slate); }

.ret-l-a { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ret-l-p { font-size: 12.5px; color: var(--slate); margin-right: auto; }
.ret-l-a button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-10);
    font-size: 18px;
    cursor: pointer;
}
.ret-l-q {
    width: 64px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    font-size: 15px;
}
.ret-l-max { font-size: 13px; color: var(--slate); }
.ret-l-m { font-size: 14.5px; }
.ret-x {
    color: var(--red);
    border-color: color-mix(in srgb, var(--red) 40%, transparent) !important;
}


.ret-pied {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-14);
    padding: 18px;
}

.ret-gros { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ret-gros .ret-k { font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--slate); }

.ret-gros .ret-v { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 40px; color: var(--teal-dark); }
.ret-gros .ret-v small { font-size: 16px; margin-left: 6px; color: var(--slate); }

.ret-sous { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 6px; color: var(--ink); }
.ret-compte { margin-top: 10px; font-size: 12.5px; color: var(--slate); }


.ret-pied .ret-msg { margin-top: 12px; }
.ret-actions { display: flex; gap: 10px; margin-top: 14px; }
.ret-val {
    flex: 1;
    border: none;
    background: var(--teal);
    color: #fff;
    border-radius: var(--r-12);
    padding: 14px;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
}
.ret-val:disabled { opacity: .45; cursor: default; }
.ret-ann {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-12);
    padding: 14px 18px;
    font-size: 14px;
    cursor: pointer;
}


.ret-voile { position: fixed; inset: 0; background: rgba(12, 23, 48, .45); z-index: 60; }
.ret-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100vw - 32px));
    max-height: 80vh;
    overflow: auto;
    background: var(--surface);
    border-radius: var(--r-16);
    z-index: 61;
    padding: 16px;
}
.ret-sh-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ret-sh-hd .ret-x { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-9); cursor: pointer; }
.ret-sh-bd { display: flex; flex-direction: column; gap: 8px; }
.ret-sh-search {
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    padding: 10px 12px;
    font-size: 14px;
}
.ret-opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13.5px;
}
.ret-opt:hover { background: var(--teal-soft); }
.ret-opt span { color: var(--slate); font-size: 12px; }


.ret-conf { text-align: center; }
.ret-conf-ic {
    width: 52px; height: 52px;
    margin: 4px auto 8px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 26px;
    display: flex; align-items: center; justify-content: center;
}
.ret-conf-t { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; }
.ret-conf-n { font-family: 'Manrope', sans-serif; font-size: 24px; color: var(--teal-dark); margin: 6px 0; }
.ret-conf-s { font-size: 13.5px; color: var(--slate); margin-bottom: 14px; }


.ret-tk {
    width: 100%; height: 44px; margin-bottom: 8px;
    border: 1.5px solid var(--line); border-radius: var(--r-12);
    background: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
}


.ret-toast {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 70;
    max-width: min(440px, calc(100vw - 28px));
    border-radius: var(--r-12);
    padding: 12px 16px;
    font-size: 13.5px;
    white-space: pre-line;
    box-shadow: 0 8px 26px rgba(12, 23, 48, .18);
}
.ret-toast.err { background: var(--red-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); }
.ret-toast.warn { background: var(--amber-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); }


@media (max-width: 900px) {
    .ret-bar { padding: 10px 12px; }
    .ret-main { padding: 12px 10px 32px; }
    .ret-gros .ret-v { font-size: 32px; }
    .ret-l-p { flex-basis: 100%; margin-right: 0; }
    .ret-actions { flex-direction: column; }
    .ret-vente { flex-direction: column; align-items: flex-start; }
}
