.soc-rv-page-title {
    margin: 0;
    color: var(--soc-page-title-color, #006d4e);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.soc-rv-lead {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.88rem;
    max-width: 52ch;
}

.soc-rv-group-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

.soc-rv-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.soc-rv-card:hover {
    border-color: #0fac78;
    box-shadow: 0 8px 20px rgba(0, 109, 78, 0.08);
    transform: translateY(-1px);
    color: inherit;
}

.soc-rv-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.soc-rv-card__title i {
    color: #006d4e;
    font-size: 1.15rem;
}

.soc-rv-card__desc {
    margin: 0;
    color: #6b7280;
    font-size: 0.84rem;
    flex: 1;
}

.soc-rv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.soc-rv-head .soc-rv-page-title {
    margin: 0;
}

.soc-rv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.85rem;
}

.soc-rv-tabs button {
    background: none;
    border: none;
    font: inherit;
    font-size: 0.82rem;
    color: #9ca3af;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.soc-rv-tabs button.is-active {
    color: #006d4e;
    font-weight: 700;
    border-bottom-color: #006d4e;
}

.soc-rv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #4b5563;
    margin-left: 0.25rem;
}

.soc-rv-tabs button.is-active .soc-rv-badge {
    background: #006d4e;
    color: #fff;
}

.soc-rv-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.soc-rv-toolbar-left,
.soc-rv-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.soc-rv-search {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem 0.7rem 0.45rem 1.9rem;
    font: inherit;
    font-size: 0.8rem;
    min-width: 220px;
    color: #1f2937;
    background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239ca3af' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 0.55rem center / 14px no-repeat;
}

.soc-rv-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-size: 0.82rem;
    background: #fff;
    color: #1f2937;
}

.soc-rv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.soc-rv-chip {
    border: none;
    background: #ecfdf5;
    color: #006d4e;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
}

.soc-rv-chip.is-on {
    background: #006d4e;
    color: #fff;
}

.soc-rv-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.soc-rv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 760px;
}

.soc-rv-table thead th {
    background: #006d4e;
    color: #fff;
    text-align: left;
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

.soc-rv-table tbody td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    color: #1f2937;
}

.soc-rv-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}

.soc-rv-table tbody tr:hover td {
    background: #f0fdf4;
}

.soc-rv-folio {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.soc-rv-folio:hover {
    text-decoration: underline;
}

.soc-rv-muted {
    color: #9ca3af;
}

.soc-rv-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.soc-rv-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.soc-rv-status--open {
    background: #d1fae5;
    color: #047857;
}

.soc-rv-status--wait {
    background: #fef3c7;
    color: #b45309;
}

.soc-rv-status--prog {
    background: #dbeafe;
    color: #1d4ed8;
}

.soc-rv-status--done {
    background: #e5e7eb;
    color: #4b5563;
}

.soc-rv-detail {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .soc-rv-detail {
        grid-template-columns: 1fr;
    }
}

.soc-rv-panel--wide {
    max-width: none;
    margin-bottom: 1rem;
}

.soc-rv-panel-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: #1f2937;
}

.soc-rv-attach-row {
    margin-top: 0.75rem;
}

.soc-rv-thread {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.soc-rv-msg {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    background: #fff;
}

.soc-rv-msg.is-internal {
    background: #fff7ed;
    border-color: #fed7aa;
}

.soc-rv-msg-when {
    float: right;
    color: #9ca3af;
    font-size: 0.72rem;
}

.soc-rv-msg-who {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.soc-rv-tag-int {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #c2410c;
    background: #ffedd5;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.soc-rv-comment-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.soc-rv-check {
    font-size: 0.78rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.soc-rv-hist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.soc-rv-hist li {
    font-size: 0.82rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.soc-rv-hist-when {
    display: block;
    color: #9ca3af;
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

.soc-rv-meta {
    margin: 0;
}

.soc-rv-meta div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
}

.soc-rv-meta dt {
    color: #6b7280;
    font-weight: 500;
}

.soc-rv-meta dd {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.soc-rv-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.soc-rv-actions button {
    width: 100%;
}

.soc-rv-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: grid;
    place-items: center;
    z-index: 40;
    padding: 1rem;
}

.soc-rv-modal {
    background: #fff;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    width: min(440px, 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.soc-rv-modal h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.soc-rv-modal p {
    margin: 0 0 0.85rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.soc-rv-drop {
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    padding: 0.7rem 0.75rem;
    background: #fafbfc;
}

.soc-rv-drop-input {
    margin-top: 0.55rem;
}

.soc-rv-drop-input input[type="file"] {
    font: inherit;
    font-size: 0.78rem;
    color: #4b5563;
}

.soc-rv-attach-x {
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.15rem;
}

.soc-rv-memory-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    margin: 0.5rem 0 1rem;
}

.soc-rv-panel {
    max-width: 720px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
}

.soc-rv-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

@media (max-width: 700px) {
    .soc-rv-form-grid {
        grid-template-columns: 1fr;
    }
}

.soc-rv-field {
    margin-bottom: 0;
}

.soc-rv-field--full {
    grid-column: 1 / -1;
}

.soc-rv-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.soc-rv-req {
    color: #dc2626;
}

.soc-rv-input,
.soc-rv-textarea {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-size: 0.82rem;
    background: #fff;
    color: #1f2937;
    width: 100%;
}

.soc-rv-textarea {
    min-height: 88px;
    resize: vertical;
}

.soc-rv-input.is-readonly {
    background: #f3f4f6;
}

.soc-rv-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.soc-rv-btn-create {
    background: #006d4e !important;
    border: 1px solid #006d4e !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.soc-rv-btn-create:hover {
    background: #0b7d62 !important;
    border-color: #0b7d62 !important;
}

.soc-rv-attach {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 600;
    background: #eff6ff;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
}

.soc-rv-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #6b7280;
    font-size: 0.75rem;
}

.soc-rv-pager-btns {
    display: flex;
    gap: 0.25rem;
}

.soc-rv-pager-btns span {
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #f3f4f6;
}

.soc-rv-pager-btns span.is-on {
    background: #fecdd3;
    color: #9f1239;
    font-weight: 700;
}

.soc-rv-back {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: #0b8261;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.soc-rv-back:hover {
    text-decoration: underline;
}
