/* Reclutamiento — kanban / forms Odoo parity */
.rec-odo {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 40vh;
}

.rec-odo-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-bottom: 8px;
}

.rec-odo-new {
    background: var(--sfe-primary, #007BFF) !important;
    border-color: var(--sfe-primary, #007BFF) !important;
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.875rem;
}

.rec-odo-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--sfe-navy, #1e2b3c);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rec-odo-gear,
.rec-odo-close {
    border: 0;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 4px;
}

.rec-odo-search {
    flex: 1 1 220px;
    max-width: 420px;
    margin: 0 auto;
}

.rec-odo-search input[type="search"] {
    width: 100%;
    min-height: 34px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0 12px 0 32px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 10px center no-repeat;
    font-size: 0.875rem;
}

.rec-odo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: #6c757d;
    font-size: 0.8125rem;
}

.rec-odo-views {
    display: inline-flex;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
}

.rec-odo-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    color: #495057;
    text-decoration: none;
    background: #fff;
    border-right: 1px solid #ced4da;
}

.rec-odo-view-btn:last-child { border-right: 0; }
.rec-odo-view-btn.is-active { background: #e7f1ff; color: #0d6efd; }

.rec-odo-layout {
    display: flex;
    gap: 0;
    min-height: 48vh;
}

.rec-odo-tags {
    width: 28px;
    flex-shrink: 0;
    border-right: 1px solid #e9ecef;
}

.rec-odo-tags__tab {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 0;
    background: #f8f9fa;
    color: #6c757d;
    padding: 12px 4px;
    font-size: 0.75rem;
    cursor: default;
    width: 100%;
}

.rec-odo-main { flex: 1; min-width: 0; position: relative; }

.rec-odo-empty-wrap {
    position: relative;
    min-height: 52vh;
    overflow: hidden;
}

.rec-odo-ghost {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 8px;
    opacity: 0.28;
    pointer-events: none;
}

.rec-odo-ghost-card {
    border: 1px solid #868e96;
    border-radius: 8px;
    padding: 14px;
    background: #f1f3f5;
    min-height: 110px;
}

.rec-odo-ghost-card__ref { font-size: 0.75rem; color: #6c757d; }
.rec-odo-ghost-card__name { height: 14px; background: #ced4da; margin: 8px 0; border-radius: 2px; }
.rec-odo-ghost-card__stats { display: flex; gap: 12px; font-size: 1.25rem; color: #868e96; }

.rec-odo-empty {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 52vh;
    padding: 32px 16px;
    gap: 8px;
}

.rec-odo-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sfe-primary, #007BFF);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.rec-odo-empty__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e2b3c;
}

.rec-odo-empty__link {
    color: var(--sfe-primary, #007BFF);
    font-weight: 600;
    text-decoration: none;
}
.rec-odo-empty__link:hover { text-decoration: underline; }

.rec-odo-empty__sample { margin-top: 20px; }

.rec-odo-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 4px 8px 16px;
}

.rec-odo-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rec-odo-card__body {
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.rec-odo-card__ref { font-size: 0.75rem; color: #868e96; }
.rec-odo-card__name { font-weight: 650; margin: 6px 0 10px; color: #1e2b3c; }
.rec-odo-card__stats { display: flex; gap: 16px; font-size: 1.35rem; font-weight: 600; color: #495057; }
.rec-odo-card__actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f1f3f5;
    background: #fafafa;
}

.rec-odo-table { width: 100%; }

.rec-odo-form-actions { display: flex; gap: 8px; }
.rec-odo-smart {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.rec-odo-smart__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 88px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    background: #fff;
}
.rec-odo-smart__count { font-weight: 700; font-size: 1.1rem; }
.rec-odo-smart__label { font-size: 0.75rem; }

.rec-odo-identity { margin: 8px 0 12px; }
.rec-odo-name-input {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 600;
    border: 0;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 0;
    background: transparent;
}
.rec-odo-compat-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f1f3f5;
    color: #495057;
    font-size: 0.8125rem;
}

.rec-odo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 16px;
}
.rec-odo-tab {
    border: 0;
    background: transparent;
    padding: 10px 2px;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
}
.rec-odo-tab.is-active {
    color: var(--sfe-primary, #007BFF);
    border-bottom-color: var(--sfe-primary, #007BFF);
    font-weight: 600;
}

.rec-odo-tab-panel { display: none; }
.rec-odo-tab-panel.is-active { display: block; }

.rec-odo-section {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}
.rec-odo-section legend {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #868e96;
    margin-bottom: 10px;
}

.rec-odo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}
.rec-odo-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
}
.rec-odo-field--full { grid-column: 1 / -1; }
.rec-odo-field input,
.rec-odo-field select,
.rec-odo-field textarea {
    min-height: 34px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 10px;
    font: inherit;
}
.rec-odo-field textarea { min-height: 88px; resize: vertical; }
.rec-odo-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-odo-toggle input { width: auto; min-height: auto; }
.rec-odo-alias-domain { color: #6c757d; white-space: nowrap; }

.rec-odo-chatter {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}
.rec-odo-chatter__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rec-odo-chatter__log { color: #6c757d; font-size: 0.875rem; margin: 0; }

.rec-odo-stub .field-hint { margin: 0; }

@media (max-width: 720px) {
    .rec-odo-grid { grid-template-columns: 1fr; }
    .rec-odo-search { max-width: none; }
}
