* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flow-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.flow-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    border: 3px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flow-card:hover {
    border-color: #e8601c;
    box-shadow: 0 8px 25px rgba(232, 96, 28, 0.2);
}

.flow-card.flow-unavailable {
    border-style: dashed;
    opacity: .82;
}

.flow-availability-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2f6;
    color: #5f6b7a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.step {
    background: white;
    border-radius: 18px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    border: 3px solid #ddd;
    transition: opacity 0.3s ease, margin 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    min-height: 120px;
    display: none;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    margin-bottom: 0;
}

.step.visible {
    display: flex;
    opacity: 1;
    margin-bottom: 60px;
    pointer-events: auto;
}

.step::after {
    display: none;
}

.step:last-child::after,
.step.finalizar::after {
    display: none !important;
}

.flow-card:hover,
.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-image {
    width: 100%;
    max-width: 320px;
    min-height: 120px;
    height: 180px;
    object-fit: contain;
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    box-shadow: 0 10px 24px rgba(30, 58, 95, 0.08);
    align-self: center;
}

.step.active {
    border-color: #e8601c;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06), 0 0 0 4px rgba(232,96,28,0.07);
    border-width: 4px;
}

.step.active .step-title {
    font-weight: 700;
    color: #e8601c;
}

.step.next {
    border-color: #1e3a5f;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 0 20px rgba(30, 58, 95, 0.15);
}

.arrow {
    display: none;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.step.next .arrow {
    display: none;
}

.info {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1.1em;
    color: #666;
}

.options {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    flex-wrap: wrap;
}

.option-btn {
    border: none;
    background: linear-gradient(135deg, #e8601c 0%, #d84315 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 4px 10px rgba(232, 96, 28, 0.3);
    position: relative;
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(232, 96, 28, 0.5);
}

.option-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9aa500 0%, #6e6d01 100%);
    box-shadow: 0 4px 10px rgba(150, 40, 27, 0.35);
}

.option-link:hover {
    box-shadow: 0 6px 15px rgba(150, 40, 27, 0.55);
}

.option-btn:active {
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #455a64 0%, #37474f 100%);
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.criador-container {
    padding: 30px 20px 40px;
    max-width: 1200px;
}

.criador-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.criador-section {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.criador-section h2 {
    margin-bottom: 18px;
    color: white;
    font-size: 1.65rem;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    color: white;
    font-weight: 600;
}

.form-group input,
.form-group select,
.json-preview textarea,
.option-editor input,
.option-editor select {
    width: 100%;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.98);
    font-size: 1.05rem;
    line-height: 1.4;
    color: #222;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.form-group input::placeholder,
.option-editor input::placeholder,
.json-preview textarea::placeholder {
    color: rgba(0,0,0,0.35);
}

.form-group input:focus,
.form-group select:focus,
.option-editor input:focus,
.option-editor select:focus,
.json-preview textarea:focus {
    outline: none;
    border-color: rgba(232,96,28,0.98);
    box-shadow: 0 8px 26px rgba(232,96,28,0.09);
    transform: translateY(-3px);
}

/* Inputs na lista de passos: disposição mais agradável */
.step-header input.step-id,
.step-header input.step-label,
.step-header textarea.step-label,
.option-editor .option-label,
.option-editor .option-target {
    font-size: 1rem;
    padding: 12px 14px;
}

/* Estilo compartilhado para inputs de passo e próximo passo */
.step-header input.step-id,
.step-header input.step-label,
.step-header textarea.step-label,
.option-editor .option-target,
.option-editor .option-label {
    border: 2px solid rgba(232,96,28,0.22);
    background: #ffffff;
    border-radius: 22px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.step-header input.step-id,
.step-header input.step-label,
.step-header textarea.step-label,
.option-editor .option-target {
    font-weight: 700;
    color: #222;
}

.option-editor .option-label {
    font-weight: 600;
    color: #666;
}

/* Placeholders para campos de opção em cor laranja suave */
.option-editor .option-label::placeholder {
    color: rgba(232,96,28,0.45);
}

.step-header input.step-id::placeholder,
.step-header input.step-label::placeholder,
.step-header textarea.step-label::placeholder {
    color: rgba(0,0,0,0.35);
}

.step-header input.step-id:focus,
.step-header input.step-label:focus,
.step-header textarea.step-label:focus,
.option-editor .option-label:focus,
.option-editor .option-target:focus {
    outline: none;
    border-color: rgba(232,96,28,0.98);
    box-shadow: 0 10px 28px rgba(232,96,28,0.08);
    transform: translateY(-2px);
}

/* Label acima dos campos dentro do editor de passos/opções */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-label {
    font-size: 0.88rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 2px;
}

.float-field {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
}

.float-field input,
.float-field select,
.float-field textarea {
    padding: 20px 16px 14px;
}

.float-field .field-label {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.55);
    background: white;
    padding: 0 6px;
    transform-origin: left top;
    transition: transform 0.18s ease, color 0.18s ease, top 0.18s ease;
    pointer-events: none;
}

.float-field input:focus + .field-label,
.float-field textarea:focus + .field-label,
.float-field input:not(:placeholder-shown) + .field-label,
.float-field textarea:not(:placeholder-shown) + .field-label,
.float-field select:focus + .field-label,
.float-field.filled .field-label {
    top: -8px;
    transform: scale(0.88);
    color: #e8601c;
}

@media (max-width: 840px) {
    .step-header .field,
    .option-editor .field { width: 100%; }
    .step-header,
    .option-editor { grid-template-columns: 1fr; }
    .step-controls { justify-content: flex-start; }
}

.form-group small {
    color: #ddd;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.step-editor {
    position: relative;
    padding: 18px;
    border-radius: 18px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.step-editor-number {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #e8601c;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.flow-availability-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
}

.flow-availability-control input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.flow-availability-control span,
.flow-availability-control small {
    display: block;
}

.flow-availability-control small {
    margin-top: 3px;
    color: #64748b;
    font-weight: 400;
}
.step-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.step-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.step-header input,
.step-header textarea {
    width: 100%;
}

.step-header textarea.step-label {
    min-height: 78px;
    resize: vertical;
    line-height: 1.45;
}

.step-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 600;
}

.step-controls input[type="checkbox"] {
    width: auto;
}

.step-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-editor {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.option-editor input,
.option-editor select {
    min-width: 0;
}

.option-editor .option-kind,
.option-editor .option-flow {
    min-width: 0;
}

.btn-delete,
.btn-delete-option {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    border-radius: 12px;
    min-width: 48px;
}

.btn-delete-option {
    padding: 0 12px;
}

.json-preview textarea {
    min-height: 200px;
    resize: vertical;
    font-family: Consolas, 'Courier New', monospace;
}

.action-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.criador-content .btn {
    min-width: 160px;
}



.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn:active {
    transform: translateY(0);
}

.btn-danger,
.btn-delete {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.header-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.back-header {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    margin-top: 8px;
}

.admin-login-form {
    max-width: 420px;
    margin: 40px auto 0;
    padding: 30px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.admin-login-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-login-form label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.admin-login-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.92);
    font-size: 1em;
}

.admin-login-form .btn {
    width: 100%;
}

.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e8601c 0%, #d84315 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 6px 20px rgba(232, 96, 28, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 96, 28, 0.6);
}

.back-btn:active {
    transform: translateY(-1px);
}

.flow-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 18px 0 30px;
}

.flow-title-row h1 {
    margin: 0;
    text-align: center;
}

.flow-title-main {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.flow-title-updated {
    font-size: 0.78rem;
    font-weight: 500;
    color: #8a9ab5;
    letter-spacing: .01em;
}
.flow-top-back {
    position: static;
    width: fit-content;
    justify-self: start;
    margin: 0;
    padding: 12px 20px;
    border-radius: 14px;
}

.flow-title-row::after {
    content: '';
    justify-self: stretch;
}

.flows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 10px 0 20px;
}

.list-pagination .btn {
    min-width: 38px;
    padding: 8px 10px;
}

.list-pagination span {
    color: #475569;
    font-size: 0.95rem;
}

.sector-card {
    text-align: center;
}

.sector-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.header-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.back-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.sector-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.sector-header .back-header {
    justify-self: start;
}

.home-back {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    font-size: 1.35em;
    line-height: 1;
    border-radius: 14px;
}

.sector-header h1,
.sector-header h2 {
    grid-column: 2;
    justify-self: center;
    margin: 0;
    text-align: center;
    color: white;
}

.sector-header h1,
.sector-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sector-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #edf6ff;
    color: var(--app-brand);
    font-size: 1.05rem;
    line-height: 1;
}

.sector-header::after {
    content: '';
    justify-self: stretch;
}

@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .container {
        max-width: 100%;
    }

    .flow-grid {
        gap: 10px;
    }

    .step {
        padding: 20px;
        min-height: 100px;
    }

    .step.visible {
        margin-bottom: 20px;
    }

    .step-title {
        font-size: 1.1em;
    }

    .options {
        gap: 10px;
    }

    .option-btn {
        padding: 10px 16px;
        font-size: 0.9em;
        width: 100%;
    }

    .flows-grid {
        grid-template-columns: 1fr;
    }

    .back-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .step {
        padding: 15px;
        min-height: 80px;
    }

    .step-title {
        font-size: 1em;
    }

    .option-btn {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    .back-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.8em;
    }
}

