/* ============================================================
   Reseller Restock — Admin CSS
   ============================================================ */

/* ── Wrapper generale ── */
.rr-admin-wrap { max-width: 1200px; }
.rr-admin-wrap h1 { margin-bottom: 0; }

/* ── Tabella rivenditori ── */
.rr-table { margin-top: 12px; }
.rr-table th { font-size: .8125rem; }
.rr-table td { vertical-align: middle; font-size: .875rem; }

/* ── Badge stato ── */
.rr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.rr-badge--pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.rr-badge--approved { background: #d1e7dd; color: #0a3622; border: 1px solid #2e7d32; }
.rr-badge--rejected { background: #f8d7da; color: #58151c; border: 1px solid #dc3545; }

/* ── Azioni riga ── */
.rr-actions-cell { white-space: nowrap; }
.rr-row-actions  { display: flex; gap: 6px; flex-wrap: wrap; }

.rr-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity .15s;
    white-space: nowrap;
}
.rr-btn-action:hover { opacity: .85; text-decoration: none; }

.rr-btn-action--approve { background: #d1e7dd; color: #0a3622; border-color: #a3cfbb; }
.rr-btn-action--reject  { background: #f8d7da; color: #58151c; border-color: #f1aeb5; }
.rr-btn-action--revoke  { background: #fff3cd; color: #664d03; border-color: #ffda6a; }
.rr-btn-action--edit    { background: #e9ecef; color: #495057; border-color: #ced4da; }

/* ── Filtri subsubsub ── */
.rr-admin-wrap .subsubsub {
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0 16px;
    padding: 0;
    font-size: .875rem;
}
.rr-admin-wrap .subsubsub li { margin: 0; padding: 0; list-style: none; }
.rr-admin-wrap .subsubsub li a {
    padding: 4px 10px;
    border-radius: 4px;
    color: #2271b1;
    text-decoration: none;
    border: 1px solid transparent;
}
.rr-admin-wrap .subsubsub li a:hover { background: #f0f0f0; }
.rr-admin-wrap .subsubsub li a.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* ── Form frontend — registrazione rivenditore ── */
.rr-reg-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rr-reg-header { margin-bottom: 28px; }
.rr-reg-title  { font-size: 1.625rem; font-weight: 800; margin: 0 0 8px; color: #1c2526; }
.rr-reg-subtitle { font-size: .9375rem; color: #607d8b; margin: 0; line-height: 1.6; }

.rr-reg-section {
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.rr-reg-section-title {
    font-size: .9375rem;
    font-weight: 700;
    color: #37474f;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eceff1;
}

.rr-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 580px) {
    .rr-reg-grid { grid-template-columns: 1fr; }
}

.rr-reg-field { display: flex; flex-direction: column; gap: 5px; }
.rr-reg-field--full { grid-column: 1 / -1; }
.rr-reg-field--sm   { grid-column: span 1; }

.rr-reg-field label {
    font-size: .8125rem;
    font-weight: 700;
    color: #455a64;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.rr-required { color: #c62828; }

.rr-reg-field input,
.rr-reg-section textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #cfd8dc;
    border-radius: 7px;
    font-size: .9375rem;
    color: #263238;
    background: #fff;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.rr-reg-field input:focus,
.rr-reg-section textarea:focus { border-color: #1b5e20; box-shadow: 0 0 0 3px rgba(27,94,32,.1); }
.rr-reg-field input::placeholder { color: #b0bec5; }

.rr-reg-section textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.rr-reg-privacy {
    background: #f5f7f6;
    border: 1px solid #eceff1;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: .875rem;
    color: #455a64;
}
.rr-reg-privacy label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.rr-reg-privacy input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }
.rr-reg-privacy a { color: #1b5e20; font-weight: 600; }

.rr-reg-feedback {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}
.rr-reg-feedback--success { background: #d1e7dd; color: #0a3622; border-left: 4px solid #2e7d32; }
.rr-reg-feedback--error   { background: #f8d7da; color: #58151c; border-left: 4px solid #c62828; }

.rr-reg-submit {
    width: 100%;
    padding: 14px 24px;
    background: #1b5e20;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    font-family: inherit;
}
.rr-reg-submit:hover:not(:disabled) { background: #145214; transform: translateY(-1px); }
.rr-reg-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Notice rivenditore già loggato */
.rr-reg-notice {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: .9375rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.rr-reg-notice--success { background: #d1e7dd; color: #0a3622; border-left: 4px solid #2e7d32; }
.rr-reg-notice--warning { background: #fff3cd; color: #664d03; border-left: 4px solid #ffc107; }
.rr-reg-notice--error   { background: #f8d7da; color: #58151c; border-left: 4px solid #c62828; }
.rr-reg-notice a { font-weight: 700; color: inherit; text-decoration: underline; }
