/* Instituto Anglicano — V1.8.43
   Refinamento visual da área administrativa. Poppins nos títulos, Inter no trabalho.
   Arquivo exclusivo do /admin; nenhuma alteração de estilos do site público. */
:root {
    --adm-font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --adm-font-display: "Poppins", "Inter", sans-serif;
    --adm-deep: #172e4b;
    --adm-navy: #173958;
    --adm-text: #283c55;
    --adm-muted: #798a9d;
    --adm-red: #db6671;
    --adm-blue: #285f98;
    --adm-bg: #f7f9fc;
    --adm-border: #e8edf3;
    --adm-shadow: 0 8px 27px rgba(26, 54, 85, .035);
}
html, body { font-family: var(--adm-font-ui); }
body { letter-spacing: -.08px; }
h1, h2, h3, .adm-top-left strong, .adm-stat-value, .adm-auth-card h1,
.adm-auth-visual-copy h2 { font-family: var(--adm-font-display); }
button, input, select, textarea { font-family: var(--adm-font-ui); }
.adm-icon { stroke-width: 1.8; }

/* Navegação: superfície clara, contraste consistente, seleção evidente. */
.adm-sidebar {
    width: 268px;
    min-width: 268px;
    background: #ffffff;
    color: #455b73;
    border-right: 1px solid #e7edf3;
    box-shadow: none;
    padding: 21px 14px 13px;
}
.adm-brand { padding: 5px 10px 18px; border-bottom: 1px solid #eef1f5; gap: 8px; }
.adm-brand-identity { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 7px; }
.adm-brand-img { width: 185px; height: 45px; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.adm-brand-identity small { padding-left: 3px; color: #8797a7; font-size: 10px; font-weight: 600; letter-spacing: .12px; }
.adm-sidebar-workspace {
    margin: 17px 4px 13px;
    padding: 12px 11px;
    background: #f7f9fc;
    border: 1px solid #edf1f6;
    border-radius: 12px;
}
.adm-workspace-indicator { background: #e9f0f8; border-color: #e0eaf5; }
.adm-workspace-indicator::before { background: #638bb0; box-shadow: 0 0 0 4px #638bb01a; }
.adm-sidebar-workspace strong { color: #284760; font-size: 12px; }
.adm-sidebar-workspace small { color: #8b9bab; font-size: 10px; }
.adm-workspace-chevron { color: #a2b0c0; }
.adm-nav { padding: 0 4px 8px; scrollbar-color: #dae2ec transparent; }
.adm-nav-label { color: #a4b0be; font-size: 10px; font-weight: 700; letter-spacing: 1.06px; margin: 23px 9px 7px; }
.adm-nav a {
    min-height: 43px;
    padding: 10px 11px;
    margin-bottom: 3px;
    color: #53657b;
    font-weight: 570;
    font-size: 12px;
    border-radius: 10px;
    transition: background .16s, color .16s, transform .16s;
}
.adm-nav a .adm-icon { color: #879ab1; stroke-width: 1.75; }
.adm-nav a:hover { background: #f4f7fb; color: #21466c; }
.adm-nav a:hover .adm-icon { color: #3b709f; }
.adm-nav a.selected { background: #eaf2fb; border-color: transparent; color: #174a7e; font-weight: 700; }
.adm-nav a.selected::before { width: 3px; height: 20px; background: #d96673; left: 0; border-radius: 0 4px 4px 0; }
.adm-nav a.selected .adm-icon { color: #275b8b; }
.adm-visit-link { background: #f9fbfd; color: #315874; border: 1px solid #e6edf5; font-size: 11px; }
.adm-visit-link:hover { background: #edf5fd; color: #19456f; border-color: #d8e6f3; }
.adm-visit-arrow { color: #7c91a6; opacity: 1; }
.adm-sidebar-bottom { border-color: #edf1f5; padding-top: 15px; }
.adm-avatar { background: #e7eff9; color: #27527c; border-radius: 12px; }
.adm-user strong { color: #28415c; font-size: 12px; }
.adm-user small { color: #9ba7b5; font-size: 10px; }
.adm-exit { background: #f7f9fc; color: #74879d; border-color: #e6ecf3; }
.adm-exit:hover { background: #fff0f1; color: #bb4c60; border-color: #f4d6dc; }

/* Topbar leve, organização de conteúdo e feedback. */
.adm-content { background: #f7f9fc; }
.adm-topbar {
    min-height: 79px;
    height: 79px;
    background: #ffffffeb;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: #e8edf3;
    box-shadow: none;
}
.adm-overline { color: #94a0b0; font-size: 11px; font-weight: 500; }
.adm-overline span { color: #cbd4de; }
.adm-top-left strong { font-size: 16px; font-weight: 600; letter-spacing: -.45px; color: #1c3655; }
.adm-search-wrap { background: #f8fafc; border-color: #e5ebf2; border-radius: 12px; height: 41px; }
.adm-search-wrap:focus-within { background: #fff; border-color: #9cbdd7; box-shadow: 0 0 0 3px #4381b014; }
.adm-search-wrap input { font-size: 12px; }
.adm-toplink { font-weight: 600; color: #526c85; }
.adm-toplink:hover { color: #285d91; }
.adm-top-user { background: #f2f8f5; color: #5a7a69; border: 1px solid #e4f0e8; }
.adm-online-dot { background: #3fae81; }
.adm-main { max-width: 1540px; padding-top: 38px; }
.adm-footer { background: transparent; border-color: #e7edf4; color: #95a1b0; font-size: 11px; }
.adm-page-heading { margin-bottom: 25px; align-items: center; }
.adm-page-heading h1 { color: #182f4b; font-size: clamp(26px, 2.7vw, 34px); font-weight: 650; letter-spacing: -1.05px; margin: 7px 0 9px; line-height: 1.28; }
.adm-page-heading p { color: #7a899b; font-size: 13px; line-height: 1.7; }
.adm-kicker { color: #c45c67; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.adm-section-caption span { color: #657c93; font-weight: 700; font-size: 10px; letter-spacing: 1.2px; }
.adm-section-caption small { color: #9aa6b4; }

/* Cards e indicadores: hierarquia pela informação, não por excesso de cor. */
.adm-panel, .adm-stat {
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 16px;
    box-shadow: var(--adm-shadow);
}
.adm-panel-heading { padding: 22px 25px 19px; }
.adm-panel-heading h2 { font-size: 15px; font-weight: 650; letter-spacing: -.35px; color: #263f59; }
.adm-panel-heading p { font-size: 12px; }
.adm-panel-heading a { color: #2c6598; font-weight: 650; }
.adm-stats { gap: 15px; }
.adm-stat { min-height: 163px; padding: 22px 23px; transition: border-color .16s, box-shadow .16s, transform .16s; }
.adm-stat:hover { border-color: #d6e2ed; transform: translateY(-2px); box-shadow: 0 14px 32px #1d467311; }
.adm-stat::before { display: none; }
.adm-stat-icon { height: 42px; width: 42px; border-radius: 13px; font-size: 20px; color: #376e9f; background: #eaf3fb; }
.adm-stat:nth-child(2) .adm-stat-icon { background: #f8edf0; color: #bf6879; }
.adm-stat:nth-child(3) .adm-stat-icon { background: #eef3ed; color: #6b9470; }
.adm-stat:nth-child(4) .adm-stat-icon { background: #f7f1e9; color: #a4865a; }
.adm-stat-value { font-size: clamp(26px, 2.1vw, 32px); font-weight: 650; margin-top: 15px; color: #193d62; letter-spacing: -.8px; }
.adm-stat-label { font-size: 12px; font-weight: 550; color: #7c8b9c; margin-top: 6px; }
.adm-stat-arrow { color: #b1bfce; font-size: 14px; }
.adm-quick-grid { gap: 12px; padding: 21px 23px 24px; }
.adm-quick { border-color: #e9eef4; border-radius: 12px; padding: 17px 15px; transition: background .15s, border-color .15s, transform .15s; }
.adm-quick:hover { background: #f8fbfe; border-color: #d4e4f2; transform: translateY(-1px); }
.adm-quick-icon { color: #49769d; }
.adm-quick strong { color: #2e4760; font-size: 12px; font-weight: 700; }
.adm-quick small { color: #8698a8; font-size: 11px; }
.adm-quick-arrow { color: #a9bac9; }
.adm-recent-row strong { font-size: 12px; color: #344c65; font-weight: 650; }
.adm-recent-row small { color: #92a0af; font-size: 11px; }
.adm-recent-avatar { background: #eff3fa; color: #456d92; }
.adm-note { background: #f1f6fc; border-color: #e1eaf5; color: #466581; border-radius: 13px; }
.adm-note p { font-size: 12px; }

/* Formulários: leitura, foco, área de ação e mudanças pendentes. */
.adm-button { border-radius: 11px; min-height: 44px; font-size: 12px; font-weight: 650; letter-spacing: 0; padding: 11px 17px; }
.adm-button-primary { background: #1d517d; border-color: #1d517d; color: white; box-shadow: 0 5px 12px #1b4e7e14; }
.adm-button-primary:hover { background: #143e65; border-color: #143e65; box-shadow: 0 8px 20px #1b4e7e1a; }
.adm-button-outline { color: #416180; background: #fff; border-color: #dfe8f1; }
.adm-button-outline:hover { color: #1f527e; border-color: #bed2e4; background: #f8fbff; }
.adm-button-danger { background: #fff7f7; color: #bc5362; }
.adm-grid-form { gap: 24px 25px; padding: 27px 28px; }
.adm-field label:not(.adm-switch) { font-size: 12px; font-weight: 650; color: #3c536e; }
.adm-field input:not([type=checkbox]), .adm-field select, .adm-field textarea {
    min-height: 46px; background: #fff; border: 1px solid #dfe7ef;
    border-radius: 11px; color: #263f58; font-size: 13px; line-height: 1.5;
    box-shadow: 0 1px 1px #263f5805;
}
.adm-field input:not([type=checkbox]):focus, .adm-field select:focus, .adm-field textarea:focus { border-color: #8fb5d5; box-shadow: 0 0 0 3px #699bc71c; outline: 0; }
.adm-field input:disabled, .adm-field textarea:disabled, .adm-field select:disabled { background: #f5f7fa; color: #8794a4; }
.adm-field textarea { min-height: 135px; }
.adm-help { color: #8c9aab; font-size: 11px; }
.adm-switch { border: 1px solid #e9edf3; background: #fafbfd; border-radius: 11px; padding: 12px 14px; font-size: 12px; line-height: 1.5; }
.adm-switch:has(input:checked) { background: #f1f7fc; border-color: #d7e6f2; color: #2f587c; }
.adm-switch input { accent-color: #286397; }
.adm-form-actions { gap: 10px; align-items: center; padding-top: 21px; margin-top: 5px; }
.adm-unsaved-hint { display: none; margin-left: auto; color: #a66d35; background: #fff8ef; border: 1px solid #f0e2d0; border-radius: 8px; padding: 8px 10px; font-size: 11px; font-weight: 600; }
.adm-unsaved-hint.is-dirty { display: inline-flex; }
.adm-danger-section { background: #fff; border-color: #f2e4e7; }
.adm-publication-guidance { background: #f4f8fc; border-color: #e0ebf4; border-radius: 15px; }
.adm-publication-guidance-head strong { font-family: var(--adm-font-display); font-weight: 600; }
.adm-publication-guidance p { font-size: 12px; }
.adm-alert { border-radius: 12px; font-size: 12px; }

/* Tabelas: informação em primeiro plano, cabeçalho com leitura fácil. */
.adm-table-toolbar { padding: 23px 25px; }
.adm-table-toolbar h2 { font-family: var(--adm-font-display); font-weight: 600; color: #2b4059; font-size: 15px; }
.adm-table-toolbar p { font-size: 12px; color: #8c9bad; }
.adm-search input { border-radius: 10px; min-height: 43px; font-size: 12px; }
.adm-table { font-size: 12px; }
.adm-table th { background: #fafbfd; color: #8393a7; font-size: 10px; font-weight: 750; text-transform: none; letter-spacing: .4px; padding: 15px 18px; }
.adm-table td { color: #42566e; padding: 18px; border-color: #edf1f5; font-size: 12px; }
.adm-table tbody tr:hover { background: #f9fbfe; }
.adm-table td strong { color: #273f59; font-weight: 650; }
.adm-row-link { color: #2b699c; font-weight: 650; }
.adm-row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.adm-pill { font-size: 10px; font-weight: 650; letter-spacing: .05px; padding: 6px 10px; }
.adm-pill-ok { color: #287f64; background: #eaf7f1; }
.adm-pill-off { color: #a8787e; background: #f8eef0; }
.adm-pill-neutral { color: #5a7899; background: #edf3f9; }
.adm-pagination { color: #8b99aa; }

/* Login e desafios 2FA: luminosidade e foco na tarefa. */
.adm-auth-body { background: #fff; }
.adm-auth-shell { grid-template-columns: minmax(370px, 43%) minmax(0, 1fr); }
.adm-auth-visual {
    color: #233f5e;
    background-color: #eaf2fb;
    background-image: linear-gradient(180deg, rgba(238,246,253,.95) 0%, rgba(237,245,252,.88) 45%, rgba(237,245,252,.6) 100%), url('../images/instituto/fundo-quem-somos-v1815.webp');
    background-size: cover;
    background-position: center, center bottom;
    border-right: 1px solid #e3ebf4;
}
.adm-auth-visual::before { border-color: #8cabca26; box-shadow: 0 0 0 75px #6f9dc508, 0 0 0 150px #6f9dc505; }
.adm-auth-visual::after { background: linear-gradient(0deg, #f5f9fd75, transparent); }
.adm-auth-visual-inner { padding: clamp(34px, 4.3vw, 64px) clamp(32px, 5.2vw, 82px); }
.adm-auth-institution { display: inline-flex; align-items: flex-start; flex-direction: column; gap: 9px; }
.adm-auth-institution img { display: block; width: clamp(195px, 17vw, 245px); height: auto; max-height: 76px; object-fit: contain; object-position: left center; }
.adm-auth-institution span { padding-left: 2px; font-size: 12px; color: #66839e; font-weight: 550; }
.adm-auth-visual-copy { max-width: 450px; padding-top: 75px; padding-bottom: 75px; }
.adm-auth-visual-kicker { color: #be5d70; font-size: 11px; font-weight: 750; margin-bottom: 20px; }
.adm-auth-visual-copy h2 { color: #1b3959; font-weight: 650; font-size: clamp(32px, 3.1vw, 48px); letter-spacing: -1.6px; line-height: 1.22; margin-bottom: 20px; }
.adm-auth-visual-copy p { color: #637e98; font-size: 14px; line-height: 1.85; }
.adm-auth-visual-foot { color: #5c7895; font-size: 12px; opacity: 1; }
.adm-auth-visual-foot .adm-icon { color: #537ea5; }
.adm-auth-content { background: #fff; }
.adm-auth-wrap { width: min(100%, 475px); }
.adm-auth-wrap:has(.adm-auth-card-wide) { width: min(100%, 630px); }
.adm-auth-card h1 { font-family: var(--adm-font-display); font-size: clamp(30px, 2.9vw, 38px); font-weight: 650; letter-spacing: -1.15px; color: #1c3654; margin: 13px 0; }
.adm-auth-card > p { color: #7b899b; font-size: 13px; line-height: 1.8; margin-bottom: 27px; }
.adm-auth-card .adm-kicker { color: #c05b6b; }
.adm-auth-form > label:not(.adm-remember-option) { color: #3b536e; font-weight: 650; font-size: 12px; }
.adm-auth-form input { min-height: 49px !important; border-radius: 11px !important; border-color: #dfe8f1 !important; }
.adm-auth-form input:focus { border-color: #91b5d5 !important; }
.adm-remember-option { background: #f7fafc; border-color: #e6edf4; border-radius: 12px; padding: 15px; }
.adm-remember-option strong { color: #35526e; font-weight: 650; }
.adm-remember-option small { font-size: 11px; }
.adm-login-submit { min-height: 51px !important; font-size: 13px !important; }
.adm-auth-bottom { border-color: #edf1f5; }
.adm-auth-bottom a { color: #326e9d; }
.adm-auth-copyright { color: #9ba7b6; }
.adm-clock-check { background: #f6f9fd; border-color: #e1ebf5; }
.adm-clock-warning { background: #fff7f7; border-color: #f1d4d9; }

/* Responsividade com áreas de toque adequadas e menus controláveis. */
@media(max-width:1280px) {
    .adm-sidebar { width: 252px; min-width: 252px; }
    .adm-main { padding-top: 32px; }
    .adm-auth-visual-inner { padding: 38px; }
}
@media(max-width:1060px) {
    .adm-auth-shell { grid-template-columns: 35% minmax(0, 1fr); }
    .adm-auth-visual-copy h2 { font-size: 32px; }
    .adm-auth-institution img { width: 190px; }
}
@media(max-width:790px) {
    .adm-sidebar { width: min(320px, 89vw); min-width: 0; box-shadow: 12px 0 40px #18365124; }
    .adm-menu-overlay { background: rgba(23, 44, 66, .32); }
    .adm-mobile-close { background: #f0f4f8; color: #416681; border: 1px solid #e1eaf2; }
    .adm-topbar { height: 70px; min-height: 70px; background: #fffffffa; }
    .adm-top-left strong { font-size: 14px; }
    .adm-mobile-toggle { border-radius: 10px; }
    .adm-main { padding-top: 25px; }
    .adm-auth-shell { display: block; }
    .adm-auth-content { background: #f8fafc; }
    .adm-auth-card { background: #fff; border: 1px solid #edf0f5; border-radius: 19px; box-shadow: 0 14px 40px #294c7010; padding: 27px; }
    .adm-auth-brand { display: flex; }
    .adm-auth-visual { display: none; }
    .adm-auth-card h1 { font-size: 30px; }
    .adm-grid-form { grid-template-columns: 1fr; padding: 21px; }
    .adm-unsaved-hint { margin-left: 0; }
}
@media(max-width:540px) {
    .adm-stats { gap: 11px; }
    .adm-stat { min-height: 143px; padding: 17px; }
    .adm-stat-value { font-size: 26px; }
    .adm-panel-heading { padding: 20px; }
    .adm-table-toolbar { padding: 20px; }
    .adm-page-heading h1 { font-size: 27px; }
    .adm-auth-content { padding: 32px 15px 68px; }
    .adm-auth-card { padding: 22px 19px; }
    .adm-auth-bottom { margin-top: 23px; }
    .adm-quick-grid { grid-template-columns: 1fr; padding: 16px; }
}
@media(prefers-reduced-motion:reduce) {
    .adm-stat, .adm-quick, .adm-nav a { transform: none !important; transition: none !important; }
}

/* V1.8.47 · Upload integrado aos cadastros (sem URL digitada). */
.adm-file-control { display: grid; gap: 12px; border: 1px solid #dde7f0; border-radius: 15px; padding: 17px; background: #f8fbff; }
.adm-file-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.adm-file-picker input[type=file] { max-width: 100%; width: min(100%, 440px); border: 1px dashed #a7bbd1 !important; border-radius: 11px; padding: 11px !important; background: #fff !important; cursor: pointer; }
.adm-file-picker input[type=file]::file-selector-button { border: 0; border-radius: 7px; background: #184d88; color: #fff; font-weight: 650; padding: 10px 14px; margin-right: 12px; cursor: pointer; }
.adm-file-selection { font-size: 12px; color: #526b85; overflow-wrap: anywhere; }
.adm-current-media { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 11px; background: #fff; border: 1px solid #e0e8f1; }
.adm-current-media img { width: 98px; height: 66px; border-radius: 7px; object-fit: cover; background: #e6eff5; }
.adm-current-media > span { font-size: 25px; }
.adm-current-media > div { display: grid; gap: 4px; min-width: 0; }
.adm-current-media strong { font-size: 12px; color: #243f5c; }
.adm-current-media a { font-size: 12px; text-decoration: underline; color: #155892; }
.adm-file-remove { display: inline-flex; align-items: center; gap: 8px; font-size: 12px !important; font-weight: 600; color: #a73449 !important; cursor: pointer; }
.adm-file-remove input[type=checkbox] { width: 16px; height: 16px; accent-color: #b63449; }
.adm-file-metadata { padding: 12px 14px; background: #f4f7fa; border: 1px solid #e2eaf2; border-radius: 9px; color: #54718a; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 680px) { .adm-file-control { padding: 12px; } .adm-file-picker { display: grid; } }