/* Modal de imagem */

.step-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.step-image:hover {
    transform: scale(1.02);
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 99999;
    padding: 20px;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

/* =========================================================
   CONTROLE DE ACESSO – estilos adicionais
   ========================================================= */

/* Barra de usuário (topo das páginas públicas) */
.user-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}

.user-toolbar-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    font-weight: 600;
}

/* Botões pequenos */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.82em;
    border-radius: 8px;
}

/* Formulário de login / setup */
.admin-login-form {
    background: white;
    border-radius: 18px;
    padding: 32px;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.admin-login-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    color: #444;
    font-weight: 600;
    font-size: 0.95em;
}

.admin-login-form input[type="text"],
.admin-login-form input[type="password"] {
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.2s;
    font-family: inherit;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #e8601c;
}

.admin-login-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1em;
}

/* Campos genéricos de formulário (admin/users.php) */
.form-section label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #444;
    font-weight: 600;
    font-size: 0.95em;
}

.form-section input[type="text"],
.form-section input[type="password"] {
    padding: 10px 13px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.97em;
    transition: border-color 0.2s;
    font-family: inherit;
    margin-top: 2px;
}

.form-section input[type="text"]:focus,
.form-section input[type="password"]:focus {
    outline: none;
    border-color: #e8601c;
}

/* Toolbar de admin (reaproveitada) */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-toolbar h1 {
    margin: 0;
    text-align: left;
    font-size: 1.8em;
}

.search-panel {
    margin: 6px 0 22px;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 460px;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #1e3a5f;
    opacity: .75;
    pointer-events: none;
    z-index: 1;
}

