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

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

.emp-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;
}

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

.emp-odo-gear,
.emp-odo-close {
    border: 0;
    background: transparent;
    color: var(--sfe-text-muted, #475569);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 4px;
}

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

.emp-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;
}

.emp-odo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: var(--sfe-text-muted, #475569);
    font-size: 0.8125rem;
}

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

.emp-odo-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    color: var(--sfe-text-muted, #475569);
    text-decoration: none;
    background: #fff;
    font-size: 0.85rem;
}

.emp-odo-view-btn.is-active {
    background: var(--sfe-primary, #007BFF);
    color: #fff;
}
.emp-odo-view-btn:hover {
    color: var(--sfe-primary-dark, #0056CC);
    background: var(--sfe-primary-light, #E8F4FF);
}

.emp-odo-layout {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 320px;
}

.emp-odo-tags {
    width: 28px;
    flex: 0 0 28px;
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
}

.emp-odo-tags__tab {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    width: 100%;
    border: 0;
    background: transparent;
    padding: 16px 0;
    color: var(--sfe-text-muted, #475569);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    cursor: default;
}

.emp-odo-main {
    flex: 1 1 auto;
    padding-left: 12px;
}

.emp-odo-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.emp-odo-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    min-height: 96px;
    transition: box-shadow 0.15s ease;
}

.emp-odo-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.emp-odo-card__avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    background: var(--sfe-primary, #007BFF);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    border-radius: 2px;
}

.emp-odo-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.emp-odo-card__name {
    font-weight: 650;
    color: #1e2b3c;
    word-break: break-word;
}

.emp-odo-card__email {
    font-size: 0.8125rem;
    color: var(--sfe-text-muted, #475569);
    display: flex;
    align-items: center;
    gap: 6px;
}

.emp-odo-card__mail-icon {
    font-size: 0.75rem;
}

.emp-odo-card__foot {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.emp-odo-card__mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sfe-secondary, #2C7BE5);
    color: #fff;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emp-odo-card__clock {
    color: var(--sfe-text-quiet, #64748b);
    font-size: 0.85rem;
}

.emp-odo-card__dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sfe-primary, #007BFF);
}

.emp-odo-dept-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    min-height: 110px;
}

.emp-odo-dept-card__name {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--sfe-primary, #007BFF);
}

.emp-odo-dept-card__badge {
    align-self: flex-start;
    background: var(--sfe-primary, #007BFF);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.emp-odo-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--sfe-text, #1e293b);
}
.emp-odo-empty > p {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 550;
    color: var(--sfe-text, #1e293b);
    opacity: 1;
}

.emp-odo-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.emp-odo-smart {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.emp-odo-smart__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #1e2b3c;
    background: #fff;
    font-size: 0.7rem;
}

.emp-odo-smart__count {
    font-weight: 700;
    color: var(--sfe-primary, #007BFF);
    font-size: 0.85rem;
}

.emp-odo-identity {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 8px;
}

.emp-odo-photo {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    background: #e9ecef;
    border: 1px dashed #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sfe-text-muted, #475569);
    border-radius: 2px;
}

.emp-odo-identity__fields {
    flex: 1 1 auto;
    min-width: 0;
}

.emp-odo-name-input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--sfe-primary, #007BFF);
    font-size: 1.35rem;
    font-weight: 600;
    padding: 8px 0;
    margin-bottom: 12px;
    background: transparent;
}

.emp-odo-contact-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
}

.emp-odo-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--sfe-text-muted, #475569);
}

.emp-odo-contact input {
    flex: 1;
    border: 0;
    border-bottom: 1px solid #dee2e6;
    padding: 4px 0;
    background: transparent;
}

.emp-odo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #dee2e6;
    margin-top: 16px;
}

.emp-odo-tab {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--sfe-text-muted, #475569);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.emp-odo-tab.is-active {
    color: #1e2b3c;
    font-weight: 600;
    border-bottom-color: var(--sfe-primary, #007BFF);
}

.emp-odo-tab-panel {
    padding: 16px 0;
}

.emp-odo-work-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .emp-odo-work-grid { grid-template-columns: 1fr; }
}

.emp-odo-section {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--sfe-text-muted, #475569);
    margin: 0 0 12px;
}

.emp-odo-field {
    margin-bottom: 12px;
}

.emp-odo-field label {
    display: block;
    font-size: 0.8125rem;
    color: var(--sfe-text-muted, #475569);
    margin-bottom: 4px;
}

.emp-odo-field input,
.emp-odo-field select,
.emp-odo-field textarea {
    width: 100%;
    min-height: 34px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.875rem;
}

.emp-odo-orgchart-placeholder {
    height: 160px;
    border: 1px dashed #ced4da;
    border-radius: 6px;
    background:
        linear-gradient(90deg, #f1f3f5 40%, transparent 40%),
        linear-gradient(#f8f9fa, #f8f9fa);
    background-size: 100% 2px, 100% 100%;
    opacity: 0.7;
}

.emp-odo-form-rule {
    border: 0;
    border-top: 2px solid var(--sfe-primary, #007BFF);
    margin: 8px 0 20px;
}

.emp-odo-chatter {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.emp-odo-chatter__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.emp-odo-chatter__day {
    font-size: 0.75rem;
    color: var(--sfe-text-quiet, #64748b);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.emp-odo-chatter__entry {
    font-size: 0.875rem;
    color: var(--sfe-text, #1e293b);
    margin: 0;
}
