/* v2/css/app-shell.css */

/* Layout Principal */
#app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar V2 */
.sidebar-v2 {
    width: 280px;
    background: #004696; /* Azul Institucional do Modelo de Gestão */
    margin: 20px 0 20px 20px;
    border-radius: var(--radius-lg, 24px);
    box-shadow: var(--shadow-soft, 0 10px 40px -10px rgba(0, 70, 150, 0.15));
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    color: white;
}

.sidebar-v2.collapsed {
    width: 80px;
}

.sidebar-brand {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: auto;
    min-height: 80px;
    flex-shrink: 0;
}

.sidebar-brand img {
    height: 36px;
    margin-bottom: 5px;
    filter: brightness(0) invert(1); /* Deixa a logo branca se for a escura */
}

.sidebar-brand .brand-full {
    font-weight: 800;
    font-size: 16px;
    color: white;
}

.sidebar-brand .brand-sub {
    font-size: 10px;
    opacity: 0.6;
    font-weight: 400;
    line-height: 1.2;
}

.sidebar-v2.collapsed .sidebar-brand { align-items: center; }
.sidebar-v2.collapsed .brand-full,
.sidebar-v2.collapsed .brand-sub { display: none; }
.sidebar-v2:not(.collapsed) .brand-mini { display: none; }

.nav-groups-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.nav-groups-container::-webkit-scrollbar { width: 4px; }
.nav-groups-container::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.1); border-radius: 10px; }

/* Grupos de Menu */
.nav-group {
    margin-bottom: 15px;
}

.nav-group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    opacity: 0.4;
    margin-bottom: 8px;
    padding-left: 15px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.nav-group-title:hover {
    opacity: 0.8;
    color: var(--abaete-yellow, #FFEE9D);
}

.group-arrow-icon {
    margin-right: 15px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-group.group-collapsed .group-arrow-icon {
    transform: rotate(-90deg);
}

.nav-group-items-wrapper {
    transition: max-height 0.3s ease-out;
}

.sidebar-v2.collapsed .nav-group-title {
    display: none !important;
}

.nav-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    margin-bottom: 2px;
}

.nav-item-v2:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-item-v2.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 700;
}

.nav-item-v2 .material-icons-outlined {
    font-size: 20px;
}

.sidebar-v2.collapsed .nav-item-v2 {
    justify-content: center;
    padding: 12px;
}