.search-field input {
    width: 100%;
    border: 2px solid rgba(255,255,255,.24);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    color: #1f2933;
    font: inherit;
    font-size: 1em;
    padding: 14px 16px 14px 46px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.search-field input:focus {
    outline: none;
    border-color: #e8601c;
    box-shadow: 0 10px 28px rgba(232,96,28,.2);
    transform: translateY(-1px);
}

.search-empty {
    margin-top: 18px;
}

.global-search-results {
    margin-top: 8px;
}

.global-search-title {
    color: white;
    font-weight: 700;
    font-size: 1.05em;
    margin: 0 0 14px;
}

.global-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.global-result-card {
    background: white;
    border: 2px solid #dde3ec;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    color: #222;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.global-result-meta {
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6fb;
    color: #1a5276;
    font-size: .78em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.global-result-card h2 {
    margin: 2px 0 0;
    color: #1f2933;
    font-size: 1.18em;
    line-height: 1.25;
}

.global-result-card p {
    color: #5d6b7a;
    font-size: .92em;
    line-height: 1.35;
    margin-bottom: auto;
}

.global-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* =========================================================
   CORPO DO PASSO — step-body-content
   ========================================================= */

.step-body-content {
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 10px 10px 0;
    font-size: 0.96em;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.92);
    text-align: left;
}

.step-body-content p {
    margin: 0.45em 0;
}

.step-body-content p:first-child { margin-top: 0; }
.step-body-content p:last-child  { margin-bottom: 0; }

.step-body-content strong, .step-body-content b {
    font-weight: 700;
    color: #000000;
}

.step-body-content em, .step-body-content i {
    font-style: italic;
    color: rgba(0, 0, 0, 0.85);
}

.step-body-content u { text-decoration: underline; }

.step-body-content s, .step-body-content strike {
    opacity: .65;
    text-decoration: line-through;
}

.step-body-content h2 {
    font-size: 1.1em;
    font-weight: 700;
    color: #000000;
    margin: .75em 0 .3em;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.step-body-content h3 {
    font-size: 1em;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.9);
    margin: .6em 0 .25em;
}

.step-body-content ul,
.step-body-content ol {
    padding-left: 1.4em;
    margin: .45em 0;
}

.step-body-content ul li { list-style: disc; }
.step-body-content ol li { list-style: decimal; }

.step-body-content li {
    margin: .25em 0;
    color: rgba(0, 0, 0, 0.9);
}

.step-body-content a {
    color: #9c4600;
    text-decoration: underline;
    word-break: break-word;
}

.step-body-content a:hover { color: #3f1f00; }

.step-body-content img {
    display: block;
    max-width: 55%;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    cursor: zoom-in;
    border: 2px solid rgba(255,255,255,.15);
    transition: transform .18s, border-color .18s, box-shadow .18s;
    object-fit: contain;
}

.step-body-content img:hover {
    transform: scale(1.02);
    border-color: rgba(255,255,255,.4);
}

/* modo claro (admin/fluxo.php usa ../style.css e tem fundo branco diferente) */
.container.admin-view .step-body-content,
body.admin-view .step-body-content {
    background: #f7f9fc;
    border-left-color: #e8601c;
    color: #333;
}

/* =========================================================
   NOVA ESTETICA - TELAS PRINCIPAIS
   ========================================================= */

:root {
    --app-bg: #eef3f8;
    --app-panel: #ffffff;
    --app-ink: #1d2733;
    --app-muted: #687789;
    --app-line: #d9e2ec;
    --app-brand: #194f82;
    --app-brand-dark: #12385c;
    --app-accent: #f05a1a;
    --app-success: #2f8f5b;
    --app-warn: #8a8f00;
    --app-shadow: 0 12px 28px rgba(21, 44, 69, .12);
}

body.app-page {
    background: var(--app-bg);
    color: var(--app-ink);
    padding: 0;
}

.app-page .container {
    max-width: none;
}

.app-layout {
    min-height: 100vh;
}

.app-layout .container {
    margin-left: 268px;
    padding: 32px 32px 44px 38px;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 268px;
    background: var(--app-brand-dark);
    color: #fff;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow: visible;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 12px;
    font-size: 1rem;
    font-weight: 900;
    position: relative;
}

.app-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(240,90,26,.25);
}

.app-menu {
    position: relative;
    flex-shrink: 0;
    z-index: 1000;
}

.app-menu summary {
    list-style: none;
    cursor: pointer;
    border: 0;
}

.app-menu summary::-webkit-details-marker {
    display: none;
}

.app-menu .app-brand-mark {
    border: 0;
}

.app-menu-panel {
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: #163f68;
    box-shadow: 0 18px 36px rgba(0,0,0,.26);
    display: grid;
    gap: 4px;
    z-index: 80;
}

.app-menu-link {
    min-height: 40px;
    border-radius: 7px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
}

.app-menu-link:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.app-menu-link.danger {
    color: #ffd6d6;
}

.app-menu-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 4px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.14);
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.app-menu-stats div {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    padding: 7px 8px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.app-menu-stats span {
    color: rgba(255,255,255,.72);
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.app-menu-stats strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-height: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    padding-right: 4px;
}

.app-nav-item {
    flex-shrink: 0;
}

.flow-path-tree {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.32) transparent;
}

.flow-path-tree::-webkit-scrollbar {
    width: 7px;
}

.flow-path-tree::-webkit-scrollbar-track {
    background: transparent;
}

