/* ==========================================================================
   Shepherd ChMS — Aero theme
   Loaded after assets/aero/css/bootstrap.min.css + style.min.css (the Aero
   Bootstrap 4 admin template). The app's own class names are kept, so page
   markup and scripts are unchanged; this file gives them the Aero look and
   undoes the few Bootstrap rules that clash with them.
   Colours come from --pine (primary) and --brass (accent), which the
   Developer Console's branding colours override.
   ========================================================================== */
:root {
  --paper: #F5F5F5;
  --paper-raised: #FFFFFF;
  --ink: #292A33;
  --ink-soft: #77797F;
  --pine: #E47297;
  --pine-dark: #B25976;
  --pine-light: #FCEEF3;
  --brass: #FF9948;
  --brass-light: #FFEDDE;
  --brick: #EE2558;
  --brick-light: #FDE7ED;
  --green: #04BE5B;
  --line: #E8E8E8;
  --radius: .55rem;
  --shadow: 0 0 16px rgba(41,42,51,0.06), 0 6px 20px rgba(41,42,51,0.02);
  --shadow-pop: 0 10px 50px 0 rgba(41,42,51,0.2);
  --font-display: 'Comfortaa', 'Segoe UI', sans-serif;
  --font-sans: 'Comfortaa', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #222; font-family: var(--font-sans); font-size: 14px; }
.font-display { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--font-display); font-weight: 700; margin: 0; color: #222; }
h1 { font-size: 24px; line-height: 1.3; }
h2 { font-size: 18px; line-height: 1.35; }
/* Aero gives h3–h5 very large sizes and margins; bring them back to UI scale. */
h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
h4 { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
h5 { font-size: 13px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
p { line-height: 1.6; }
small { font-size: 85%; }
img { border-radius: 0; }
::selection { background: var(--pine-light); }

/* --------------------------------------------------------------------------
   Aero shell (sidebar, right icon bar, block header) in brand colours
   -------------------------------------------------------------------------- */
.aero-shell section.content { min-height: calc(100vh - 40px); background: var(--paper); }
.aero-shell .container-fluid { padding-bottom: 24px; }
.app-main { max-width: 1240px; margin: 0 auto; }

.sidebar { background: #fff; display: flex; flex-direction: column; z-index: 1000; }
.sidebar .navbar-brand { flex-shrink: 0; }
.sidebar .navbar-brand .brand-link { display: flex; align-items: center; color: #444; min-width: 0; }
.sidebar .navbar-brand .brand-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.sidebar .navbar-brand .brand-logo { height: 30px; max-width: 120px; padding: 0; background: none; border-radius: 0; }
.sidebar .menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 20px; scrollbar-width: thin; }
.sidebar .menu .list { padding: 0; }
.sidebar .menu .list a { display: flex; align-items: center; }
.sidebar .menu .list a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .menu .list a:hover { color: var(--pine); }
.sidebar .menu .list li.active > :first-child i,
.sidebar .menu .list li.active > :first-child span { color: var(--pine); }
.sidebar .menu .list .ml-menu { padding: 0; margin: 0; }
.sidebar .menu .list .ml-menu li a { display: block; padding-right: 50px; }
.sidebar .menu .list .ml-menu li.active a { color: var(--pine); font-weight: 700; }
.sidebar .menu .list .ml-menu li.active a:before { color: var(--pine); }
.sidebar .menu .list a small.soon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #aaa; background: #f4f4f4; border-radius: 3px; padding: 1px 5px; }
.sidebar .user-info { padding: 14px 0; gap: 12px; }
.sidebar .user-info .image { flex-shrink: 0; }
.sidebar .user-info .detail { min-width: 0; }
.sidebar .user-info .detail h4 { font-size: 15px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; }
.sidebar .user-info .detail small { color: var(--ink-soft); }
.sidebar .user-info .image img, .avatar-initial { width: 50px; height: 50px; object-fit: cover; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 5px 5px 0 rgba(41,42,51,0.2); background: var(--pine); color: #fff; font-weight: 700; font-size: 20px; }
.ls-toggle-menu .sidebar .user-info { padding: 8px 0; justify-content: center; }
.ls-toggle-menu .sidebar .user-info .image { padding: 0 !important; }
.ls-toggle-menu .sidebar .avatar-initial, .ls-toggle-menu .sidebar .user-info .image img { width: 34px; height: 34px; font-size: 14px; border-width: 2px; }
.ls-toggle-menu .sidebar .menu { overflow: visible; }
.ls-toggle-menu .sidebar .menu .list a { justify-content: center; }
.ls-toggle-menu .sidebar .menu .list a i { margin: 0; }
.ls-toggle-menu .sidebar .navbar-brand { justify-content: center; }

.navbar-right .navbar-nav { top: 10px; padding: 0; list-style: none; }
.navbar-right .navbar-nav > li > a { display: block; }
.navbar-right .navbar-nav > li > a:hover { background: var(--pine); color: #fff; }
.navbar-right .navbar-nav > li > a.mega-menu:hover { background: var(--brick); }

.block-header { padding: 14px 15px 10px; }
.block-header h2 { font-size: 20px; }
.block-header h2 small { font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 6px; }
.block-header .breadcrumb { padding: 8px 0 0; margin: 0; background: transparent; }
.block-header .breadcrumb-item, .block-header .breadcrumb-item a { color: var(--ink-soft); }
.block-header .breadcrumb-item a:hover { color: var(--pine); }
.block-header .breadcrumb-item.active { color: #444; }
.block-header .mobile_menu { z-index: 1001; }
.block-header .row { position: relative; }
.aero-shell .btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.aero-shell .btn-icon i { font-size: 16px; }
@media (min-width: 768px) { .block-header .mobile_menu { display: none; } }
@media (max-width: 767px) { .block-header h2 { padding-right: 50px; } }

/* Mini sidebar flyouts sit above page content */
.ls-toggle-menu .sidebar .menu .list .ml-menu { z-index: 1001; }

/* Module search overlay */
#search { background-color: rgba(41,42,51,0.92); }
#search form { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: min(640px, 92vw); }
#search input[type="search"] { position: static; margin: 0; padding: 10px 0; font-size: 34px; text-align: left; border-bottom: 2px solid rgba(255,255,255,0.35) !important; border-radius: 0; font-family: var(--font-sans); }
#search input[type="search"]:focus { border-bottom-color: var(--pine) !important; box-shadow: none; }
#search .close { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--pine); border: 0; color: #fff; }
.search-results { list-style: none; padding: 0; margin: 18px 0 0; }
.search-results a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 6px; color: rgba(255,255,255,0.8); font-size: 16px; }
.search-results a small { color: rgba(255,255,255,0.45); font-size: 12px; }
.search-results a:hover, .search-results a.picked { background: rgba(255,255,255,0.1); color: #fff; }
.search-results a.picked { box-shadow: inset 3px 0 0 var(--pine); }

/* --------------------------------------------------------------------------
   Cards & stats
   -------------------------------------------------------------------------- */
/* Bootstrap makes .card a flex column (which stretches buttons) and Aero makes
   it transparent with a 30px gap; app cards hold their content directly. */
.card { display: block; background: var(--paper-raised); border: 0; border-radius: var(--radius); padding: 20px; margin-bottom: 0; box-shadow: none; min-width: 0; }
/* Section titles inside cards get the Aero card-header treatment. */
.card h2:not([style*="font-size"]):not(.font-display) { font-size: 14px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .3px; position: relative; padding-left: 12px; }
.card h2:not([style*="font-size"]):not(.font-display)::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--pine); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { position: relative; overflow: hidden; background: var(--paper-raised); border: 0; border-radius: var(--radius); padding: 18px 18px 20px; }
.stat-card::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 3px; border-radius: 3px; background: var(--pine); opacity: .85; }
.stat-card.accent-brass::after { background: var(--brass); }
.stat-card .label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-soft); margin: 0; padding: 0; background: none; }
.stat-card .value { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 6px 0 4px; color: #222; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2, .grid-2-even, .stat-grid { grid-template-columns: 1fr; } }

.quick-action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; margin-bottom: 8px; cursor: pointer; text-align: left; transition: all .2s; }
.quick-action:hover { border-color: var(--pine); background: var(--pine-light); color: var(--pine-dark); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
label { display: block; font-size: 13px; font-weight: 700; color: #444; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #E3E3E3; border-radius: .25rem;
  font-family: var(--font-sans); font-size: 14px; background: #fff; color: #222; transition: border-color .2s, box-shadow .2s;
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--pine); }
input[type="color"] { padding: 2px; height: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-light); }
input:disabled, select:disabled, textarea:disabled { background: #f7f7f7; color: #888; }
.field { margin-bottom: 14px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
.field select:not([multiple]), .toolbar input:not([type="checkbox"]):not([type="radio"]), .toolbar select:not([multiple]) { height: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Buttons — Aero shape (rounded .2875rem, 8px 18px), brand colours */
.btn { margin: 0; background-color: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: .2875rem; border: 1px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.45; cursor: pointer; font-family: var(--font-sans); transition: all .2s; white-space: nowrap; }
.btn:hover { box-shadow: 0 3px 8px 0 rgba(41,42,51,0.17); }
.btn:focus { box-shadow: 0 0 0 3px var(--pine-light); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--pine-dark); border-color: var(--pine-dark); color: #fff; }
.btn-primary:disabled, .btn-primary.disabled { background: var(--pine); border-color: var(--pine); opacity: 0.6; cursor: default; box-shadow: none; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: #444; }
.btn-outline:hover:not(:disabled) { border-color: var(--pine); color: var(--pine); background: #fff; }
.btn-outline:disabled, .btn-outline[disabled], .btn-outline.disabled,
.btn-outline:disabled:hover, .btn-outline[disabled]:hover { background-color: #fff; border-color: var(--line); color: #444; opacity: 0.45; box-shadow: none; cursor: default; }
.btn-outline.active { background: var(--pine-light); border-color: var(--pine); color: var(--pine-dark); }
.btn-primary:disabled:hover, .btn-primary[disabled]:hover { background-color: var(--pine); border-color: var(--pine); }
button:focus { outline: none; }

.alert-error { background: var(--brick-light); color: var(--brick); padding: 10px 14px; border-radius: .25rem; font-size: 13px; margin-top: 10px; border-left: 3px solid var(--brick); }

/* --------------------------------------------------------------------------
   Tables — Aero style
   -------------------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: transparent; }
th { text-align: left; font-weight: 700; color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; padding: 12px 16px; border-bottom: 2px solid #eee; white-space: nowrap; }
td { padding: 12px 16px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
thead + tbody tr:first-child td { border-top: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fafafa; }
/* Phones: wide tables scroll inside their card instead of widening the page. */
@media (max-width: 767px) {
  .app-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .aero-shell section.content { overflow-x: hidden; }
}

.badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .2px; }
.badge-visitor { background: #eee; color: #666; }
.badge-new_convert { background: var(--brass-light); color: #c06a1f; }
.badge-member, .badge-disciple, .badge-worker { background: var(--pine-light); color: var(--pine-dark); }
.badge-leader { background: var(--ink); color: #fff; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-filters { display: flex; gap: 10px; align-items: center; }
@media (max-width: 700px) { .toolbar, .toolbar-filters { flex-wrap: wrap; } .toolbar-filters > * { flex: 1 1 160px; } .search-input { width: 100%; } }
.search-input { width: 260px; max-width: 100%; }

.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--ink-soft); border-radius: 0; padding: 0; }
.pagination .controls { display: flex; gap: 8px; align-items: center; }

/* Drawer (modal panel) */
.drawer-overlay { position: fixed; inset: 0; background: rgba(41,42,51,0.5); z-index: 1050; display: flex; justify-content: flex-end; }
.drawer { width: 100%; max-width: 440px; background: var(--paper-raised); height: 100%; overflow-y: auto; padding: 24px; box-shadow: var(--shadow-pop); border-radius: 10px 0 0 10px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.drawer-close { background: #f4f4f4; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.drawer-close:hover { background: var(--brick-light); color: var(--brick); }

/* Journey history */
.history-item { border-left: 2px solid var(--pine); padding-left: 12px; margin-bottom: 14px; font-size: 14px; }
.history-item .muted { color: var(--ink-soft); font-size: 12px; }

/* Login page — Aero sign-in layout */
.login-page { background: #fff; }
.login-page .authentication { min-height: 100vh; }
.login-page .auth_form { padding: 0; margin: 20px 0; }
.login-page .auth_form .header { padding: 28px 20px 6px; }
.login-page .auth_form .logo { width: 64px; }
.login-page .auth_form .brand-logo { height: 56px; max-width: 180px; background: none; padding: 0; }
.login-page .auth_form h5 { font-weight: 700; font-size: 18px; margin-top: 12px; }
.login-page .auth-sub { color: var(--ink-soft); font-size: 13px; margin: 4px 0 0; }
.login-page .auth_form .body { padding: 20px; }
.login-page .form-control { height: 42px; border-color: #E3E3E3; background: #fff; }
.login-page .form-control:focus { box-shadow: none; border-color: var(--pine); }
.login-page .input-group-text { background: #fff; border-color: #E3E3E3; color: var(--ink-soft); }
.login-page .input-group:focus-within .input-group-text { border-color: var(--pine); color: var(--pine); }
.login-page .btn-block { width: 100%; padding: 10px; letter-spacing: .5px; margin-top: 6px; }
.login-page .alert-error { margin: 0 0 12px; }
.demo-note { font-size: 12px; color: var(--ink-soft); margin: 14px 0 0; text-align: center; }
.login-page .copyright { color: var(--ink-soft); font-size: 13px; }
.auth-art { text-align: center; padding: 20px 20px 20px 40px; }
.auth-art img { max-width: 100%; max-height: 70vh; }
.auth-art .tagline { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #444; margin: 18px auto 0; max-width: 460px; }

/* Coming soon */
.coming-soon { background: var(--paper-raised); border: 0; border-radius: 10px; padding: 48px; text-align: center; max-width: 480px; margin: 48px auto 0; }
.coming-soon .icon-badge { width: 48px; height: 48px; border-radius: 999px; background: var(--brass-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 22px; }
.coming-soon p { color: var(--ink-soft); font-size: 14px; }

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--pine-light); display: inline-block; vertical-align: middle; }
.avatar-lg { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; background: var(--pine-light); }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--pine-dark); font-weight: 600; font-family: var(--font-display); }
.avatar-upload-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-upload-wrap input[type="file"] { display: none; }

/* Portal layout */
.portal-shell { min-height: 100vh; }
.portal-topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; background: var(--ink); color: #fff; }
.portal-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.portal-nav { display: flex; gap: 4px; }
.portal-nav button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 14px; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-family: var(--font-sans); }
.portal-nav button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.portal-nav button.active { background: rgba(255,255,255,0.14); color: #fff; }
.portal-content { padding: 28px 24px; max-width: 720px; margin: 0 auto; }
.portal-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.portal-logout { color: rgba(255,255,255,0.7); font-size: 13px; }
.portal-logout:hover { color: #fff; }

/* Attendance */
.mode-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.mode-toggle button { flex: 1; padding: 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-raised); font-size: 13px; cursor: pointer; }
.mode-toggle button.active { background: var(--pine); color: #fff; border-color: var(--pine); }
.headcount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-picker-results { border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; max-height: 180px; overflow-y: auto; }
.member-picker-chip { background: var(--pine-light); color: var(--pine-dark); padding: 4px 10px; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; }

/* Journey Kanban */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-column { flex: 0 0 240px; background: var(--paper-raised); border: 0; border-radius: 10px; display: flex; flex-direction: column; max-height: 75vh; }
.kanban-column-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kanban-column-head .count { color: var(--ink-soft); font-size: 12px; }
.kanban-cards { padding: 10px; overflow-y: auto; flex: 1; }
.kanban-card { background: #fff; border: 1px solid #eee; border-radius: 6px; box-shadow: 0 2px 6px rgba(41,42,51,0.05); padding: 10px; margin-bottom: 8px; font-size: 13px; }
.kanban-card a { font-weight: 500; }
.kanban-card .meta { color: var(--ink-soft); font-size: 11px; margin: 2px 0 8px; }
.kanban-card select { font-size: 12px; padding: 5px 6px; }

/* Print support (Reports & Analytics, and any other page needing to print
   just its content area, not the app chrome around it) */
.print-only { display: none; }
@media print {
  .sidebar, .navbar-right, .block-header, .overlay, #search, .toolbar, .no-print { display: none !important; }
  section.content { margin: 0 !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; background: #fff !important; }
  .print-only { display: block !important; }
  body { background: #fff !important; }
  .card { border: none !important; box-shadow: none !important; }
}

/* Communication Center tabs + channel chips */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { background: #fff; border: 1px solid transparent; border-radius: 30px; padding: 7px 16px; font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer; font-family: var(--font-sans); transition: all .2s; }
.tab:hover { color: var(--pine); }
.tab.active { color: var(--pine); border-color: var(--pine); }
.tab .count { background: var(--pine-light); color: var(--pine-dark); border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 6px; }
.check-row { display: flex; gap: 16px; flex-wrap: wrap; }
.check-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; cursor: pointer; }
.check-row input { width: auto; }
.chan-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); margin-right: 4px; }
.badge-completed, .badge-active, .badge-sent { background: var(--pine-light); color: var(--pine-dark); }
.badge-sending, .badge-queued, .badge-pending { background: var(--brass-light); color: var(--brass); }
.badge-failed { background: var(--brick-light); color: var(--brick); }
.badge-paused { background: var(--line); color: var(--ink-soft); }
.row-click { cursor: pointer; }
.sched-box { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; }
.filter-bar > input, .filter-bar > select { width: auto; flex: 1 1 150px; min-width: 0; }
.filter-bar > input.search-input { flex: 2 1 220px; width: auto; }

/* Custom logo (Developer Console) — shown on a white badge so any logo is readable on dark backgrounds */
.brand-logo { height: 34px; max-width: 150px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px 7px; }
.login-hero .brand .brand-logo { height: 44px; max-width: 200px; margin-right: 6px; }
.portal-brand .brand-logo { height: 28px; padding: 2px 6px; vertical-align: middle; }

.alert-success { background: #E2F8EC; color: #037a3b; border-left: 3px solid var(--green); padding: 10px 14px; border-radius: .25rem; font-size: 13px; margin-top: 10px; }

/* Single-branch edition: every record belongs to the one church, so the
   Super Admin "Branch" pickers are hidden. The selects still load and
   submit the (only) branch automatically. */
#branchField, #oBranchField, #cBranchField, #autoBranch, #linkBranchSelect { display: none !important; }

/* Bootstrap's .col (evangelism chart bars) carries grid padding and flex-grow */
.bars .col { padding: 0; flex: 0 0 auto; }
