/* Club Review — front-end /account/zayavki/ */
.sktvd-rev-wrap { max-width: 100%; }

/* AJAX action states (card swapped in place, no reload) */
.sktvd-rev-busy { opacity: .5; pointer-events: none; transition: opacity .15s ease; }
.sktvd-rev-flash { animation: sktvd-rev-flash .9s ease; }
@keyframes sktvd-rev-flash { from { background: #eef3e9; } to { background: transparent; } }
.sktvd-rev-error { margin: 10px 0 0; color: #b5482e; font-size: 13.5px; }
.sktvd-rev-title { margin: 0 0 16px; font-size: 22px; }

/* Strip Impreza-theme input chrome (the «ghost pill» / inset gradient it paints
   behind every field) and give all our inputs a single neat rectangular style.
   !important is required because Impreza targets input:not([type=submit]) with
   equal specificity and a pill border-radius. Same approach as Журнал телят. */
.sktvd-rev-wrap input:not([type="checkbox"]):not([type="radio"]),
.sktvd-rev-wrap select,
.sktvd-rev-wrap textarea {
    box-shadow: none !important;
    background-image: none !important;
    background-color: #fff;
    border: 1px solid #d9d2c2 !important;
    border-radius: 8px !important;
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.sktvd-rev-wrap textarea { padding: 8px 12px; min-height: 64px; line-height: 1.4; }
.sktvd-rev-wrap input:focus,
.sktvd-rev-wrap select:focus,
.sktvd-rev-wrap textarea:focus {
    box-shadow: none !important;
    outline: 0 !important;
    border-color: #627452 !important;
}
/* native select arrow (we stripped appearance). Single `background` shorthand
   with !important so Impreza's own `background` shorthand can't re-tile our
   chevron across the field (the «zigzag» bug). */
.sktvd-rev-wrap select {
    padding-right: 34px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239da6a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center !important;
    background-size: 12px 12px !important;
}

/* Status chips — neat rounded tabs, not oval pills */
.sktvd-rev-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sktvd-rev-chip {
    padding: 6px 12px; border: 1px solid #e6dfd0; border-radius: 8px;
    text-decoration: none; color: inherit; font-size: 14px; line-height: 1.4;
}
.sktvd-rev-chip.is-active { background: #627452; color: #fff; border-color: #627452; }

/* Search + sort toolbar — single row. width:auto !important defeats Impreza's
   `input,select{width:100%}` which would otherwise force each field onto its
   own line. */
.sktvd-rev-toolbar { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; margin-bottom: 16px; }
.sktvd-rev-search { flex: 1 1 auto !important; width: auto !important; min-width: 0; }
.sktvd-rev-sort { flex: 0 0 auto !important; width: auto !important; min-width: 170px; }
/* High-specificity (0-3-0) so the theme's `.woocommerce .button{color:var()!important}`
   (0-2-0) can't override the white button text. */
.sktvd-rev-wrap .sktvd-rev-toolbar .sktvd-rev-search-btn {
    flex: 0 0 auto; white-space: nowrap;
    min-height: 38px !important; padding: 0 18px !important; border-radius: 8px !important;
    background: #627452 !important; color: #fff !important; border: 1px solid #627452 !important;
    box-shadow: none !important; font-size: 14px;
}

/* Compact rows */
.sktvd-rev-list { border: 1px solid #e6dfd0; border-radius: 14px; overflow: hidden; }
.sktvd-rev-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    min-height: 44px; text-decoration: none; color: inherit;
    border-bottom: 1px solid #f0ece2; transition: background 0.15s ease;
}
.sktvd-rev-row:last-child { border-bottom: 0; }
.sktvd-rev-row:hover { background: #f7f5ef; }
.sktvd-rev-row-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.sktvd-rev-row-name { font-weight: 600; }
.sktvd-rev-row-email { font-size: 13px; color: #9da6a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sktvd-rev-row-date { flex: 0 0 auto; font-size: 13px; color: #9da6a8; }
.sktvd-rev-row-tier { flex: 0 0 auto; font-size: 13px; color: #627452; }
.sktvd-rev-row-chevron { flex: 0 0 auto; font-size: 20px; color: #9da6a8; }

/* Status badges */
.sktvd-rev-badge { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.sktvd-rev-badge--pending   { background: #fff4d6; color: #8a6d1a; }
.sktvd-rev-badge--approved  { background: #e3ede0; color: #3f5233; }
.sktvd-rev-badge--suspended { background: #fde4cf; color: #9a4a17; }
.sktvd-rev-badge--rejected  { background: #efefef; color: #6b6b6b; }
.sktvd-rev-badge--none      { background: #efefef; color: #9da6a8; }

/* Pagination */
.sktvd-rev-pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.sktvd-rev-page {
    min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e6dfd0; border-radius: 10px; text-decoration: none; color: inherit;
}
.sktvd-rev-page.is-active { background: #627452; color: #fff; border-color: #627452; }

.sktvd-rev-empty { color: #9da6a8; }

/* Detail view — compact card */
.sktvd-rev-detail .sktvd-rev-back a { text-decoration: none; color: #627452; font-weight: 600; font-size: 14px; }
.sktvd-rev-card { border: 1px solid #e6dfd0; border-radius: 14px; padding: 20px 22px; margin-top: 12px; }
.sktvd-rev-card-header { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.sktvd-rev-card-email { font-size: 13px; color: #9da6a8; font-weight: 400; }
.sktvd-rev-questionnaire { margin: 10px 0 0; }
.sktvd-rev-questionnaire > summary { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #9da6a8; cursor: pointer; margin-bottom: 4px; }
.sktvd-rev-q-table { width: 100%; border-collapse: collapse; }
.sktvd-rev-q-table tr { border-bottom: 1px solid #f2efe7; }
.sktvd-rev-q-table tr:last-child { border-bottom: 0; }
.sktvd-rev-q-table th { text-align: left; vertical-align: top; padding: 5px 24px 5px 0; width: 1%; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #75836a; line-height: 1.35; }
.sktvd-rev-q-table td { padding: 5px 0; font-size: 13.5px; color: #2f3a26; line-height: 1.4; }
.sktvd-rev-audit { margin-top: 10px; font-size: 12.5px; color: #9da6a8; }

/* Action area — reason field stacks ABOVE the buttons (order:-1, full width),
   buttons sit in a tidy row below. */
.sktvd-rev-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sktvd-rev-actions button,
.sktvd-rev-team-toggle button { min-height: 38px; padding: 0 18px; border-radius: 8px !important; box-shadow: none !important; font-size: 14px; flex: 0 0 auto; }
.sktvd-rev-team-toggle { margin: 0 0 12px; }
.sktvd-rev-tier-row { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; }
.sktvd-rev-tier-row select { width: auto !important; min-width: 220px; }

/* Detail-card form — compact; thin divider separates it from the questionnaire */
.sktvd-rev-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f2efe7; }
.sktvd-rev-card-state { margin: 0 0 14px; font-size: 13px; color: #6b7280; }
.sktvd-rev-manual-grant,
.sktvd-rev-team { margin: 6px 0; font-size: 13.5px; line-height: 1.3; }
.sktvd-rev-manual-grant input,
.sktvd-rev-team input { margin-right: 6px; vertical-align: middle; }
.sktvd-rev-reason-row,
.sktvd-rev-suspend-reason-row { flex: 1 1 100%; order: -1; margin: 0 0 6px; font-size: 13.5px; }
.sktvd-rev-reason-row textarea,
.sktvd-rev-suspend-reason-row textarea { display: block; width: 100%; max-width: 560px; min-height: 64px !important; height: 64px; margin-top: 4px; }
/* High specificity (0-3-0) to beat the theme's `.woocommerce .button` colour. */
.sktvd-rev-wrap .sktvd-rev-actions .button-primary,
.sktvd-rev-wrap .sktvd-rev-team-toggle .button-primary {
    background: #627452 !important; color: #fff !important; border: 1px solid #627452 !important;
}
/* «Приостановить» — clean outline-danger button, not a bright yellow block */
.sktvd-rev-wrap .sktvd-rev-actions .sktvd-rev-btn-suspend {
    background: #fff !important; color: #b5482e !important; border: 1px solid #e2b8ab !important;
}
.sktvd-rev-wrap .sktvd-rev-actions .sktvd-rev-btn-suspend:hover {
    background: #b5482e !important; color: #fff !important; border-color: #b5482e !important;
}

/* Mobile */
@media (max-width: 640px) {
    .sktvd-rev-toolbar { flex-wrap: wrap; }
    .sktvd-rev-search { flex: 1 1 100% !important; }
    .sktvd-rev-sort { flex: 1 1 100% !important; }
    .sktvd-rev-row { flex-wrap: wrap; gap: 6px 12px; }
    .sktvd-rev-row-main { flex: 1 1 100%; }
    .sktvd-rev-row-chevron { display: none; }
    .sktvd-rev-card { padding: 14px; }
    .sktvd-rev-actions button { flex: 1 1 100%; }
    .sktvd-rev-reason-row textarea,
    .sktvd-rev-suspend-reason-row textarea { max-width: 100%; }
}