.flow-path-tree::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.28);
    border-radius: 999px;
}

.app-nav-item {
    min-height: 42px;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-weight: 800;
}

.app-nav-item:hover,
.app-nav-item.active {
    color: #fff;
    background: rgba(255,255,255,.13);
}

.flow-path-tree {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    margin: 0 0 6px 34px;
    padding: 4px 10px 4px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.flow-path-tree:not(:empty)::before {
    display: none;
}

.flow-path-title {
    flex-shrink: 0;
    margin: 5px 10px 4px 34px;
    padding: 5px 8px;
    border-left: 3px solid var(--app-accent);
    border-radius: 8px;
    background: #2b5378;
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
    line-height: 1.16;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.flow-path-badge {
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.86);
    padding: 9px 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 8px;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.flow-path-badge::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 17px;
    width: 12px;
    height: 2px;
    background: rgba(255,255,255,.18);
}

.flow-path-badge:first-of-type::after {
    top: 17px;
}

.flow-path-badge:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 17px;
    width: 2px;
    height: calc(100% + 8px);
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.flow-path-badge:hover,
.flow-path-badge.active {
    border-color: rgba(240,90,26,.65);
    background: rgba(240,90,26,.16);
    color: #fff;
}

.flow-path-index {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.flow-path-label {
    min-width: 0;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.app-sidebar-user {
    padding: 20px 0 0;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    font-size: .95rem;
    display: grid;
    gap: 8px;
}

.app-sidebar-user .sidebar-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-sidebar-user .sidebar-user-name {
    font-weight: 700;
}

.app-sidebar-user .sidebar-logout-link {
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.1);
    padding: 6px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.app-sidebar-user .sidebar-logout-link:hover {
    background: rgba(255,255,255,.22);
    color: #ffffff;
}

.app-sidebar-user .sidebar-user-version {
    color: rgba(255,255,255,.66);
    font-size: .82rem;
    line-height: 1.2;
}

.app-sidebar-user .sidebar-user-version-button {
    cursor: pointer;
    text-decoration: underline;
}

.app-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 24px;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.app-modal-content {
    position: relative;
    background: #ffffff;
    color: #1f2937;
    border-radius: 18px;
    padding: 30px;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
    z-index: 1;
}

.app-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 1.5rem;
    cursor: pointer;
}

.version-release {
    color: #475569;
    margin-bottom: 18px;
}

.version-feature-list {
    list-style: disc inside;
    margin: 0;
    padding: 0;
    color: #334155;
}

.version-feature-list li {
    margin-bottom: 10px;
}

.app-sidebar-summary {
    margin-top: 10px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-bottom: 12px;
    flex-shrink: 0;
}

.app-sidebar-summary div {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 8px 9px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.app-sidebar-summary span {
    display: inline;
    color: rgba(255,255,255,.68);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.app-sidebar-summary strong {
    display: inline;
    margin-top: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
}

.app-page h1,
.app-page h2 {
    color: var(--app-ink);
    text-shadow: none;
    letter-spacing: 0;
}

.app-page .user-toolbar,
.app-page .admin-toolbar {
    display: none;
}

.app-page .admin-toolbar > div:first-child h1 {
    display: none;
}

.app-page .user-toolbar-name,
.app-page .admin-toolbar span {
    display: none;
}

.app-page .btn {
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(25,79,130,.18);
    min-height: 48px;
    padding: 0 18px;
    font-size: 1rem;
}

.app-page .btn-success,
.app-page .btn-primary {
    background: var(--app-success);
}

.app-page .btn-danger,
.app-page .btn-delete {
    background: #d92828;
}

.app-page .page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin: 0 0 26px;
    padding-right: 0;
}

.app-page .page-heading h1 {
    margin: 0;
    text-align: left;
    font-size: 2rem;
    line-height: 1.15;
}

.app-page .page-heading p {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: .98rem;
}

.layout-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.layout-mode-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(75, 85, 99, 0.16);
    border-radius: 10px;
    background: #f4f5f7;
    color: #475569;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.layout-mode-button:hover {
    background: #e2e8f0;
}

.layout-mode-button.active {
    background: #d9dbe3;
    border-color: #94a3b8;
    color: #1f2937;
}

.header-back.sector-header .layout-toggle {
    justify-self: end;
    align-self: center;
    margin-left: auto;
}

.app-page .search-panel {
    margin: 0 0 22px;
}

.app-page .search-field {
    max-width: none;
}

.app-page .search-icon {
    color: var(--app-brand);
}

.app-page .search-field input {
    height: 48px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: var(--app-panel);
    box-shadow: 0 8px 18px rgba(21,44,69,.06);
}

.app-page .search-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.app-page .search-field input:focus {
    border-color: var(--app-accent);
    box-shadow: 0 10px 28px rgba(240,90,26,.18);
}

.app-page hr {
    display: none;
}

.app-page .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.app-page .stat {
    background: var(--app-panel);
    border: 1px solid var(--app-line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(21,44,69,.06);
}

.app-page .stat span {
    display: block;
    color: var(--app-muted);
    font-size: .84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-page .stat strong {
    display: block;
    margin-top: 5px;
    color: var(--app-ink);
    font-size: 1.7rem;
    line-height: 1.15;
}

.app-page .flows-grid,
.app-page .global-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.app-page .flow-card,
.app-page .global-result-card {
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: var(--app-shadow);
    min-height: 142px;
    padding: 20px;
    justify-content: flex-start;
}

.app-page .flow-card:hover,
.app-page .global-result-card:hover {
    border-color: rgba(240,90,26,.72);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(21,44,69,.16);
}

.app-page .sector-icon {
    width: 42px;
    height: 42px;
    margin: 0 0 12px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #edf6ff;
    color: var(--app-brand);
    font-size: 1.35em;
}

.app-page .sector-card {
    text-align: left;
}

.app-page .flow-card h2,
.app-page .global-result-card h2 {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.22rem;
    line-height: 1.25;
    text-shadow: none;
}

.app-page .flow-card p,
.app-page .global-result-card p {
    color: var(--app-muted);
}

.flow-card-updated {
    margin: 6px 0 0;
    font-size: 0.74rem;
    font-weight: 500;
    color: #9aa9bf;
    letter-spacing: .01em;
}
.app-page .flow-main-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.flow-card-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
}

.flow-card-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 0 12px;
}

.flows-grid.list-view {
    display: block;
    max-width: 840px;
    margin: 0 auto;
}

.flows-grid.list-view .flow-card,
.flows-grid.list-view .sector-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(21, 44, 69, 0.08);
    min-height: auto;
    transition: all 0.25s ease;
    position: relative;
}

.flows-grid.list-view .flow-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--app-accent) 0%, #f07c2f 100%);
    border-radius: 10px 0 0 10px;
}

