/* Ajuda contextual (?) — barra fixa no rodapé ao passar o mouse */
.photome-help-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    aspect-ratio: 1 / 1;
    margin-left: 4px;
    padding: 0 !important;
    border: 1px solid #006B3F !important;
    border-radius: 50% !important;
    background: #006B3F !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: help;
    vertical-align: middle;
    flex: 0 0 18px !important;
    flex-shrink: 0 !important;
    align-self: center;
    box-sizing: border-box !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.photome-help-trigger:hover,
.photome-help-trigger:focus-visible {
    background: #005a35 !important;
    border-color: #005a35 !important;
    color: #fff !important;
    transform: scale(1.08);
    outline: none;
    filter: none !important;
    box-shadow: none !important;
}
label .photome-help-trigger {
    margin-top: -2px;
}

#photome-help-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(135deg, #002776 0%, #006B3F 100%);
    color: #fff;
    box-shadow: 0 -8px 32px rgba(0, 39, 118, 0.35);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

#photome-help-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#photome-help-bar .photome-help-bar-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

#photome-help-bar .photome-help-bar-body {
    flex: 1;
    min-width: 0;
}

#photome-help-bar .photome-help-bar-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
    margin-bottom: 2px;
}

#photome-help-bar .photome-help-bar-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

body.has-photome-help-bar {
    padding-bottom: 0;
}

body.admin-layout #photome-help-bar {
    left: var(--admin-sidebar-width, 260px);
}

@media (max-width: 900px) {
    body.admin-layout #photome-help-bar {
        left: 0;
    }
}

/* —— Manual do usuário (preview) —— */
.user-manual-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .user-manual-layout {
        grid-template-columns: 1fr;
    }
}

.user-manual-nav {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf3;
    padding: 12px 0;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.user-manual-flow-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 10px 16px 6px;
}

.user-manual-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.user-manual-nav a:hover {
    background: #f8fafc;
}

.user-manual-nav a.is-active {
    background: #ecfdf5;
    color: #006B3F;
    border-left-color: #006B3F;
    font-weight: 600;
}

.user-manual-content {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf3;
    padding: 24px 28px;
}

.user-manual-content h2 {
    margin: 0 0 8px;
    color: #002776;
    font-size: 1.35rem;
}

.user-manual-path {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
}

.user-manual-steps {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0 20px;
    font-size: 14px;
}

.user-manual-steps ol {
    margin: 8px 0 0;
    padding-left: 1.2rem;
}

.user-manual-fields {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-manual-fields th,
.user-manual-fields td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.user-manual-fields th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    background: #fafbfc;
}

.user-manual-preview-banner {
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
    border: 1px dashed #86efac;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    color: #065f46;
}

.user-manual-edit textarea {
    width: 100%;
    min-height: 72px;
    font-size: 13px;
}