.sidebar-v2.collapsed .nav-item-v2 span.text {
    display: none;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.topbar-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg, 24px);
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft, 0 10px 40px -10px rgba(0, 70, 150, 0.15));
    flex-shrink: 0;
    height: 70px;
    position: relative;
    z-index: 150;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-btn {
    background: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--abaete-blue, #004696);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.desktop-only-btn { display: flex; }
.desktop-only-text { display: block; }

.toggle-btn:hover {
    background: var(--abaete-yellow, #FFEE9D);
    transform: scale(1.05);
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--abaete-blue, #004696);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-v2 .btn-role-toggle {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
}

.topbar-v2 .btn-role-toggle:hover {
    background: #e2e8f0;
}

.topbar-v2 .btn-role-toggle .material-icons-outlined {
    font-size: 18px;
    color: var(--abaete-blue, #004696);
}

.topbar-v2 .btn-role-toggle .btn-role-text {
    font-size: 11px;
    font-weight: 800;
    color: var(--abaete-blue, #004696);
    text-transform: uppercase;
}

.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.profile-wrapper:hover {
    background: #f1f5f9;
}


.content-area {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg, 24px);
    box-shadow: var(--shadow-soft, 0 10px 40px -10px rgba(0, 70, 150, 0.15));
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

/* Transições do Vue Router (Fade) */
.route-fade-enter-active,
.route-fade-leave-active {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.route-fade-enter-from {
  opacity: 0;
  transform: translateY(10px);
}
.route-fade-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (OFF-CANVAS SIDEBAR)
   ========================================================================== */
@media (max-width: 1200px) {
    .desktop-only-text { display: none !important; }
    
    #app { flex-direction: column; }
    
    .sidebar-v2 {
        position: fixed;
        top: 0; left: -100%; bottom: 0;
        width: 280px; height: 100vh;
        margin: 0; border-radius: 0;
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }

    .sidebar-v2.collapsed {
        width: 280px;
    }

    .sidebar-v2.mobile-open {
        left: 0;
    }

    /* Restore sidebar elements for mobile since it's a full drawer now */
    .sidebar-brand { display: flex; height: 70px; padding: 15px; }
    .sidebar-v2.collapsed .sidebar-brand { align-items: flex-start; }
    .sidebar-v2.collapsed .brand-full,
    .sidebar-v2.collapsed .brand-sub { display: block; }
    .sidebar-v2.collapsed .brand-mini { display: none; }
    .sidebar-v2.collapsed .nav-group-title,
    .nav-group-title { display: flex !important; }
    
    .nav-groups-container {
        display: block;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 15px;
        height: auto;
    }
    
    .nav-group { display: block; margin-bottom: 20px; }
    
    .nav-item-v2 { 
        flex-direction: row; 
        font-size: 14px; 
        padding: 10px 12px; 
        gap: 12px; 
        text-align: left;
        margin-bottom: 4px;
        min-width: auto;
    }
    
    .nav-item-v2 .material-icons-outlined { font-size: 24px; margin: 0; }
    .sidebar-v2.collapsed .nav-item-v2 { justify-content: flex-start; padding: 10px 12px; }
    .sidebar-v2.collapsed .nav-item-v2 span.text,
    .nav-item-v2 span.text { display: block; white-space: normal; }
    
    .sidebar-footer { display: block; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }

    .main-wrapper { 
        padding: 10px; 
        padding-bottom: 20px; 
    }

    .topbar-v2 {
        height: 60px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .topbar-left {
        gap: 8px;
    }

    .page-title {
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 35vw;
    }

    .topbar-right {
        gap: 10px;
    }

    .topbar-v2 .btn-role-toggle {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        border: 1px solid #e2e8f0;
    }

    .topbar-v2 .btn-role-toggle .btn-role-text {
        display: none !important;
    }

    .profile-wrapper {
        padding: 0;
        border-radius: 50%;
    }

    .content-area {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        max-width: 24vw;
        font-size: 13px;
    }
    
    .topbar-right {
        gap: 4px;
    }
    
    .topbar-left {
        gap: 4px;
    }

    .topbar-right .icon-btn, 
    .topbar-v2 .btn-role-toggle,
    .toggle-btn {
        width: 34px !important;
        height: 34px !important;
    }
    
    .topbar-right .icon-btn .material-icons-outlined,
    .topbar-v2 .btn-role-toggle .material-icons-outlined,
    .toggle-btn .material-icons-outlined {
        font-size: 20px !important;
    }
    
    .profile-wrapper div:last-child {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
    }
    
    .topbar-v2 {
        padding: 10px 8px;
    }
}

/* Academia: fontes de midia e capas de aula */
.academy-media-source { display:grid; gap:6px; min-width:0; padding:10px; border:1px solid #cfe0f2; border-radius:12px; background:linear-gradient(180deg,#fff,#f8fbff); box-shadow:0 3px 10px rgba(15,23,42,.03); }
.academy-media-source-label { display:block; color:#475569; font-size:.66rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.academy-media-source > input { margin:0 !important; border:1px solid #dbe4ef !important; padding:8px 9px !important; background:#fff; }
.academy-media-source .academy-file-btn { justify-content:center; margin:0 !important; padding:8px; font-size:.68rem; }
.academy-media-source > small { color:#94a3b8; font-size:.63rem; font-weight:600; }
.academy-cover-upload-btn { justify-content:center; margin-top:9px !important; font-size:.68rem; }
.main-wrapper:has(.academy-modal-backdrop) { overflow:visible; }
.academy-modal-backdrop { position:fixed !important; inset:0 !important; width:100vw; height:100vh; z-index:2147483000 !important; }
.academy-sequential-player { width:min(100%, 980px); }.academy-player-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }.academy-player-heading h2 { margin:5px 0; }.academy-player-heading p { margin:0; color:#64748b; }.academy-player-progress { display:grid; justify-items:end; color:#004696; }.academy-player-progress strong { font-size:1.7rem; line-height:1; }.academy-player-progress small { color:#64748b; font-size:.7rem; font-weight:800; }.academy-player-progress-line { overflow:hidden; height:7px; margin:15px 0; border-radius:99px; background:#eaf0f6; }.academy-player-progress-line span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#004696,#f7c948); transition:width .25s ease; }.academy-lesson-navigation { display:flex; gap:7px; margin:12px 0; padding-bottom:4px; overflow-x:auto; }.academy-lesson-step { display:flex; align-items:center; gap:6px; min-width:110px; max-width:170px; padding:7px 9px; border:1px solid #e2e8f0; border-radius:11px; background:#f8fafc; color:#64748b; cursor:pointer; text-align:left; }.academy-lesson-step span { display:grid; place-items:center; flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:#e2e8f0; font-size:.68rem; font-weight:900; }.academy-lesson-step small { overflow:hidden; font-size:.67rem; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }.academy-lesson-step.active { border-color:#004696; background:#eef5fc; color:#004696; }.academy-lesson-step.completed span { background:#bbf7d0; color:#166534; }.academy-active-lesson { padding:18px; border:1px solid #dbe4ef; border-radius:18px; background:#f8fbff; }.academy-active-lesson-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }.academy-active-lesson-heading h3 { margin:4px 0 0; font-size:1.25rem; }.academy-type-badge { display:inline-flex; align-items:center; gap:5px; padding:7px 9px; border-radius:999px; background:#e8f1fb; color:#004696; font-size:.68rem; font-weight:900; }.academy-type-badge .material-icons-outlined { font-size:16px; }.academy-active-media { overflow:hidden; margin-top:16px; border-radius:14px; background:#0f172a; }.academy-active-media iframe, .academy-active-media video { display:block; width:100%; height:440px; border:0; }.academy-document-viewer { background:#fff; }.academy-document-viewer a { display:block; padding:10px 12px; color:#004696; font-size:.75rem; font-weight:800; text-decoration:none; }.academy-reading-content { margin-top:16px; padding:24px; border-radius:14px; background:#fff; color:#334155; line-height:1.7; white-space:pre-wrap; }.academy-active-empty { display:grid; place-items:center; gap:6px; min-height:180px; margin-top:16px; border-radius:14px; background:#fff; color:#64748b; text-align:center; }.academy-active-empty .material-icons-outlined { font-size:38px; color:#004696; }.academy-sequential-footer { justify-content:space-between; gap:10px; }.academy-sequential-footer button { min-width:150px; justify-content:center; }
@media (max-width: 650px) { .academy-player-heading, .academy-active-lesson-heading { flex-direction:column; }.academy-player-progress { justify-items:start; }.academy-active-media iframe, .academy-active-media video { height:240px; }.academy-sequential-footer { align-items:stretch; flex-direction:column; }.academy-sequential-footer button { width:100%; } }

/* Academia Abaete - componentes reutilizaveis */
.academia-page { max-width: 1240px; margin: 0 auto; padding: 8px 0 48px; color: #17324d; }
.academy-topbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 18px; border:1px solid #e5edf6; border-radius:18px; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.04); }
.academy-topbar strong { display:block; margin-top:3px; color:#17324d; font-size:1.05rem; }
.academy-topbar-status { display:flex; align-items:center; gap:8px; color:#64748b; font-size:.78rem; font-weight:700; }
.academy-status-dot { width:9px; height:9px; border-radius:50%; background:#eab308; box-shadow:0 0 0 4px #fef9c3; }
.academy-status-dot.active { background:#16a34a; box-shadow:0 0 0 4px #dcfce7; }
.academy-toggle-compact { margin-left:8px; padding:7px 10px !important; font-size:.72rem !important; }
.academy-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 28px 30px; border-radius: 28px; background: linear-gradient(135deg, #004696 0%, #1768ad 68%, #f7d661 180%); color: #fff; box-shadow: 0 16px 40px rgba(0,70,150,.16); }
.academy-eyebrow { display: block; font-size: 10px; letter-spacing: .16em; font-weight: 900; opacity: .72; }
.academy-hero h1, .academy-section h2 { margin: 6px 0 4px; font-weight: 900; letter-spacing: -.025em; }
.academy-hero h1 { font-size: clamp(1.7rem, 3vw, 2.55rem); }.academy-hero p { margin: 0; opacity: .82; font-size: .92rem; }
.academy-toggle-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; font-size: .78rem; font-weight: 800; }.academy-toggle { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 8px 13px; cursor: pointer; font-weight: 900; display: inline-flex; align-items: center; gap: 7px; }.academy-toggle i { width: 9px; height: 9px; border-radius: 50%; background: #f7d661; }.academy-toggle.active i { background: #a7f3d0; }
.academy-tabs { display: flex; gap: 8px; margin: 22px 0; padding: 6px; overflow-x: auto; background: #fff; border: 1px solid #e6edf5; border-radius: 18px; box-shadow: 0 6px 18px rgba(15,23,42,.04); }.academy-tabs button { border: 0; background: transparent; color: #64748b; padding: 11px 15px; border-radius: 13px; cursor: pointer; font: inherit; font-weight: 800; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }.academy-tabs button.active { color: #004696; background: #eef5fc; }
.academy-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 18px; }.academy-section-heading h2 { font-size: 1.45rem; }.academy-primary-btn, .academy-secondary-btn { border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; font-weight: 900; display: inline-flex; align-items: center; gap: 7px; }.academy-primary-btn { color: #fff; background: #004696; box-shadow: 0 7px 16px rgba(0,70,150,.16); }.academy-secondary-btn { color: #004696; background: #eef5fc; }
.academy-section-description { margin:0; color:#64748b; font-size:.82rem; }
.academy-overview-strip { display:grid; grid-template-columns:repeat(3, minmax(100px, .45fr)) minmax(220px, 1.5fr); gap:10px; margin:0 0 16px; padding:12px; border:1px solid #e6edf5; border-radius:16px; background:#f8fbff; }.academy-overview-strip > div:not(.academy-overview-hint) { padding:7px 10px; border-right:1px solid #dbeafe; }.academy-overview-strip small, .academy-overview-strip strong { display:block; }.academy-overview-strip small { color:#64748b; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }.academy-overview-strip strong { margin-top:3px; color:#004696; font-size:1.3rem; }.academy-overview-hint { display:flex; align-items:center; gap:7px; padding:7px 10px; color:#64748b; font-size:.76rem; }
.academy-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px; }.academy-course-card { overflow: hidden; background: #fff; border: 1px solid #e6edf5; border-radius: 22px; cursor: pointer; box-shadow: 0 7px 20px rgba(15,23,42,.05); transition: transform .2s ease, box-shadow .2s ease; }.academy-course-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,70,150,.13); }.academy-course-cover { height: 132px; display: flex; align-items: center; justify-content: center; position: relative; background: linear-gradient(135deg, #dbeafe, #f7d661); background-size: cover; background-position: center; color: #004696; }.academy-course-cover .material-icons-outlined { font-size: 42px; opacity: .65; }.academy-course-status { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.88); color: #004696; font-size: 10px; font-weight: 900; }.academy-course-body { padding: 16px; }.academy-course-body small { color: #94a3b8; font-size: 10px; font-weight: 900; text-transform: uppercase; }.academy-course-body h3 { margin: 5px 0; font-size: 1rem; color: #17324d; }.academy-course-body p { min-height: 36px; margin: 0 0 13px; color: #64748b; font-size: .78rem; line-height: 1.45; }.academy-progress-line { overflow: hidden; height: 7px; border-radius: 99px; background: #eaf0f6; }.academy-progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #004696, #f7c948); }.academy-course-meta, .academy-progress-widget > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: #64748b; font-size: 10px; }.academy-course-meta strong, .academy-progress-widget strong { color: #004696; }
.academy-disabled, .academy-empty { text-align: center; padding: 72px 24px; border: 1px dashed #cbd5e1; border-radius: 24px; background: rgba(255,255,255,.72); color: #64748b; }.academy-disabled .material-icons-outlined, .academy-empty .material-icons-outlined { display: block; margin-bottom: 11px; font-size: 42px; color: #f0c63e; }.academy-disabled h2, .academy-empty strong { display: block; margin: 0 0 6px; color: #17324d; }.academy-disabled p, .academy-empty span { font-size: .86rem; }.academy-empty.compact { margin-top: 18px; padding: 42px 24px; }
.academy-management-grid, .academy-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.academy-management-grid article, .academy-kpi-grid > div { padding: 20px; border: 1px solid #e6edf5; border-radius: 20px; background: #fff; box-shadow: 0 7px 20px rgba(15,23,42,.04); }.academy-management-grid article .material-icons-outlined { color: #004696; font-size: 30px; }.academy-management-grid h3 { margin: 12px 0 6px; }.academy-management-grid p { min-height: 66px; color: #64748b; font-size: .83rem; line-height: 1.5; }.academy-coming { display: inline-block; color: #a16207; background: #fef3c7; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 900; }.academy-kpi-grid { grid-template-columns: repeat(4, 1fr); }.academy-kpi-grid small { display: block; color: #64748b; font-size: .75rem; }.academy-kpi-grid strong { display: block; margin-top: 8px; color: #004696; font-size: 1.75rem; }
.academy-modal-backdrop { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); }.academy-modal { position: relative; width: min(100%, 520px); padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 25px 80px rgba(15,23,42,.25); }.academy-modal h2 { margin: 6px 0 20px; }.academy-modal label { display: block; margin: 12px 0; color: #475569; font-size: .78rem; font-weight: 800; }.academy-modal input, .academy-modal textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }.academy-modal-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: #64748b; font-size: 28px; cursor: pointer; }.academy-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 760px) { .academy-hero { align-items: flex-start; flex-direction: column; padding: 22px; }.academy-toggle-card { justify-content: flex-start; }.academy-topbar { align-items:flex-start; flex-direction:column; }.academy-topbar-status { flex-wrap:wrap; }.academy-section-heading { align-items: flex-start; flex-direction: column; }.academy-management-grid, .academy-kpi-grid, .academy-overview-strip { grid-template-columns: 1fr; }.academy-overview-strip > div:not(.academy-overview-hint) { border-right:0; border-bottom:1px solid #dbeafe; }.academia-page { padding-inline: 10px; } }

/* Organização de membros: visual mais humano, mantendo a estrutura por grupo */
.membros-page { max-width: 1200px; margin: 0 auto; padding: 4px 0 50px; color: #17324d; }
.membros-hero { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 18px; padding: 21px 24px; background: linear-gradient(120deg, #fff 0%, #f4f9ff 72%, #fffaf0 100%); border: 1px solid #dce8f3; border-radius: 22px; box-shadow: 0 8px 26px rgba(0, 70, 150, .07); }
.membros-hero-copy { display: flex; align-items: center; gap: 15px; min-width: 0; }
.membros-hero-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 16px; color: #004696; background: linear-gradient(145deg, #dceeff, #f7d66a); box-shadow: inset 0 0 0 1px rgba(0,70,150,.10); }
.membros-hero-icon .material-icons-outlined { font-size: 27px; }
.membros-eyebrow { margin-bottom: 3px; color: #c08018; font-size: 10px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.membros-hero h1 { margin: 0; color: #0b1c30; font-size: 1.42rem; line-height: 1.2; letter-spacing: -.25px; }
.membros-hero p { margin: 5px 0 0; color: #64748b; font-size: .82rem; font-weight: 600; }
.membros-primary-action { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 11px 17px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #004696, #1767a8); box-shadow: 0 5px 15px rgba(0,70,150,.2); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.membros-primary-action:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,70,150,.25); }
.membros-primary-action .material-icons-outlined { font-size: 18px; }
.membros-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 27px; padding: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 3px 12px rgba(15, 46, 74, .04); }
.membros-search-field, .membros-filter-select { display: flex; align-items: center; gap: 8px; height: 42px; box-sizing: border-box; border: 1px solid #dbe4ed; border-radius: 11px; background: #f8fafc; color: #8ca0b3; }
.membros-search-field { flex: 1 1 260px; padding: 0 12px; }
.membros-search-field:focus-within, .membros-filter-select:focus-within { border-color: #7ba7d2; background: #fff; box-shadow: 0 0 0 3px rgba(0,70,150,.08); }
.membros-search-field .material-icons-outlined, .membros-filter-select .material-icons-outlined { font-size: 18px; }
.membros-search-field input, .membros-filter-select select { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #334e68; font: inherit; font-size: 12px; font-weight: 700; }
.membros-filter-select { flex: 0 1 218px; padding: 0 11px; }
.membros-filter-select select { cursor: pointer; }
.membros-filter-hint { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 0 7px; color: #94a3b8; font-size: 10px; font-weight: 700; }
.membros-filter-hint .material-icons-outlined { font-size: 15px; }
.membros-groups { display: flex; flex-direction: column; gap: 27px; }
.membros-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 12px; padding: 0 4px 10px; border-bottom: 1px solid #e8eef4; color: #334e68; cursor: pointer; user-select: none; }
.membros-group-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.membros-group-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; color: var(--group-color); background: color-mix(in srgb, var(--group-color) 11%, white); }
.membros-group-icon .material-icons-outlined { font-size: 17px; }
.membros-group-title > span:nth-child(2) { font-size: 13px; font-weight: 900; letter-spacing: .3px; }
.membros-count { padding: 4px 8px; border-radius: 999px; color: #7890a5; background: #f1f5f9; font-size: 10px; font-weight: 800; }
.membros-group-chevron { color: #9aabba; font-size: 19px; transition: transform .2s ease; }
.membros-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: 13px; }
.membro-card { display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 17px; background: #fff; border: 1px solid #e6edf4; border-radius: 18px; box-shadow: 0 5px 16px rgba(15, 46, 74, .045); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.membro-card:hover { transform: translateY(-3px); border-color: #c9dcec; box-shadow: 0 12px 25px rgba(15, 46, 74, .10); }
.membro-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; overflow: hidden; border: 3px solid #fff; border-radius: 17px; outline: 1px solid #d9e8f4; color: #004696; background: linear-gradient(145deg, #dceeff, #f7d66a); font-size: 17px; font-weight: 900; }
.membro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.membro-card-content { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 52px; }
.membro-name { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 3px; overflow: hidden; color: #17324d; font-size: 14px; font-weight: 900; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.membro-status { flex-shrink: 0; padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .25px; text-transform: uppercase; }
.membro-status-inactive { color: #b42318; background: #fff0ee; }
.membro-status-archived { color: #64748b; background: #f1f5f9; }
.membro-specialty { margin-bottom: 5px; overflow: hidden; color: #b7791f; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.membro-contact { display: flex; min-width: 0; color: #8a9bad; font-size: 10px; font-weight: 600; }
.membro-contact-item { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membro-contact .material-icons-outlined { flex-shrink: 0; font-size: 13px; }
.membro-roles { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #eef3f7; }
.membro-role-line, .membro-secondary-roles { display: flex; align-items: center; gap: 6px; min-width: 0; }
.membro-secondary-roles { align-items: flex-start; flex-direction: column; gap: 4px; }
.membro-role-label { flex-shrink: 0; color: #9aaaba; font-size: 8px; font-weight: 900; letter-spacing: .35px; text-transform: uppercase; }
.membro-role-primary, .membro-role-secondary { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; overflow: hidden; padding: 4px 7px; border-radius: 7px; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.membro-role-primary { color: #075985; border: 1px solid #c9e8fa; background: #eff9ff; text-transform: uppercase; }
.membro-role-primary .material-icons-outlined { font-size: 12px; }
.membro-role-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.membro-role-secondary { color: #60758a; border: 1px solid #e0e8ef; background: #f8fafc; }
@media (max-width: 700px) { .membros-page { padding-inline: 2px; }.membros-hero { align-items: flex-start; flex-direction: column; padding: 18px; }.membros-primary-action { width: 100%; justify-content: center; }.membros-filter-hint { display: none; }.membros-filter-select { flex: 1 1 180px; }.membros-card-grid { grid-template-columns: 1fr; }.membro-card { padding: 14px; } }

/* Formulário de membros: mais espaço e fluxo claro para gestão de acessos */
.membro-form-page { max-width: 1180px; margin: 0 auto; padding: 4px 0 50px; color: #17324d; }
.membro-form-header { display: flex; align-items: center; gap: 15px; margin-bottom: 21px; }
.membro-form-header h1 { margin: 0; color: #004696 !important; font-size: 1.7rem !important; letter-spacing: -.35px; }
.membro-form-header p { margin-top: 4px !important; color: #5b7691 !important; font-weight: 600; }
.membro-form-header .icon-btn-small { width: 44px !important; height: 44px !important; color: #5b7691 !important; border-color: #dce8f3 !important; border-radius: 14px !important; box-shadow: 0 4px 12px rgba(0,70,150,.07) !important; }
.membro-form-card { padding: 30px 38px !important; border: 1px solid #dfeaf3 !important; border-radius: 24px !important; box-shadow: 0 12px 32px rgba(0,70,150,.08) !important; }
.membro-form-section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 20px !important; padding-bottom: 11px !important; border-bottom: 1px solid #e4edf5 !important; color: #004696 !important; font-size: 17px !important; }
.membro-form-section-title > .material-icons-outlined { color: #006fbd; font-size: 21px; }
.membro-access-title { flex-wrap: wrap; margin-top: 4px !important; }
.membro-section-note { margin-left: auto; color: #8299ad; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.membro-form-card input, .membro-form-card select { border-color: #d5e2ed !important; border-radius: 12px !important; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.membro-form-card input:focus, .membro-form-card select:focus { border-color: #6ea6d5 !important; box-shadow: 0 0 0 3px rgba(0,70,150,.08); }
.membro-form-card .form-group label { color: #4c78a2 !important; letter-spacing: .1px; }
.membro-access-panel { margin-bottom: 25px; padding: 20px !important; border: 1px solid #d9e7f2 !important; border-radius: 18px !important; background: #f6faff !important; }
.membro-access-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; padding-bottom: 13px; border-bottom: 1px solid #dce8f3; }
.membro-access-panel-heading label { display: block; color: #17324d; font-size: 13px; font-weight: 900; letter-spacing: .25px; text-transform: uppercase; }
.membro-access-panel-heading p { margin: 4px 0 0; color: #71879a; font-size: 11px; font-weight: 600; }
.membro-access-panel-heading > .material-icons-outlined { padding: 8px; border-radius: 11px; color: #004696; background: #e4f1ff; font-size: 20px; }
.membro-role-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px !important; border: 1px solid #dce8f2 !important; border-radius: 13px !important; background: #fff !important; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important; }
.membro-role-row:hover { border-color: #a9c8e3 !important; box-shadow: 0 4px 12px rgba(0,70,150,.07); transform: translateY(-1px); }
.membro-role-row:has(input:checked) { border-color: #7db5df !important; background: #edf7ff !important; box-shadow: 0 3px 10px rgba(0,70,150,.06); }
.membro-role-row input[type="radio"] { accent-color: #004696 !important; }
.membro-role-row span[style*="background: #e0f2fe"] { color: #004696 !important; background: #dceeff !important; border-radius: 999px !important; }
.membro-role-add { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(220px, 1.7fr) auto; gap: 10px; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #dce8f3; }
.membro-role-add-label { display: inline-flex; align-items: center; gap: 6px; color: #37698f; font-size: 11px; font-weight: 900; }
.membro-role-add-label .material-icons-outlined { color: #e0ad2d; font-size: 18px; }
.membro-role-add select { width: 100%; min-width: 0 !important; height: 46px; padding: 0 12px !important; background: #fff !important; font-size: 12px !important; font-weight: 700; }
.membro-link-role-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 17px; border: 0; border-radius: 11px; color: #fff; background: #004696; box-shadow: 0 4px 12px rgba(0,70,150,.16); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.membro-link-role-button:hover { background: #003779; transform: translateY(-1px); }
.membro-link-role-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; transform: none; }
.membro-link-role-button .material-icons-outlined { font-size: 17px; }
.membro-access-helper { display: flex; align-items: flex-start; gap: 6px; margin: 13px 0 0 !important; color: #71879a !important; font-size: 10px !important; line-height: 1.5; font-weight: 600; }
.membro-access-helper .material-icons-outlined { flex-shrink: 0; color: #d39d17; font-size: 16px; }
@media (max-width: 780px) { .membro-form-page { padding-inline: 8px; }.membro-form-card { padding: 22px 18px !important; }.membro-section-note { width: 100%; margin-left: 29px; }.membro-role-add { grid-template-columns: 1fr; }.membro-role-add-label { margin-bottom: -2px; }.membro-link-role-button { width: 100%; } }

/* Lista de pacientes: detalhes de acolhimento e leitura rápida */
.pacientes-page { max-width: 1200px; margin: 0 auto; padding: 4px 0 50px; color: #17324d; }
.pacientes-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px !important; padding: 20px 24px; border: 1px solid #dce8f3; border-radius: 22px; background: linear-gradient(120deg, #fff 0%, #f4f9ff 72%, #fffaf0 100%); box-shadow: 0 8px 26px rgba(0,70,150,.07); }
.pacientes-hero-copy { display: flex; align-items: center; gap: 15px; min-width: 0; }
.pacientes-hero-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 16px; color: #004696; background: linear-gradient(145deg, #dceeff, #f7d66a); box-shadow: inset 0 0 0 1px rgba(0,70,150,.1); }
.pacientes-hero-icon .material-icons-outlined { font-size: 25px; }
.pacientes-eyebrow { margin-bottom: 3px; color: #c08018; font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.pacientes-hero h2 { margin: 0; color: #004696 !important; font-size: 1.48rem !important; letter-spacing: -.25px; }
.pacientes-hero p { margin: 5px 0 0 !important; color: #5b7691 !important; font-size: .82rem !important; font-weight: 600; }
.pacientes-primary-action { display: inline-flex !important; align-items: center; gap: 7px; flex-shrink: 0; padding: 11px 17px !important; border: 0 !important; border-radius: 12px !important; color: #fff !important; background: #004696 !important; box-shadow: 0 5px 15px rgba(0,70,150,.2); font-size: 12px; font-weight: 900 !important; transition: transform .15s ease, box-shadow .15s ease; }
.pacientes-primary-action:hover { transform: translateY(-1px); background: #003779 !important; box-shadow: 0 8px 18px rgba(0,70,150,.25); }
.pacientes-primary-action .material-icons-outlined { font-size: 18px; }
.pacientes-plan-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid #dfe9f2; border-radius: 14px; background: #edf4fa; }
.pacientes-plan-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-height: 39px; padding: 8px 15px; border: 0; border-radius: 10px; color: #6d8498; background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; transition: all .18s ease; }
.pacientes-plan-tab:hover { color: #004696; background: rgba(255,255,255,.65); }
.pacientes-plan-tab .material-icons-outlined { font-size: 16px; }
.pacientes-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; padding: 10px; border: 1px solid #dce8f3; border-radius: 16px; background: #fff; box-shadow: 0 3px 12px rgba(15,46,74,.04); }
.pacientes-search-field, .pacientes-status-filter { display: flex; align-items: center; gap: 8px; height: 42px; box-sizing: border-box; border: 1px solid #d5e2ed; border-radius: 11px; background: #f8fbfe; color: #8ca0b3; }
.pacientes-search-field { flex: 1 1 280px; padding: 0 12px; }
.pacientes-search-field:focus-within, .pacientes-status-filter:focus-within { border-color: #6ea6d5; background: #fff; box-shadow: 0 0 0 3px rgba(0,70,150,.08); }
.pacientes-search-field .material-icons-outlined, .pacientes-status-filter .material-icons-outlined { font-size: 18px; }
.pacientes-search-field input, .pacientes-status-filter select { width: 100%; height: 100%; box-sizing: border-box; border: 0; outline: 0; background: transparent; color: #334e68; font: inherit; font-size: 12px; font-weight: 700; }
.pacientes-status-filter { flex: 0 1 210px; padding: 0 11px; }
.pacientes-status-filter select { cursor: pointer; }
.patients-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 15px !important; }
.patient-card { position: relative; overflow: hidden; padding: 18px !important; border: 1px solid #e1ebf3 !important; border-radius: 18px !important; background: #fff !important; box-shadow: 0 5px 16px rgba(15,46,74,.05) !important; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important; }
.patient-card:hover { transform: translateY(-3px); border-color: #bfd6e8 !important; box-shadow: 0 13px 26px rgba(15,46,74,.11) !important; }
.patient-card > div:first-child { width: 4px !important; border-radius: 0 4px 4px 0; opacity: .85; }
.patient-card-main { display: flex; align-items: flex-start; gap: 13px; }
.patient-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; border: 3px solid #fff; border-radius: 17px; outline: 1px solid #d6e6f2; color: #004696; background: linear-gradient(145deg, #dceeff, #f7d66a) !important; font-size: 20px; font-weight: 900; }
.patient-avatar img { width: 100%; height: 100%; object-fit: cover; }
.patient-card-info { min-width: 0; flex: 1; }
.patient-card-info h4 { margin: 0; overflow: hidden; color: #17324d !important; font-size: 15px !important; font-weight: 900; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.patient-diagnosis { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 5px; overflow: hidden; color: #71879a; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.patient-diagnosis .material-icons-outlined { flex-shrink: 0; color: #6e9cc3; font-size: 15px; }
.patient-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.patient-badge { padding: 4px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .2px; text-transform: uppercase; }
.patient-plan-badge { color: #526b80 !important; border-color: #dfe8ef; background: #f3f7fa; }
.patient-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 12px; border-top: 1px solid #edf2f6; }
.patient-age { display: inline-flex; align-items: center; gap: 5px; color: #899baa; font-size: 10px; font-weight: 700; }
.patient-age .material-icons-outlined { color: #d1a12a; font-size: 15px; }
.patient-actions { display: flex; gap: 6px; }
.patient-actions .icon-btn-small { width: 32px !important; height: 32px !important; border-radius: 10px !important; box-shadow: none; }
.patient-actions .icon-btn-small:hover { transform: translateY(-1px); filter: brightness(.95); }
@media (max-width: 700px) { .pacientes-page { padding-inline: 4px; }.pacientes-hero { align-items: flex-start; flex-direction: column; padding: 18px; }.pacientes-primary-action { width: 100%; justify-content: center; }.pacientes-plan-tab { padding-inline: 6px; }.pacientes-plan-tab .material-icons-outlined { display: none; }.pacientes-status-filter { flex: 1 1 180px; }.patients-grid { grid-template-columns: 1fr; } }

/* A vitrine de cursos e horizontal para facilitar a descoberta dos cursos proximos. */
.academy-course-grid { display: flex; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.academy-course-card { flex: 0 0 245px; scroll-snap-align: start; }
.academy-player-modal { position: relative; width: min(100%, 800px); max-height: 90vh; overflow: auto; padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 25px 80px rgba(15,23,42,.25); }
.academy-player-modal h2 { margin: 6px 0 4px; }.academy-player-description { color: #64748b; }.academy-video, .academy-embed { display: block; width: 100%; min-height: 360px; margin-top: 18px; border: 0; border-radius: 16px; background: #0f172a; }.academy-player-empty { display: grid; place-items: center; gap: 7px; min-height: 250px; margin-top: 18px; border-radius: 16px; background: #f8fafc; color: #64748b; text-align: center; }.academy-player-empty .material-icons-outlined { font-size: 44px; color: #004696; }.academy-player-footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.academy-player-module { margin-top: 18px; padding: 15px; border: 1px solid #e2e8f0; border-radius: 15px; background: #f8fafc; }.academy-player-module h3 { margin: 0 0 10px; }.academy-player-lesson { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid #e2e8f0; }.academy-player-lesson small { display: block; margin-top: 3px; color: #64748b; font-size: 10px; }.academy-quiz-box { grid-column: 1 / -1; display: grid; gap: 9px; padding: 12px; border-radius: 12px; background: #fff; }.academy-quiz-question { display: grid; gap: 5px; }.academy-quiz-question input { padding: 9px; border: 1px solid #cbd5e1; border-radius: 8px; }.academy-player-result { margin-top: 14px; padding: 11px; border-radius: 10px; background: #dcfce7; color: #166534; font-weight: 800; }.academy-player-result.error { background: #fee2e2; color: #991b1b; }
.academy-player-lesson-main { display:flex; align-items:center; gap:11px; min-width:0; }.academy-player-lesson-cover { display:grid; place-items:center; flex:0 0 74px; width:74px; height:48px; border-radius:10px; background:linear-gradient(135deg,#dbeafe,#f7d661); background-size:cover; background-position:center; color:#004696; overflow:hidden; }.academy-player-lesson-cover .material-icons-outlined { font-size:27px; }.academy-lesson-cover-editor { display:grid; grid-template-columns:170px minmax(0,1fr); gap:14px; align-items:center; margin-top:12px; padding:12px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }.academy-lesson-cover-preview { display:grid; place-items:center; align-content:center; gap:4px; min-height:76px; border-radius:10px; background:linear-gradient(135deg,#dbeafe,#f7d661); background-size:cover; background-position:center; color:#004696; text-align:center; }.academy-lesson-cover-preview .material-icons-outlined { font-size:28px; }.academy-lesson-cover-preview small { font-size:.62rem; font-weight:800; }.academy-field-label { display:block; color:#475569; font-size:.72rem; font-weight:800; }.academy-field-label span { color:#94a3b8; font-weight:600; }.academy-field-label input { display:block; width:100%; box-sizing:border-box; margin-top:5px; padding:9px 10px; border:1px solid #cbd5e1; border-radius:9px; font:inherit; }
.academy-editor-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }.academy-course-admin-list { display: grid; gap: 8px; }.academy-admin-course { padding: 13px; border: 1px solid #e6edf5; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }.academy-admin-course.active { border-color: #004696; box-shadow: 0 0 0 2px #dbeafe; }.academy-admin-course strong, .academy-admin-course small { display: block; }.academy-admin-course small { margin-top: 4px; color: #64748b; font-size: 10px; }.academy-editor-card { padding: 20px; border: 1px solid #e6edf5; border-radius: 20px; background: #fff; box-shadow: 0 7px 20px rgba(15,23,42,.04); }.academy-editor-card-heading, .academy-module-heading, .academy-module-title, .academy-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.academy-editor-card-heading h3, .academy-module-heading h3 { margin: 5px 0; }.academy-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }.academy-editor-fields label { color: #475569; font-size: .78rem; font-weight: 800; }.academy-editor-fields label:last-child { grid-column: 1 / -1; }.academy-editor-fields input, .academy-editor-fields textarea, .academy-module-title input, .academy-lesson-row input, .academy-lesson-row select { width: 100%; box-sizing: border-box; margin-top: 5px; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }.academy-module-card { margin-top: 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 15px; background: #f8fafc; }.academy-module-title input { flex: 1; margin: 0; font-weight: 800; }.academy-lesson-row { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr .45fr; gap: 8px; margin-top: 9px; }.academy-lesson-row input, .academy-lesson-row select { margin: 0; min-width: 0; }.academy-module-empty { padding: 14px 0 3px; color: #94a3b8; font-size: .78rem; }.academy-editor-actions { justify-content: flex-end; margin-top: 18px; padding-top: 15px; border-top: 1px solid #e2e8f0; }
.academy-selection-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 2px 7px; }.academy-selection-heading strong { display:block; margin-top:4px; color:#17324d; font-size:.9rem; }.academy-selection-heading .academy-primary-btn { padding:8px 10px; font-size:.72rem; }.academy-admin-course { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; width:100%; text-align:left; }.academy-admin-course-cover { display:grid; place-items:center; width:48px; height:42px; border-radius:9px; background:linear-gradient(135deg,#dbeafe,#f7d661); background-size:cover; background-position:center; color:#004696; }.academy-admin-course-cover .material-icons-outlined { font-size:22px; }.academy-admin-course > .material-icons-outlined { color:#94a3b8; }.academy-back-btn { display:inline-flex; align-items:center; gap:5px; margin-bottom:12px; padding:0; border:0; background:transparent; color:#004696; cursor:pointer; font:inherit; font-size:.78rem; font-weight:800; }.academy-editor-card-heading p { margin:4px 0 0; color:#64748b; font-size:.78rem; }.academy-cover-field { display:grid; grid-template-columns:1fr auto; gap:8px; }.academy-file-btn { display:inline-flex; align-items:center; gap:5px; margin:5px 0 0 !important; padding:9px 11px; border-radius:9px; background:#eef5fc; color:#004696 !important; cursor:pointer; white-space:nowrap; }.academy-file-btn input { display:none; }.academy-field-help { display:block; margin-top:6px; color:#94a3b8; font-size:.7rem; font-weight:600; }.academy-cover-preview { display:flex; align-items:flex-end; height:150px; margin:0 0 18px; padding:14px; border-radius:16px; background-size:cover; background-position:center; color:#fff; box-shadow:inset 0 -70px 80px rgba(15,23,42,.45); font-size:.72rem; font-weight:800; }.academy-assignment-section { margin-top:24px; padding-top:20px; border-top:1px solid #e2e8f0; }.academy-subsection-heading h3 { margin:4px 0; }.academy-subsection-heading p { margin:0; color:#64748b; font-size:.78rem; }.academy-assigned-list { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:12px; }.academy-assigned-list > strong { flex-basis:100%; color:#475569; font-size:.75rem; }.academy-assigned-person { display:inline-flex; align-items:center; gap:5px; padding:7px 9px; border:1px solid #dbeafe; border-radius:999px; background:#f8fbff; color:#17324d; font-size:.72rem; font-weight:800; }.academy-assigned-person .material-icons-outlined { font-size:16px; color:#004696; }.academy-assigned-person small { color:#64748b; font-size:.65rem; font-weight:600; }.academy-assigned-empty { color:#94a3b8; font-size:.75rem; }
.academy-order-badge { display:inline-flex; align-items:center; justify-content:center; min-width:54px; padding:5px 7px; border-radius:7px; background:#e8f1fb; color:#004696; font-size:.68rem; font-weight:900; white-space:nowrap; }.academy-watch-field { display:block; color:#475569; font-size:.68rem; font-weight:800; }.academy-watch-field input { display:block; width:100%; margin-top:4px; }.academy-watch-field small { display:block; margin-top:4px; color:#64748b; font-size:.62rem; font-weight:600; line-height:1.25; }
.academy-editor-layout:not(.is-editing) { display:block; }.academy-editor-layout:not(.is-editing) .academy-course-admin-list { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }.academy-editor-layout:not(.is-editing) .academy-selection-heading { grid-column:1 / -1; padding-bottom:12px; }.academy-editor-layout.is-editing { display:block; }.academy-editor-layout.is-editing .academy-editor-card { width:100%; box-sizing:border-box; }.academy-media-source { display:grid; gap:5px; min-width:0; padding:7px; border:1px solid #dbe4ef; border-radius:10px; background:#fff; }.academy-media-source > input { margin:0 !important; border:0 !important; padding:3px !important; }.academy-media-source .academy-file-btn { justify-content:center; margin:0 !important; padding:6px 8px; font-size:.68rem; }.academy-lesson-row { grid-template-columns:58px minmax(130px,1.1fr) minmax(100px,.8fr) minmax(230px,1.5fr) minmax(145px,.9fr); align-items:start; }
.academy-assignment-box { display: grid; grid-template-columns: 1.35fr .85fr 1.35fr .8fr auto; align-items: end; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid #dbeafe; border-radius: 15px; background: #f8fbff; }.academy-assignment-heading h3 { margin: 4px 0 0; font-size: .95rem; }.academy-assignment-heading small { display:block; margin-top:4px; color:#64748b; font-size:.7rem; }.academy-assignment-box select, .academy-assignment-box input { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; font: inherit; }
.academy-lesson-block { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; }.academy-quiz-settings { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }.academy-quiz-settings label { color: #475569; font-size: 10px; font-weight: 800; }.academy-quiz-settings input { display: block; width: 90px; margin-top: 4px; padding: 7px; border: 1px solid #cbd5e1; border-radius: 8px; }.academy-question-row { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 8px; margin-top: 8px; }.academy-question-row input { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
@media (max-width: 850px) { .academy-editor-layout { grid-template-columns: 1fr; }.academy-editor-fields, .academy-lesson-row, .academy-assignment-box, .academy-cover-field, .academy-lesson-cover-editor { grid-template-columns: 1fr; }.academy-editor-card-heading { align-items:flex-start; flex-direction:column; }.academy-editor-card-heading > .academy-secondary-btn { width:100%; justify-content:center; }.academy-editor-actions { align-items: stretch; flex-direction: column; }.academy-editor-actions button { justify-content: center; } }

@media (hover: none), (pointer: coarse) {
    .sidebar-v2.collapsed {
        width: 280px;
    }

    .sidebar-v2.collapsed .sidebar-brand {
        align-items: flex-start;
    }

    .sidebar-v2.collapsed .brand-full,
    .sidebar-v2.collapsed .brand-sub {
        display: block;
    }

    .sidebar-v2.collapsed .brand-mini {
        display: none;
    }

    .sidebar-v2.collapsed .nav-group-title {
        display: flex !important;
    }

    .sidebar-v2.collapsed .nav-item-v2 {
        justify-content: flex-start;
        padding: 10px 15px;
    }

    .sidebar-v2.collapsed .nav-item-v2 span.text {
        display: block;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    #app {
        display: block;
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar-v2, 
    .topbar-v2 .topbar-right, 
    .toggle-btn,
    .no-print,
    button {
        display: none !important;
    }

    .main-wrapper {
        display: block;
        padding: 0;
        margin: 0;
        height: auto !important;
        overflow: visible !important;
    }

    .topbar-v2 {
        box-shadow: none;
        border-bottom: 2px solid var(--abaete-blue);
        border-radius: 0;
        margin-bottom: 20px;
        background: white !important;
    }

    .content-area {
        display: block;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        height: auto !important;
        overflow: visible !important;
        background: white !important;
    }

    .card, .stat-card {
        box-shadow: none !important;
        border: 1px solid #eee !important;
        break-inside: avoid;
    }

    /* Cores de fundo forçadas para o gráfico e cards se necessário */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Animação para Toasts */
.toast-slide-enter-active,
.toast-slide-leave-active {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-slide-enter-from {
  opacity: 0;
  transform: translateX(100px) scale(0.9);
}
.toast-slide-leave-to {
  opacity: 0;
  transform: translateX(100px) scale(0.9);
}

/* Animação Pulse para o Sino Ativo */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Estilo responsivo para dropdown de notificações */
@media (max-width: 480px) {
  .notifications-dropdown {
    width: 290px !important;
    right: -60px !important;
  }
  .page-title {
    max-width: 28vw;
    font-size: 14px;
  }
  .topbar-right {
    gap: 6px;
  }
}

/* Ajustes de layout para AplicacaoPortal */
.aplicacao-portal-v2 {
    --portal-safe-area-bottom: max(env(safe-area-inset-bottom, 0px), var(--native-safe-area-bottom, 0px));
    --portal-bottom-bar-height: 66px;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    min-height: 100svh !important;
}

.portal-top-bar {
    background: white;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: -25px -25px 20px -25px;
    border-top-left-radius: var(--radius-lg, 24px);
    border-top-right-radius: var(--radius-lg, 24px);
    z-index: 10;
}

.setup-bottom-bar {
    position: sticky;
    bottom: -25px;
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: -25px;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

/* ── Session Bottom Bar (desktop: hidden) ── */
.session-bottom-bar {
    display: none;
}

.session-entry-row:focus-within {
    border-color: rgba(0, 70, 150, 0.22) !important;
    background: white !important;
}

.session-entry-row {
    align-items: start !important;
}

.session-entry-textarea {
    width: 100%;
    min-height: 20px;
    max-height: 140px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    color: var(--abaete-blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    outline: none;
    overflow-y: auto;
    resize: none;
}

.session-entry-textarea::placeholder {
    color: #64748b;
    font-weight: 700;
}

.recent-records-header > div:first-child {
    min-width: 0;
}

.recent-records-undo-btn {
    color: #ef4444;
    font-size: 11px;
    border: none;
    background: #fff1f2;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.recent-records-undo-btn .material-icons-outlined {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 1200px) {
    .portal-top-bar {
        margin: -15px -15px 15px -15px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        padding: 10px 15px;
        gap: 8px;
    }
    .setup-bottom-bar {
        bottom: -15px;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: -15px;
        padding: 15px;
    }

    /* ── Hide top-bar session action buttons on mobile/tablet ── */
    .portal-top-bar .session-toolbar {
        display: none !important;
    }

    /* ── Compact timer on mobile ── */
    .portal-top-bar .session-timer-card {
        padding: 4px 10px !important;
        min-width: 80px !important;
        border-radius: 10px !important;
    }

    /* ── Fix portal-content overflow ── */
    .portal-content {
        padding: 12px !important;
        box-sizing: border-box;
        overflow-x: hidden;
        max-width: 100% !important;
        min-height: 100dvh;
    }

    /* ── Extra bottom padding to clear the floating bar ── */
    .portal-content .execution-area {
        padding-bottom: calc(var(--portal-bottom-bar-height, 66px) + var(--portal-safe-area-bottom, 0px) + 24px);
    }

    /* ── Show session bottom bar ── */
    .session-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: white;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
        padding: 10px 14px;
        padding-bottom: calc(10px + var(--portal-safe-area-bottom, 0px));
        min-height: calc(var(--portal-bottom-bar-height, 66px) + var(--portal-safe-area-bottom, 0px));
        gap: 8px;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .session-bottom-bar .sbb-action-group {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .session-bottom-bar .sbb-btn {
        border: none;
        border-radius: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        transition: opacity 0.15s;
    }
    .session-bottom-bar .sbb-btn:active {
        opacity: 0.75;
    }

    /* Small icon buttons */
    .session-bottom-bar .sbb-btn-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    .session-bottom-bar .sbb-btn-icon .material-icons-outlined {
        font-size: 22px;
    }

    /* Large finish button */
    .session-bottom-bar .sbb-btn-finish {
        flex: 1;
        max-width: 280px;
        height: 46px;
        gap: 8px;
        font-size: 14px;
        letter-spacing: 0.3px;
        padding: 0 18px;
    }

    /* ── Identity text compacter ── */
    .portal-top-identity h3 {
        font-size: 12px !important;
    }
    .portal-top-identity div[style*="font-size: 10px"] {
        font-size: 9px !important;
    }

    /* ── All cards: respect width ── */
    .execution-area .card,
    .execution-area .target-execution-card {
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* ── Cards padding compact ── */
    .execution-area .card {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    /* ── Target execution card ── */
    .target-execution-card {
        padding: 14px !important;
        border-radius: 18px !important;
        min-height: auto !important;
    }

    /* ── Collector widgets: single column ── */
    .target-execution-card > div[style*="grid-template-columns: repeat(auto-fit, minmax(280px"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* ── Collector widget card ── */
    .collector-widget {
        padding: 14px !important;
        border-radius: 14px !important;
        min-width: 0 !important;
    }

    /* ── Help levels grid: 4 cols still fits, but smaller gap ── */
    .collector-widget div[style*="grid-template-columns: repeat(4, 1fr)"] {
        gap: 6px !important;
    }

    /* ── Strategy trial groups: single column ── */
    .target-execution-card div[style*="grid-template-columns: repeat(auto-fit, minmax(220px"] {
        grid-template-columns: 1fr !important;
    }

    /* ── Eventos e Ocorrências: entry grid ── */
    .execution-area div[style*="grid-template-columns: 80px 1fr 40px"] {
        grid-template-columns: 60px 1fr 32px !important;
        gap: 6px !important;
        padding: 8px !important;
    }

    /* ── Target tabs: ensure they scroll not overflow ── */
    .target-tabs-container {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ── Media upload row ── */
    .media-upload-row {
        grid-template-columns: 36px 1fr auto !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .media-upload-row > div:first-child {
        width: 36px !important;
        height: 36px !important;
    }

    /* ── Media grid ── */
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    /* ── Observações card: textarea ── */
    .execution-area textarea {
        min-height: 100px !important;
        font-size: 13px;
    }

    /* ── Target header: wrap strategy/type row ── */
    .target-execution-card > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
    }
    .target-execution-card > div:first-child > div:first-child h2 {
        font-size: 17px !important;
    }
    .target-execution-card > div:first-child > div:first-child > div {
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    .recent-records-header {
        gap: 8px !important;
    }

    .recent-records-undo-btn {
        width: 34px;
        height: 34px;
        padding: 0;
    }

    .recent-records-undo-btn .material-icons-outlined {
        font-size: 16px;
    }

    .recent-records-undo-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .setup-screen {
        margin: 8px auto !important;
        padding: 0 8px 28px !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .setup-card {
        max-width: 100%;
        border-radius: 18px !important;
    }

    .setup-card-hero,
    .setup-journey,
    .setup-card-body {
        padding: 16px !important;
    }

    .setup-strategy-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .setup-target-groups,
    .setup-target-group,
    .setup-target-group-header {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .setup-target-group-header {
        align-items: flex-start !important;
        padding: 12px !important;
    }

    .setup-target-group-header > div:first-child {
        flex: 1 1 auto;
        gap: 9px !important;
        min-width: 0;
    }

    .setup-target-group-name {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .portal-top-bar {
        padding: 8px 10px;
        gap: 6px;
    }

    .portal-top-bar .session-timer-card {
        padding: 3px 8px !important;
        min-width: 70px !important;
    }
    .portal-top-bar .session-timer-card div[style*="font-size: 18px"] {
        font-size: 15px !important;
    }
    .portal-top-bar .session-timer-card div[style*="font-size: 9px"] {
        font-size: 8px !important;
    }

    .portal-content {
        padding: 8px !important;
    }

    /* Tighter bottom bar on phones */
    .session-bottom-bar {
        padding: 8px 10px;
        padding-bottom: calc(8px + var(--portal-safe-area-bottom, 0px));
        min-height: calc(58px + var(--portal-safe-area-bottom, 0px));
        gap: 6px;
    }
    .session-bottom-bar .sbb-btn-icon {
        width: 40px;
        height: 40px;
    }
    .session-bottom-bar .sbb-btn-finish {
        height: 42px;
        font-size: 13px;
    }

    /* ── Even tighter cards on phone ── */
    .execution-area .card,
    .target-execution-card {
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .collector-widget {
        padding: 10px !important;
    }

    /* ── Help levels: 2 cols on very small ── */
    .collector-widget div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── Intensity buttons: smaller ── */
    .collector-widget div[style*="display: flex; gap: 8px"] button[style*="width: 45px"] {
        width: 38px !important;
        height: 38px !important;
        border-radius: 8px !important;
    }

    /* ── Entry grid: even tighter ── */
    .execution-area div[style*="grid-template-columns: 80px 1fr 40px"] {
        grid-template-columns: 50px 1fr 28px !important;
        gap: 4px !important;
    }

    /* ── Media grid: 2 col on tiny screens ── */
    .media-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── Target name smaller ── */
    .target-execution-card > div:first-child > div:first-child h2 {
        font-size: 15px !important;
    }

    /* ── Latency/duration buttons wrap ── */
    .collector-widget div[style*="display: flex; gap: 12px"] {
        flex-wrap: wrap;
        justify-content: center;
    }
    .session-bottom-bar .sbb-btn-icon {
        width: 40px;
        height: 40px;
    }
    .session-bottom-bar .sbb-btn-finish {
        height: 42px;
        font-size: 13px;
    }

    /* ── Even tighter cards on phone ── */
    .execution-area .card,
    .target-execution-card {
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .collector-widget {
        padding: 10px !important;
    }

    /* ── Help levels: 2 cols on very small ── */
    .collector-widget div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── Intensity buttons: smaller ── */
    .collector-widget div[style*="display: flex; gap: 8px"] button[style*="width: 45px"] {
        width: 38px !important;
        height: 38px !important;
        border-radius: 8px !important;
    }

    /* ── Entry grid: even tighter ── */
    .execution-area div[style*="grid-template-columns: 80px 1fr 40px"] {
        grid-template-columns: 50px 1fr 28px !important;
        gap: 4px !important;
    }

    /* ── Media grid: 2 col on tiny screens ── */
    .media-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── Target name smaller ── */
    .target-execution-card > div:first-child > div:first-child h2 {
        font-size: 15px !important;
    }

    /* ── Latency/duration buttons wrap ── */
    .collector-widget div[style*="display: flex; gap: 12px"] {
        flex-wrap: wrap;
        justify-content: center;
    }
    .collector-widget div[style*="display: flex; gap: 12px"] button {
        flex: 1;
        min-width: 0;
    }

    /* ── Interval metronome buttons wrap ── */
    .collector-widget div[style*="display: flex; gap: 10px; justify-content: center"] {
        flex-wrap: wrap;
    }
}

/* ── Help level buttons styling & micro-animations ── */
.help-level-btn {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease, border-color 0.15s ease !important;
}

.help-level-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.help-level-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Modern Strategy Selector pills styling ── */
.strategy-selector-pills button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.strategy-selector-pills button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.strategy-selector-pills button:active {
    transform: translateY(0);
}

/* Oculta opções e botões de baixar documentos nos modais do visualizador por segurança e LGPD */
.modal-overlay a[download],
.modal-overlay button[download],
.modal-overlay a[href*="dl=1"] {
    display: none !important;
}

/* Melhorias de Responsividade para Dispositivos Móveis */
@media (max-width: 768px) {
    /* 1. Responsividade do Modal de Visualização de Arquivos (Evita sobreposição do cabeçalho) */
    .modal-overlay .card > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }
    
    .modal-overlay .card > div:first-child h3 {
        white-space: normal !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .modal-overlay .card > div:first-child > div:last-child {
        width: 100% !important;
        justify-content: flex-end !important;
        display: flex;
        gap: 8px;
    }

    /* Cabeçalho específico do modal de horário clínico: título e fechar na mesma linha. */
    .modal-overlay .card.modal-sheet-card > div.agenda-create-modal-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 20px 24px !important;
    }

    .modal-overlay .card.modal-sheet-card > div.agenda-create-modal-header > div:first-child {
        width: auto !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    /* 2. Responsividade da Lista de Documentos/Relatórios (Alinha itens e botões) */
    .reports-list-item {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
        align-items: stretch !important;
    }
    
    .reports-list-item h4 {
        white-space: normal !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .reports-list-actions {
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
    }

    /* Botões de ação divididos em grid responsivo de 2 colunas */
    .report-action-button {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 0 !important;
        font-size: 11px !important;
        height: 34px !important;
        padding: 0 8px !important;
    }

    /* 3. Responsividade da Barra de Filtros (Empilhamento vertical) */
    .reports-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    /* 4. Responsividade do Gerador de Relatórios (Modal Grid e Opções) */
    .reports-modal-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .reports-modal-grid > [style*="grid-column: span 2"] {
        grid-column: auto !important;
    }

    .reports-generator-options {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}