.flows-grid.list-view .sector-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--app-brand) 0%, #1976d2 100%);
    border-radius: 10px 0 0 10px;
}

.flows-grid.list-view .flow-card:hover,
.flows-grid.list-view .sector-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(21, 44, 69, 0.12);
    transform: translateY(-2px);
}

.flows-grid.list-view .flow-card:last-child,
.flows-grid.list-view .sector-card:last-child {
    margin-bottom: 0;
}

.flows-grid.list-view .flow-card a.flow-main-link,
.flows-grid.list-view .sector-card a.flow-main-link {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.flows-grid.list-view .flow-card a.flow-main-link > h2,
.flows-grid.list-view .flow-card a.flow-main-link > p,
.flows-grid.list-view .sector-card a.flow-main-link > h2,
.flows-grid.list-view .sector-card a.flow-main-link > p {
    flex-basis: 100%;
}

.flows-grid.list-view .sector-card .sector-icon {
    width: 34px;
    height: 34px;
    font-size: 1.25em;
    margin: 0;
}

.flows-grid.list-view .flow-card h2,
.flows-grid.list-view .sector-card h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--app-ink);
}

.flows-grid.list-view .flow-card p,
.flows-grid.list-view .sector-card p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.4;
}

.flows-grid.list-view .flow-card-actions,
.flows-grid.list-view .sector-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    flex-shrink: 0;
    width: auto;
    margin-top: 0;
}

.flows-grid.list-view .flow-card-actions .btn,
.flows-grid.list-view .sector-card-actions .btn,
.flows-grid.list-view .sector-card-actions .sector-edit-link,
.flows-grid.list-view .sector-card-actions .sector-delete-link,
.flows-grid.list-view .sector-card-actions button {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 0.85rem;
    min-width: auto;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.app-page .app-alert {
    margin: 0 0 16px;
    border-radius: 8px;
    text-align: left;
}

.app-page .app-alert-success {
    background: #eaf7ef;
    color: #17633a;
    border-left: 4px solid #25a45a;
}

.app-page .app-alert-error {
    background: #fdecec;
    color: #9f1d1d;
    border-left: 4px solid #d92828;
}

.admin-sector-card {
    gap: 14px;
}

.sector-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.sector-edit-link {
    width: fit-content;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-accent);
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(240,90,26,.2);
}

.sector-edit-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(240,90,26,.26);
}

.sector-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: -4px 0 18px;
}

.sector-delete-form {
    margin: 0;
}

.sector-delete-link {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d92828;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(217,40,40,.18);
}

.sector-delete-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(217,40,40,.24);
}

.sector-delete-link.disabled,
.sector-delete-link:disabled {
    background: #aeb8c4;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .72;
}

.sector-delete-link.disabled:hover,
.sector-delete-link:disabled:hover {
    transform: none;
    box-shadow: none;
}

.sector-create-card {
    width: min(560px, 100%);
    margin: 0 auto;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: var(--app-shadow);
}

.sector-create-card h2 {
    margin: 0 0 18px;
    color: var(--app-ink);
    font-size: 1.45rem;
}

.sector-create-form {
    gap: 16px;
}

.sector-create-form .sector-icon-picker {
    margin-top: 6px;
}

.sector-cancel-link {
    min-height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-brand);
    text-decoration: none;
    font-weight: 900;
}

.sector-cancel-link:hover {
    background: #edf6ff;
}

.sector-edit-panel {
    margin-top: auto;
    border-top: 1px solid var(--app-line);
    padding-top: 12px;
}

.sector-edit-panel summary {
    width: fit-content;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    background: #edf6ff;
    color: var(--app-brand);
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.sector-edit-panel summary::-webkit-details-marker {
    display: none;
}

.sector-edit-panel summary:hover {
    background: #dfefff;
}

.sector-edit-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.sector-edit-form label {
    display: grid;
    gap: 5px;
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sector-edit-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--app-ink);
    font: inherit;
}

.sector-edit-form input:focus {
    outline: none;
    border-color: var(--app-accent);
    box-shadow: 0 0 0 3px rgba(240,90,26,.14);
}

