/* Citas — Odoo-like onboarding / plantillas */
.appointment-module-shell .sfe-module-shell__body {
    padding-top: 4px;
}

.ap-odo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ap-odo-toolbar__left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ap-odo-toolbar__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--sfe-navy, #1e2b3c);
}

.ap-odo-toolbar .btn-primary {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.85rem;
    background: var(--sfe-primary, #007BFF);
    border-color: var(--sfe-primary, #007BFF);
}

.ap-odo-hero {
    text-align: center;
    max-width: 640px;
    margin: 12px auto 20px;
}

.ap-odo-hero h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sfe-navy, #1e2b3c);
}

.ap-odo-hero p {
    margin: 0;
    color: var(--sfe-text-muted, #64748b);
    font-size: 0.92rem;
}

.ap-odo-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-width: 960px;
    margin: 0 auto 24px;
}

.ap-odo-tpl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 14px 16px;
    border: 1px solid var(--sfe-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    min-height: 160px;
    transition: border-color 120ms ease, background 120ms ease;
}

.ap-odo-tpl:hover {
    border-color: color-mix(in srgb, var(--sfe-primary, #007BFF) 45%, var(--sfe-border, #e2e8f0));
    background: color-mix(in srgb, var(--sfe-primary, #007BFF) 4%, #fff);
}

.ap-odo-tpl__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sfe-primary-light, #E8F4FF);
    color: var(--sfe-primary, #007BFF);
    font-size: 1.25rem;
}

.ap-odo-tpl strong {
    font-size: 0.95rem;
    color: var(--sfe-navy, #1e2b3c);
}

.ap-odo-tpl span {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--sfe-text-muted, #64748b);
}

.ap-odo-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.ap-odo-type-card {
    display: block;
    padding: 14px 14px 12px;
    border: 1px solid var(--sfe-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.ap-odo-type-card:hover {
    border-color: color-mix(in srgb, var(--sfe-primary, #007BFF) 40%, var(--sfe-border));
}

.ap-odo-type-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--sfe-navy, #1e2b3c);
}

.ap-odo-type-card span {
    font-size: 0.8rem;
    color: var(--sfe-text-muted, #64748b);
}

.ap-odo-modal[hidden] {
    display: none !important;
}

.ap-odo-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}

.ap-odo-modal__panel {
    width: min(840px, 96vw);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--sfe-border, #e2e8f0);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.ap-odo-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sfe-border, #e2e8f0);
}

.ap-odo-modal__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
}

.ap-odo-modal__body {
    padding: 16px;
}

.ap-odo-modal__foot {
    padding: 10px 16px 14px;
    border-top: 1px solid var(--sfe-border, #e2e8f0);
}


/* Ola B+C+D — formulario tipo de cita (pestañas) */
.ap-odo-type-form .o_form_notebook { margin-top: 8px; }
.ap-odo-type-form .notebook-tabs {
    gap: 4px;
    border-bottom: 1px solid var(--sfe-border, #e2e8f0);
    padding-bottom: 0;
}
.ap-odo-type-form .notebook-tab {
    border-radius: 8px 8px 0 0;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sfe-text-muted, #64748b);
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
}
.ap-odo-type-form .notebook-tab.active {
    color: var(--sfe-primary, #007BFF);
    background: #fff;
    border-color: var(--sfe-border, #e2e8f0);
    margin-bottom: -1px;
}
.ap-odo-type-form .notebook-page { padding: 16px 4px 8px; }
.ap-odo-type-form .o_form_sheet .oe_button_box { margin-bottom: 8px; }