.sector-edit-form button {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: var(--app-accent);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.sector-header-edit {
    width: min(360px, 100%);
    margin: -4px auto 18px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--app-shadow);
}

.app-page .global-search-title {
    color: var(--app-ink);
}

.app-page .global-result-meta {
    border-radius: 999px;
    background: #eef6fb;
    color: var(--app-brand);
}

.app-page .sector-header {
    margin: 0 0 18px;
}

.app-page .home-back {
    background: var(--app-accent);
    border: 0;
    color: #fff;
    box-shadow: 0 8px 18px rgba(240,90,26,.22);
}

.flow-page .flow-title-row {
    margin: 0 0 28px;
}

.flow-page .flow-title-row h1 {
    color: var(--app-ink);
    font-size: 2rem;
}

.flow-page .flow-top-back {
    background: var(--app-accent);
    box-shadow: 0 8px 18px rgba(240,90,26,.22);
}

.flow-page .flow-grid {
    max-width: 980px;
    margin: 0 auto;
    gap: 18px;
}

.flow-page .step {
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: var(--app-shadow);
    padding: 24px;
    color: var(--app-ink);
}

.builder-page .header-back {
    justify-content: center;
    margin: 0 0 16px;
}

.builder-page .header-back .back-header {
    display: none;
}

.builder-page .criador-container {
    padding-top: 18px;
}

.builder-page .header-back h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0;
    padding: 10px 22px;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 28px rgba(15,35,55,.06);
    font-size: 1.72rem;
    line-height: 1.15;
}

.builder-page .criador-section {
    background: #f7fbff;
    border-color: var(--app-line);
    color: var(--app-ink);
    border-radius: 16px;
    padding: 20px 22px;
}

.builder-page .criador-content {
    gap: 18px;
}

.builder-page .criador-section h2 {
    margin-bottom: 14px;
    font-size: 1.32rem;
}

.builder-page .form-group {
    gap: 5px;
    margin-bottom: 12px;
}

.builder-page .form-group label {
    font-size: .9rem;
}

.builder-page .criador-section h2,
.builder-page .form-group label,
.builder-page .control-checkbox,
.builder-page .step-details,
.builder-page .step-controls,
.builder-page .option-editor,
.builder-page .options-section h4 {
    color: var(--app-ink);
}

.builder-page .form-group small,
.builder-page .criador-section small {
    color: var(--app-muted);
}

.builder-page .form-group input,
.builder-page .form-group select,
.builder-page .json-preview textarea,
.builder-page .option-editor input,
.builder-page .option-editor select {
    color: var(--app-ink);
    background: #fff;
    border-color: var(--app-line);
}

.builder-page .form-group input,
.builder-page .form-group select {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .95rem;
}

.builder-page .form-group input:focus,
.builder-page .form-group select:focus {
    transform: none;
    box-shadow: 0 0 0 3px rgba(240,90,26,.12);
}

.builder-page .form-group small {
    font-size: .78rem;
    line-height: 1.25;
    margin-top: 0;
}

.builder-page .form-group input::placeholder,
.builder-page .option-editor input::placeholder,
.builder-page .json-preview textarea::placeholder {
    color: #8b98a8;
}

.sector-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sector-icon-choice {
    position: relative;
    display: inline-flex;
}

.sector-icon-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sector-icon-choice span {
    width: 46px;
    height: 46px;
    border: 2px solid var(--app-line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sector-icon-choice input:checked + span {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 3px rgba(240,90,26,.16);
}

.sector-icon-choice span:hover {
    transform: translateY(-2px);
}

.flow-page .step.visible {
    margin-bottom: 18px;
}

.flow-page .step.active {
    border-color: var(--app-accent);
    box-shadow: var(--app-shadow);
}

.flow-page .step-title {
    color: var(--app-accent);
    font-size: 1.28rem;
    line-height: 1.3;
}

.flow-page .step-body-content {
    background: #f7f9fc;
    border-left-color: var(--app-accent);
    border-radius: 0 8px 8px 0;
}

.flow-page .option-btn {
    border-radius: 8px;
    background: var(--app-accent);
    box-shadow: 0 8px 18px rgba(240,90,26,.2);
}

.flow-page .option-link {
    background: var(--app-warn);
}

.flow-page .step-body-content img {
    max-width: 58%;
    border-color: var(--app-line);
}

@media (max-width: 768px) {
    body.app-page {
        padding: 0;
    }

    .app-layout .container {
        margin-left: 0;
        padding: 92px 14px 28px;
    }

    .app-sidebar {
        width: 100%;
        height: 70px;
        right: 0;
        bottom: auto;
        padding: 10px 14px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        overflow: visible;
    }

    .app-brand {
        padding: 0;
        flex-shrink: 0;
    }

    .app-nav {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        padding-right: 0;
    }

    .app-nav-item {
        min-height: 44px;
        white-space: nowrap;
    }

    .app-sidebar-user {
        display: none;
    }

    .app-sidebar-summary {
        display: none;
    }

    .app-page .page-heading {
        align-items: stretch;
        flex-direction: column;
        margin: 0 0 18px;
        padding-right: 0;
    }

    .app-page .user-toolbar,
    .app-page .admin-toolbar {
        margin-bottom: 18px;
        justify-content: flex-start;
    }

    .app-page .search-panel {
        grid-template-columns: 1fr;
    }

    .app-page .search-panel::after {
        display: none;
    }

    .app-page .stats {
        grid-template-columns: 1fr;
    }

    .flow-page .flow-title-row {
        grid-template-columns: auto 1fr;
    }

    .flow-page .flow-title-main {
        grid-column: 2;
        align-items: flex-start;
    }

    .flow-page .flow-title-row h1 {
        text-align: left;
        font-size: 1.5rem;
    }

    .flow-page .flow-title-row::after {
        display: none;
    }

    .flow-page .step-body-content img {
        max-width: 100%;
    }

}

/* ================================================================
   AVISOS DO DIA – Modal e painel admin
   ================================================================ */

/* Badge de contador no sidebar */
.notices-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e8601c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    margin-left: auto;
    line-height: 1;
}

/* Modal de avisos */
.notices-modal .app-modal-content,
.notices-modal-content {
    max-width: 540px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.notices-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #1a4a7a 0%, #1e5799 100%);
    color: #fff;
    position: relative;
}

.notices-modal-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.notices-modal-header h2 {
    margin: 0 0 2px;
    font-size: 1.2rem;
    color: #fff;
}

.notices-modal-date {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.8;
    color: #fff;
}

.notices-modal-header .app-modal-close {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.notices-modal-header .app-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.notices-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px;
}

.notices-loading {
    text-align: center;
    color: var(--text-muted, #888);
    padding: 20px 0;
}

.notices-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted, #888);
}
.notices-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}
.notices-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.notices-item {
    padding: 14px 0;
}
.notices-item-border {
    border-bottom: 1px solid var(--border);
}

.notices-item-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.notices-item-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #e8601c;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.notices-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #111);
    line-height: 1.4;
}

.notices-item-content {
    margin: 0 0 0 34px;
    font-size: 0.9rem;
    color: var(--text-muted, #555);
    line-height: 1.55;
}

.notices-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── Admin: lista de avisos ────────────────────────────── */
.notices-admin-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.notice-admin-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    transition: box-shadow 0.15s;
}
.notice-admin-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.notice-inactive {
    opacity: 0.6;
    border-style: dashed;
}

.notice-admin-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.notice-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active {
    background: #d4edda;
    color: #155724;
}
.badge-inactive {
    background: #e2e3e5;
    color: #555;
}

.notice-admin-date {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    margin-left: auto;
}

.notice-admin-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
}

.notice-admin-content {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--text-muted, #555);
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.notice-admin-meta {
    font-size: 0.78rem;
    color: var(--text-muted, #aaa);
    margin-bottom: 12px;
}

.notice-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Input de data nos avisos */
.notices-date-input {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg, #fff);
    color: var(--text, #111);
}

/* Modal de formulário de aviso */
.notices-form-modal {
    max-width: 500px;
    width: 100%;
}


/* ── Notices: grupos no modal ─────────────────────────── */
.notices-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #888);
    padding: 12px 0 4px;
    margin-top: 4px;
}
.notices-group-label:first-child {
    padding-top: 0;
    margin-top: 0;
}

.notices-item-fixed-tag {
    font-size: 0.7rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 4px;
    align-self: center;
}

/* ── Admin: type toggle ──────────────────────────────── */
.notice-type-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.notice-type-btn {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    border: none;
    background: var(--bg, #fff);
    color: var(--text-muted, #666);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.notice-type-btn + .notice-type-btn {
    border-left: 1px solid var(--border);
}
.notice-type-btn.active {
    background: #1e5799;
    color: #fff;
}
.notice-type-btn:hover:not(.active) {
    background: var(--hover-bg, #f0f4f8);
}

/* ── Admin: seção headers ────────────────────────────── */
.notices-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.notices-section-fixed-header {
    background: linear-gradient(90deg, #fffbea 0%, #fff9e6 100%);
    border: 1px solid #f0d060;
}
.notices-section-dated-header {
    background: linear-gradient(90deg, #eef4ff 0%, #e8f0ff 100%);
    border: 1px solid #b8d0f0;
}
.notices-section-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}
.notices-section-header h2 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
}
.notices-section-header p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted, #666);
}
.notices-date-filter {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.notices-loading-inline {
    font-size: 0.88rem;
    color: var(--text-muted, #aaa);
    padding: 10px 0;
}

/* ── Admin: badges de tipo ───────────────────────────── */
.badge-fixed {
    background: #fff3cd;
    color: #856404;
}
.badge-dated {
    background: #d0e8ff;
    color: #0a3e6e;
}
/* =========================================================
/* =========================================================
   RESPONSIVIDADE MOBILE — CONSOLIDADO
   Breakpoints: 768px (tablet/mobile) e 480px (mobile pequeno)
   ========================================================= */

/* ── Viewport meta tag garantida via HTML, mas reforçamos
      touch targets mínimos de 44px ── */

/* ── 768px: layout principal ── */
@media (max-width: 768px) {

    /* Sidebar vira topbar */
    .app-sidebar {
        width: 100%;
        height: 60px;
        inset: 0 0 auto 0;
        padding: 0 12px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,.1);
        overflow: visible;
    }

    .app-brand { padding: 0; flex-shrink: 0; }
    .app-brand > span { display: none; }  /* esconde texto "Fluxos" ao lado do logo */

    .app-nav {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        gap: 2px;
        padding: 0;
        scrollbar-width: none;
    }
    .app-nav::-webkit-scrollbar { display: none; }

    .app-nav-item {
        min-height: 44px;
        padding: 0 10px;
        white-space: nowrap;
        font-size: .82rem;
    }

    .flow-path-title,
    .flow-path-tree,
    .app-sidebar-user,
    .app-sidebar-summary { display: none; }

    /* Conteúdo principal abaixo do topbar */
    .app-layout .container {
        margin-left: 0;
        padding: 76px 14px 32px;
    }

    /* Page heading */
    .app-page .page-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 18px;
    }
    .app-page .page-heading h1 { font-size: 1.55rem; }
    .layout-toggle { justify-content: flex-start; }

    /* Search */
    .app-page .search-field { max-width: 100%; }
    .app-page .search-panel { grid-template-columns: 1fr; gap: 10px; }

    /* Stats grid → coluna única */
    .app-page .stats { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Cards de setor/fluxo → uma coluna */
    .app-page .flows-grid,
    .app-page .global-results-grid,
    .flows-grid { grid-template-columns: 1fr; }

    /* List-view cards: empilha conteúdo em mobile */
    .flows-grid.list-view .flow-card,
    .flows-grid.list-view .sector-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .flows-grid.list-view .flow-card-actions,
    .flows-grid.list-view .sector-card-actions {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }
    .flows-grid.list-view .flow-card-actions .btn,
    .flows-grid.list-view .sector-card-actions .btn,
    .flows-grid.list-view .sector-card-actions .sector-edit-link,
    .flows-grid.list-view .sector-card-actions .sector-delete-link,
    .flows-grid.list-view .sector-card-actions button { flex: 1 1 auto; }

    /* Sector header (página de fluxos de setor) */
    .sector-header {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
    .sector-header h1,
    .sector-header h2 { font-size: 1.3rem; grid-column: 2; }
    .sector-header::after { display: none; }
    .header-back.sector-header .layout-toggle { justify-self: auto; margin-left: 0; }

    /* Viewer de fluxo */
    .flow-page .flow-title-row {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
    .flow-page .flow-title-main {
        grid-column: 2;
        align-items: flex-start;
    }
    .flow-page .flow-title-row h1 {
        text-align: left;
        font-size: 1.35rem;
    }
    .flow-page .flow-title-row::after { display: none; }
    .flow-page .step-body-content img { max-width: 100%; }
    .step-image { max-width: 100%; height: auto; min-height: 80px; }

    /* Opções no viewer: uma coluna em mobile */
    .options { grid-template-columns: 1fr; gap: 10px; }
    .option-btn { width: 100%; padding: 14px 16px; font-size: 1em; }

    /* Criador: grids → coluna única */
    .step-header { grid-template-columns: 1fr; }
    .option-editor { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .criador-section { padding: 18px; border-radius: 16px; }
    .criador-container { padding: 16px 14px 32px; }

    /* ── Tabela de usuários: scroll horizontal ── */
    .users-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .users-table { min-width: 620px; }
    .users-table th,
    .users-table td { padding: 10px 12px; font-size: .82em; }

    /* Formulário de usuário */
    .ufc-body, .ufc-footer { padding: 18px; }
    .role-grid { grid-template-columns: 1fr; }
    .ufc-header { padding: 16px 18px; }
    .ufc-header h2 { font-size: 1.05em; }

    /* Avisos admin */
    .notices-section-header { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
    .notices-date-filter { flex-wrap: wrap; }
    .notice-admin-actions { flex-wrap: wrap; }
    .notice-admin-actions .btn { flex: 1 1 auto; justify-content: center; }

    /* Modais: largura total */
    .app-modal-content { padding: 20px 16px; width: calc(100vw - 24px); border-radius: 14px; }
    .notices-form-modal { max-width: 100%; }

    /* Menu dropdown não sai da tela */
    .app-menu-panel { left: 0; right: auto; min-width: 200px; max-width: calc(100vw - 24px); }

    /* Botão flutuante de voltar */
    .back-btn { bottom: 16px; right: 12px; padding: 12px 16px; font-size: .85em; }

    /* Admin toolbar */
    .admin-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Alterar senha */
    .chpw-form { padding: 20px 16px; }
}

/* ── 480px: mobile pequeno ── */
@media (max-width: 480px) {

    .app-layout .container { padding: 70px 10px 24px; }

    .app-page .page-heading h1 { font-size: 1.3rem; }
    .app-page .stats { grid-template-columns: 1fr; }

    /* Tabela de usuários ainda mais compacta */
    .users-table { min-width: 520px; }
    .users-table th { font-size: .72em; padding: 8px 10px; }
    .users-table td { padding: 8px 10px; font-size: .8em; }
    .action-btns { gap: 4px; }
    .btn-icon { padding: 6px 9px; font-size: .75em; }

    /* Criador: option-editor coluna única */
    .option-editor { grid-template-columns: 1fr; }

    /* Viewer de fluxo */
    .step { padding: 14px; }
    .step-title { font-size: 1em; }
    .flow-page .flow-title-row h1 { font-size: 1.15rem; }

    /* Avisos */
    .notices-section-header { padding: 10px 12px; }
    .notice-admin-card { padding: 12px 14px; }
    .notice-admin-actions .btn { font-size: .8em; padding: 0 10px; min-height: 36px; }

    /* Alterar senha */
    .chpw-form { padding: 16px 12px; }

    /* Sector chips no formulário de usuário */
    .sector-chip-label { font-size: .8em; padding: 6px 12px; }

    /* Step cards no criador mais compactos */
    .step-editor { padding: 12px; }
    .sbe-toolbar { gap: 1px; padding: 4px 6px; }
    .sbe-toolbar button { padding: 4px 7px; font-size: .82em; }
}

/* ── Correção de overflow horizontal global ── */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
}
