/**Overwrite site.css from Main Southeastern Website **/

/*
 * Southeastern green — SGA admin panels (high specificity; also in layout <style>).
 * Site/Bootstrap CSS can load after this file; html body + .sga-admin-shell wins most fights.
 */
:root {
    --sga-se-green: #1a5632;
    --sga-se-green-dark: #124028;
    --sga-se-green-border: #0d3320;
    /* Neutral borders for panels/cards (replaces green-tinted frames sitewide) */
    --sga-panel-border: #dee2e6;
}

html body .sga-admin-shell section.panel,
html body .sga-admin-shell section.panel.panel-success,
html body .sga-admin-shell .panel.panel-success {
    border-color: var(--sga-panel-border) !important;
}

html body .sga-admin-shell section.panel.panel-success > .panel-heading,
html body .sga-admin-shell section.panel.panel-success .panel-heading,
html body .sga-admin-shell .panel.panel-success > .panel-heading,
html body .sga-admin-shell .panel.panel-success .panel-heading {
    background: linear-gradient(135deg, var(--sga-se-green) 0%, var(--sga-se-green-dark) 100%) !important;
    background-color: var(--sga-se-green) !important;
    color: #ffffff !important;
    border-color: var(--sga-panel-border) !important;
    border-bottom-color: var(--sga-panel-border) !important;
}

html body .sga-admin-shell .panel.panel-success .panel-title {
    color: #ffffff !important;
}

/* WCAG 1.4.4 - Text Resizing Support */
/* Ensure all containers can handle text resizing up to 200% */
* {
    box-sizing: border-box; /* Ensure proper box model for responsive design */
}

body {
    /* Prefer auto so zoom/reflow content is not clipped (WCAG 1.4.10) */
    overflow-x: auto;
    word-wrap: break-word; /* Allow long words to wrap */
}

/* Ensure form elements scale properly with text resizing */
input, select, textarea, button {
    max-width: 100%; /* Prevent elements from exceeding container width */
    box-sizing: border-box;
}

/* Ensure tables are responsive */
table {
    width: 100%;
    table-layout: auto; /* Allow table to adjust to content */
    word-wrap: break-word;
}

/* Ensure images scale properly */
img {
    max-width: 100%;
    height: auto;
}

/* WCAG 2.1.1 - Keyboard Accessibility */
/* Ensure all interactive elements are keyboard accessible */
button, input, select, textarea, a[href] {
    /* Ensure elements can receive focus */
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Focus indicators — keyboard-oriented; avoid restyling all mouse clicks with glow */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #0056B3;
    outline-offset: 2px;
}

/* Touch target guidance: do not force all campus buttons to 44px (changes layout).
   Interactive controls in SGA flows already meet size via Bootstrap .btn-lg / padding. */

/* Skip link markup/styles come from the campus southeastern_tmpl (do not redefine
   .skip-link here — app overrides caused a visible duplicate / always-on link). */

/* WCAG 2.1.2 - No Keyboard Trap */
/* Ensure tabindex="-1" elements don't create traps */
[tabindex="-1"]:focus {
    outline: 2px solid #0056B3;
    outline-offset: 2px;
}

/* Ensure users can always navigate away from components */
*:focus {
    /* Allow normal focus behavior */
}

/* Prevent focus traps in forms */
form:focus-within {
    /* Ensure form focus doesn't trap users */
}

/* Disabled controls: keep native disabled behavior (do not force pointer-events overrides) */

/* Ensure alert dialogs don't create keyboard traps */
.alert {
    /* Alerts should be dismissible */
}

input[type="text"],
input[type="password"],
input[type="email"],
#contribute_content select,
#contribute_content textarea {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    font-size: 1.1em;
}

input[type="text"],
input[type="password"],
input[type="email"],
#contribute_content select {
    min-height: 40px; /* Changed from fixed height to min-height for better text resizing */
    height: auto; /* Allow height to grow with text size */
}

ul {
    /*Added to overwrite the default disc-type in firefox*/
    list-style: none;
}

#contribute_content {
    font-family: 'RobotoLight', Arial, sans-serif;
    /* Campus site.css sets html ~10px (62.5%); use px so body text matches prior look */
    font-size: 16px;
    margin: 30px 0 0;
}

#contribute_content .navbar-inner,
#contribute_content .navbar-inner .container-fluid,
#contribute_content .navbar-collapse {
    padding-left: 0;
    padding-right: 0;
}

#contribute_content .container-fluid>.navbar-header,
#contribute_content .container-fluid>.navbar-collapse {
    margin-left: 0;
    margin-right: 0;
}

.dropdown-menu li a:hover,
.nav>li>a:hover,
.nav>li>a:focus {
    text-decoration: underline;
}

#contribute_content .btn {
    margin-bottom: 0;
    margin-top: 0;
    text-transform: none;
}


/* General Styling */

.table th {
    font-size: 1.1em;
}

.section-divider {
    margin-top: 15px;
}

.line-break {
    margin-bottom: 10px;
}

.logout-section {
    margin-top: 40px;
    font-size: 16px;
}


/* General Form Styling */

.submit-btn {
    font-family: 'RobotoLight', Arial, sans-serif;
    background: none repeat scroll 0 0 #0056B3; /* Changed from #007CCE to darker blue for better contrast */
    border: none;
    box-shadow: none;
    color: #FFFFFF;
    line-height: 22px;
    text-shadow: none;
    transition: all 0.25s ease 0s;
    height: 40px;
    padding: 0 20px;
}

.submit-btn:hover {
    background-color: #004499; /* Changed from #228CD2 to darker blue for better contrast */
    outline: none;
    text-decoration: none;
    transition: 0.25s;
}

.form-label {
    font-size: 1.15em;
    color: #000000; /* Changed from #111111 to pure black for better contrast */
}

.inline-label {
    display: inline-block;
}

.description-box {
    max-width: 450px;
    max-height: 400px;
    overflow: auto;
    width: 100%;
}

.description {
    background-color: transparent;
    border: none;
    border-radius: 0;
    font-family: 'RobotoLight', Arial, sans-serif;
    font-size: 1em;
    padding: 0;
    word-break: normal;
    white-space: pre-wrap;
}


/* Login Form Styling */

.login-box {
    border: 1px solid #DDDDDD;
    margin: auto;
    max-width: 285px;
    width: 100%;
}

.login-box-content {
    background: #F7F7F7;
    color: #000000; /* Changed from #444444 to pure black for better contrast */
    padding: 20px 24px 5px 14px;
}

.login-box-content .form-label {
    font-weight: normal;
}

.login-box .submit-btn {
    font: 1.4em 'RobotoLight', Arial, sans-serif;
    padding: 0 6px;
    width: 100%;
}

.login-troubleshoot {
    padding-top: 10px;
    padding-right: 15px;
    font-size: 0.8em;
}

.login-troubleshoot-user {
    font-size: 0.9em;
}

.login-troubleshoot a {
    color: #0066CC; /* Changed from #439fe0 to darker blue for better contrast */
}

.logo-container {
    margin: 10px 0 20px;
    text-align: center;
}


/* Bubble Notification for Login Form */

.notification {
    color: #FFFFFF; /* Changed from #F7F7F7 to pure white for better contrast */
    border-radius: 8px;
    margin: 0 0 1em;
    padding: 12px;
    position: relative;
}

.notification:after {
    border-color: #B94A48 transparent;
    border-style: solid;
    border-width: 0 10px 15px;
    content: "";
    display: block;
    position: absolute;
    width: 0;
}

.notification.top {
    background-color: #8B0000; /* Changed from #B94A48 to darker red for better contrast */
}

.notification.top:after {
    border-color: #8B0000 transparent; /* Changed from #B94A48 to match new background color */
    border-width: 0 10px 15px;
    top: -15px;
}


/* Navigation Menu Styling */

.nav-tabs li.active>a,
.nav-tabs li.active>a:active,
.nav-tabs li.active>a:visited,
.app-menu .navbar-nav>li>a:hover {
    color: #FFFFFF;
    border: 1px solid transparent;
    background-color: #003366; /* Changed from #1460AA to darker blue for better contrast */
}

.nav-tabs li.active>a:hover {
    cursor: pointer;
}

.nav-tabs li>a:hover {
    cursor: pointer;
    text-decoration: none;
}


/* Border Styling */

.border-top {
    border-top: 1px solid #CCCCCC;
}

.border-bottom {
    border-bottom: 1px solid #CCCCCC;
}

.border-right {
    border-right: 1px solid #CCCCCC;
}


/* Scroll to Top Link Styling */

.scroll-top {
    background-color: #F7F7F8;
    border: 1px solid #BBBBBB;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    padding: 10px 12px;
    position: fixed;
    right: 40px;
    text-align: center;
    top: 500px;
    z-index: 1000;
}

.scroll-top:hover {
    background-color: #B8860B; /* Changed from #E9C225 to darker gold for better contrast */
}


/* Fix for media object image */

.media img {
    max-width: 120px;
    width: 100%;
    height: auto;
}

.dataTables_filter {
    float: right;
}

/* Responsive design for mobile and text resizing */
@media(max-width:768px) {
    .top1,
    #main_nav_bar,
    #footer_content_container {
        display: none;
    }
    .nav-item li {
        display: inline;
    }
    .nav-item {
        display: inline;
    }
    .nav-item a {
        display: inline;
    }
    .border-right {
        border: none;
    }
    .logout-section {
        margin: auto;
    }
}

/* Text resize / high-DPI: spacing only — do not restyle campus .btn sizes */


/* CSS Style for the print page */

@media print {
    @page {
        margin: 0.5cm;
    }
    body {
        margin: 0;
        padding: 0;
        font: 0.9em Georgia, "Times New Roman", Times, serif;
        line-height: 1.3;
    }
    h1,
    h2 {
        font-size: 1.2em;
    }
    h3,
    h4 {
        font-size: 1.1em;
        margin-bottom: 1em;
    }
    h5,
    h6 {
        font-size: 1em;
        margin-bottom: 1em;
    }
    table {
        border-collapse: collapse;
        border: 1px solid #000000;
    }
    th,
    td {
        border: 1px solid #000000;
    }
    #header_bar_backdrop,
    #logo,
    #main_nav_bar,
    #sticker,
    #footer_content_container,
    #footer_copyright_container {
        display: none;
    }
    .print-button,
    i.fa,
    .btn,
    .btn-default,
    .hide-print {
        display: none;
    }
    .info-box,
    .mail-info-box {
        border: none;
    }
    .row {
        width: 100%;
        *zoom: 1;
    }
    .row:before,
    .row:after {
        display: table;
        content: "";
        line-height: 0;
    }
    .row:after {
        clear: both;
    }
    .row [class*="col-md-"] {
        display: block;
        width: 100%;
        min-height: 30px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        float: left;
        margin-left: 2.564102564102564%;
        *margin-left: 2.5109110747408616%;
    }
    .row [class*="col-md-"]:first-child {
        margin-left: 0;
    }
    .row .col-md-12 {
        width: 100%;
        *width: 99.94680851063829%;
    }
    .row .col-md-11 {
        width: 91.43646408839778%;
        *width: 91.38327259903608%;
    }
    .row .col-md-10 {
        width: 82.87292817679558%;
        *width: 82.81973668743387%;
    }
    .row .col-md-9 {
        width: 74.30939226519337%;
        *width: 74.25620077583166%;
    }
    .row .col-md-8 {
        width: 65.74585635359117%;
        *width: 65.69266486422946%;
    }
    .row .col-md-7 {
        width: 57.18232044198895%;
        *width: 57.12912895262725%;
    }
    .row .col-md-6 {
        width: 48.61878453038674%;
        *width: 48.56559304102504%;
    }
    .row .col-md-5 {
        width: 40.05524861878453%;
        *width: 40.00205712942283%;
    }
    .row .col-md-4 {
        width: 31.491712707182323%;
        *width: 31.43852121782062%;
    }
    .row .col-md-3 {
        width: 22.92817679558011%;
        *width: 22.87498530621841%;
    }
    .row .col-md-2 {
        width: 14.3646408839779%;
        *width: 14.311449394616199%;
    }
    .row .col-md-1 {
        width: 5.801104972375691%;
        *width: 5.747913483013988%;
    }
    .row .col-md-offset-12 {
        margin-left: 105.52486187845304%;
        *margin-left: 105.41847889972962%;
    }
    .row .col-md-offset-12:first-child {
        margin-left: 102.76243093922652%;
        *margin-left: 102.6560479605031%;
    }
    .row .col-md-offset-11 {
        margin-left: 96.96132596685082%;
        *margin-left: 96.8549429881274%;
    }
    .row .col-md-offset-11:first-child {
        margin-left: 94.1988950276243%;
        *margin-left: 94.09251204890089%;
    }
    .row .col-md-offset-10 {
        margin-left: 88.39779005524862%;
        *margin-left: 88.2914070765252%;
    }
    .row .col-md-offset-10:first-child {
        margin-left: 85.6353591160221%;
        *margin-left: 85.52897613729868%;
    }
    .row .col-md-offset-9 {
        margin-left: 79.8342541436464%;
        *margin-left: 79.72787116492299%;
    }
    .row .col-md-offset-9:first-child {
        margin-left: 77.07182320441989%;
        *margin-left: 76.96544022569647%;
    }
    .row .col-md-offset-8 {
        margin-left: 71.2707182320442%;
        *margin-left: 71.16433525332079%;
    }
    .row .col-md-offset-8:first-child {
        margin-left: 68.50828729281768%;
        *margin-left: 68.40190431409427%;
    }
    .row .col-md-offset-7 {
        margin-left: 62.70718232044199%;
        *margin-left: 62.600799341718584%;
    }
    .row .col-md-offset-7:first-child {
        margin-left: 59.94475138121547%;
        *margin-left: 59.838368402492065%;
    }
    .row .col-md-offset-6 {
        margin-left: 54.14364640883978%;
        *margin-left: 54.037263430116376%;
    }
    .row .col-md-offset-6:first-child {
        margin-left: 51.38121546961326%;
        *margin-left: 51.27483249088986%;
    }
    .row .col-md-offset-5 {
        margin-left: 45.58011049723757%;
        *margin-left: 45.47372751851417%;
    }
    .row .col-md-offset-5:first-child {
        margin-left: 42.81767955801105%;
        *margin-left: 42.71129657928765%;
    }
    .row .col-md-offset-4 {
        margin-left: 37.01657458563536%;
        *margin-left: 36.91019160691196%;
    }
    .row .col-md-offset-4:first-child {
        margin-left: 34.25414364640884%;
        *margin-left: 34.14776066768544%;
    }
    .row .col-md-offset-3 {
        margin-left: 28.45303867403315%;
        *margin-left: 28.346655695309746%;
    }
    .row .col-md-offset-3:first-child {
        margin-left: 25.69060773480663%;
        *margin-left: 25.584224756083227%;
    }
    .row .col-md-offset-2 {
        margin-left: 19.88950276243094%;
        *margin-left: 19.783119783707537%;
    }
    .row .col-md-offset-2:first-child {
        margin-left: 17.12707182320442%;
        *margin-left: 17.02068884448102%;
    }
    .row .col-md-offset-1 {
        margin-left: 11.32596685082873%;
        *margin-left: 11.219583872105325%;
    }
    .row .col-md-offset-1:first-child {
        margin-left: 8.56353591160221%;
        *margin-left: 8.457152932878806%;
    }
}


/* --------------------------------------------------------------------------
   WCAG-only form focus (do not restyle buttons/panels sitewide — campus look)
   -------------------------------------------------------------------------- */
.form-control:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* Prefer darker muted text for AA contrast without changing campus chrome */
.text-muted {
    color: #495057;
}

@media (prefers-reduced-motion: reduce) {
    .spinner,
    .fa-pulse,
    .fa-spinner {
        animation: none !important;
    }
}

/* SGA election admin — full-width green secondary navbar (Bootstrap 3 grid above) */
.sga-admin-shell .sga-admin-page-title {
    margin-top: 0;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

/* Admin elections list — card grid (scoped + !important: main site CSS resets article/a.btn) */
html body .sga-admin-shell.container,
html body .container.sga-admin-shell {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

html body .sga-admin-shell .sga-admin-elections-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.5rem !important;
}

html body .sga-admin-shell .sga-admin-elections-toolbar .sga-admin-elections-toolbar__title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex: 1 1 auto;
    min-width: 0;
}

html body .sga-admin-shell a.btn-sga-add-election {
    display: inline-block !important;
    text-decoration: none !important;
    background: #fff !important;
    color: #1a5632 !important;
    border: 2px solid #1a5632 !important;
    font-weight: 600 !important;
    border-radius: 0.35rem !important;
    padding: 8px 14px !important;
}

html body .sga-admin-shell a.btn-sga-add-election:hover,
html body .sga-admin-shell a.btn-sga-add-election:focus {
    background: #e8f0ea !important;
    color: #0d3320 !important;
    border-color: #124028 !important;
}

html body .sga-admin-shell .sga-election-cards-panel {
    min-width: 0;
    max-width: 100%;
}

html body .sga-admin-shell .sga-election-cards-panel .panel-body {
    padding: 1.25rem 1.5rem !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

html body .sga-admin-shell .sga-election-cards-empty {
    margin: 0;
    white-space: nowrap;
}

html body .sga-admin-shell .sga-election-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

html body .sga-admin-shell .sga-election-cards-grid__cell {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

html body .sga-admin-shell .sga-election-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid var(--sga-panel-border) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
}

html body .sga-admin-shell .sga-election-card__header {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px !important;
    margin: 0 !important;
    background: linear-gradient(180deg, #e8f0ea 0%, #d4e8da 100%) !important;
    border-bottom: 1px solid var(--sga-panel-border) !important;
}

html body .sga-admin-shell .sga-election-card__title {
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #111111 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html body .sga-admin-shell a.btn-sga-card-update {
    display: inline-block !important;
    text-decoration: none !important;
    background: #fff !important;
    color: #1a5632 !important;
    border: 1px solid #1a5632 !important;
    font-weight: 600 !important;
    border-radius: 0.25rem !important;
    white-space: nowrap;
    padding: 6px 12px !important;
}

html body .sga-admin-shell a.btn-sga-card-update:hover,
html body .sga-admin-shell a.btn-sga-card-update:focus {
    background: #e8f0ea !important;
    color: #0d3320 !important;
    border-color: #124028 !important;
}

html body .sga-admin-shell .sga-election-card__body {
    flex: 1 1 auto;
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    background: #fff !important;
}

html body .sga-admin-shell .sga-election-card__desc {
    margin: 0 0 12px;
    line-height: 1.45;
}

html body .sga-admin-shell .sga-election-card__dates {
    margin: 0 0 8px;
    line-height: 1.4;
}

html body .sga-admin-shell .sga-election-card__dates:last-child {
    margin-bottom: 0;
}

html body .sga-admin-shell .sga-election-card__footer {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px !important;
    margin: 0 !important;
    border-top: 1px solid var(--sga-panel-border) !important;
    background: #f4f8f5 !important;
}

html body .sga-admin-shell a.btn-sga-card-secondary {
    display: inline-block !important;
    text-decoration: none !important;
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
    background: #fff !important;
    color: #1a5632 !important;
    border: 1px solid #1a5632 !important;
    border-radius: 0.25rem !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}

html body .sga-admin-shell a.btn-sga-card-secondary:hover,
html body .sga-admin-shell a.btn-sga-card-secondary:focus {
    background: #e8f0ea !important;
    color: #0d3320 !important;
    border-color: #124028 !important;
}

html body .sga-admin-shell a.btn-sga-card-primary {
    display: inline-block !important;
    text-decoration: none !important;
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
    background: linear-gradient(180deg, #1a5632 0%, #124028 100%) !important;
    color: #fff !important;
    border: 1px solid #0d3320 !important;
    border-radius: 0.25rem !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}

html body .sga-admin-shell a.btn-sga-card-primary:hover,
html body .sga-admin-shell a.btn-sga-card-primary:focus {
    background: linear-gradient(180deg, #124028 0%, #0d3320 100%) !important;
    color: #fff !important;
}

/* Past elections — #sga-admin-past-elections-table; px not rem (root 62.5% sites) */
html body .sga-admin-shell .sga-election-past-panel-body {
    padding: 1.25rem 1.5rem !important;
    font-size: 16px !important;
}

html body .sga-admin-shell #sga-admin-past-elections-table {
    font-size: 16px !important;
    line-height: 1.5;
    margin-bottom: 0;
}

html body .sga-admin-shell #sga-admin-past-elections-table th,
html body .sga-admin-shell #sga-admin-past-elections-table td {
    font-size: 16px !important;
}

html body .sga-admin-shell #sga-admin-past-elections-table > thead > tr > th {
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #124028;
    background: #e8f0ea;
    border-bottom: 2px solid var(--sga-panel-border);
}

html body .sga-admin-shell #sga-admin-past-elections-table > tbody > tr > td {
    padding: 12px 16px;
    vertical-align: middle;
}

html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-name {
    font-weight: 600;
}

html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-datetime {
    color: #444;
}

html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-actions {
    gap: 8px;
}

html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-actions a {
    display: inline-block;
    margin: 0;
    padding: 7px 14px;
    font-size: 16px !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1.35;
}

html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-actions a.sga-past-btn-outline {
    background: #fff;
    color: #1a5632;
    border: 1px solid var(--sga-panel-border);
}

html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-actions a.sga-past-btn-update {
    background: #fff;
    color: #1a5632;
    border: 1px solid #1a5632;
}

html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-actions a.sga-past-btn-solid {
    background: linear-gradient(180deg, #1a5632 0%, #124028 100%);
    color: #fff;
    border: 1px solid #0d3320;
}

@media (max-width: 768px) {
    html body .sga-admin-shell {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    html body .sga-admin-shell .sga-admin-elections-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    html body .sga-admin-shell .sga-admin-elections-toolbar__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Override global .btn { width: 100% } so card/toolbar flex layouts do not overflow */
    html body .sga-admin-shell .sga-election-card .btn,
    html body .sga-admin-shell .sga-election-card a.btn,
    html body .sga-admin-shell .sga-admin-elections-toolbar .btn,
    html body .sga-admin-shell .sga-admin-elections-toolbar a.btn,
    html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-actions a.btn,
    html body .sga-admin-shell #sga-admin-past-elections-table .sga-election-past-actions a {
        width: auto !important;
        max-width: 100%;
        margin-bottom: 0 !important;
        box-sizing: border-box;
    }

    html body .sga-admin-shell a.btn-sga-add-election {
        width: 100% !important;
        text-align: center;
    }

    html body .sga-admin-shell .sga-election-cards-panel .panel-body {
        padding: 1rem !important;
    }

    html body .sga-admin-shell .sga-election-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)) !important;
    }

    html body .sga-admin-shell .sga-election-card__header {
        flex-wrap: wrap !important;
    }

    html body .sga-admin-shell h3.sga-election-card__title,
    html body .sga-admin-shell .sga-election-card__title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    html body .sga-admin-shell .panel-heading .panel-title,
    html body .sga-admin-shell .panel-title {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    html body .sga-admin-shell .sga-election-cards-empty {
        white-space: normal;
    }

    html body .sga-admin-shell .table-responsive {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* SGA admin — Bootstrap 3 navbar (CFE-style: navbar-default, navbar-link) */
html body .sga-admin-shell nav.sga-admin-bootstrap-navbar.navbar-default {
    background: #f8f8f8 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 2px !important;
    margin-bottom: 1.5rem !important;
    min-height: 0 !important;
}

html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > li > a.navbar-link,
html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > li > a.navbar-link:visited {
    color: #555 !important;
    text-decoration: none !important;
    background: transparent !important;
}

html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > li > a.navbar-link:hover,
html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > li > a.navbar-link:focus {
    color: #333 !important;
    text-decoration: none !important;
    background: #eee !important;
}

html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > .active > a.navbar-link,
html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > .active > a.navbar-link:hover,
html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > .active > a.navbar-link:focus {
    color: #333 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background: #e8e8e8 !important;
}

html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > li > a.navbar-link .fa,
html body .sga-admin-shell nav.sga-admin-bootstrap-navbar .navbar-nav > li > a.navbar-link .fas {
    margin-right: 6px;
    color: inherit !important;
}

html body .sga-admin-shell .sga-admin-header-logout {
    padding: 0 !important;
    color: #555 !important;
    text-decoration: underline !important;
    font-size: inherit !important;
    border: none;
    background: transparent;
}

html body .sga-admin-shell .sga-admin-header-logout:hover,
html body .sga-admin-shell .sga-admin-header-logout:focus {
    color: #333 !important;
}

.sga-admin-shell .sga-admin-logout-form {
    display: inline;
    margin: 0;
}

.sga-admin-shell .sga-admin-logout-form .btn-link {
    padding: 0;
}

/*
 * Repeat Southeastern panel-success at end of stylesheet so it wins over any rule
 * in this file that loads conceptually “after” the block above (and vs imported CSS).
 */
html body .panel.panel-success,
html body .sga-admin-shell .panel.panel-success,
html body .sga-admin-shell section.panel.panel-success {
    border-color: var(--sga-panel-border) !important;
}

html body .sga-admin-shell section.panel.panel-success > .panel-heading,
html body .sga-admin-shell section.panel.panel-success .panel-heading,
html body .sga-admin-shell .panel.panel-success > .panel-heading,
html body .sga-admin-shell .panel.panel-success .panel-heading {
    background: linear-gradient(135deg, var(--sga-se-green) 0%, var(--sga-se-green-dark) 100%) !important;
    background-color: var(--sga-se-green) !important;
    color: #ffffff !important;
    border-color: var(--sga-panel-border) !important;
    border-bottom-color: var(--sga-panel-border) !important;
}

html body .sga-admin-shell .panel.panel-success .panel-title {
    color: #ffffff !important;
}

html body .panel.panel-success > .panel-heading,
html body .panel.panel-success .panel-heading {
    background: linear-gradient(135deg, var(--sga-se-green) 0%, var(--sga-se-green-dark) 100%) !important;
    background-color: var(--sga-se-green) !important;
    color: #ffffff !important;
    border-color: var(--sga-panel-border) !important;
    border-bottom-color: var(--sga-panel-border) !important;
}

html body .panel.panel-success .panel-title {
    color: #ffffff !important;
}

/* Category panels (ballot/senate/referendum/fee) use the same SE-green headings as other admin panels. */

html body .sga-admin-shell .sga-admin-roster-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.45;
    table-layout: fixed;
    overflow: visible !important;
}

html body .sga-admin-shell .sga-admin-roster-table.table {
    overflow: visible !important;
}

html body .sga-admin-shell .sga-admin-roster-table > thead > tr > th {
    padding: 11px 14px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    font-weight: 700;
    color: #124028;
    background: #e8f0ea;
    border-bottom: 2px solid var(--sga-panel-border);
}

html body .sga-admin-shell .sga-admin-roster-table > tbody > tr > td {
    padding: 14px;
    vertical-align: top;
    border-bottom: 1px solid var(--sga-panel-border);
}

html body .sga-admin-shell .sga-admin-roster-table > tbody > tr:last-child > td {
    border-bottom: none;
}

html body .sga-admin-shell .sga-admin-roster-table--candidates > thead > tr > th:nth-child(1),
html body .sga-admin-shell .sga-admin-roster-table--candidates > tbody > tr > td:nth-child(1) {
    width: 22%;
}

html body .sga-admin-shell .sga-admin-roster-table--candidates > thead > tr > th:nth-child(2),
html body .sga-admin-shell .sga-admin-roster-table--candidates > tbody > tr > td:nth-child(2) {
    width: 34%;
    text-align: left;
}

html body .sga-admin-shell .sga-admin-roster-table--candidates > thead > tr > th:nth-child(3),
html body .sga-admin-shell .sga-admin-roster-table--candidates > tbody > tr > td:nth-child(3) {
    width: 12%;
    text-align: left;
}

html body .sga-admin-shell .sga-admin-roster-table--candidates > thead > tr > th:nth-child(4),
html body .sga-admin-shell .sga-admin-roster-table--candidates > tbody > tr > td:nth-child(4) {
    width: 12%;
    text-align: left;
}

html body .sga-admin-shell .sga-admin-roster-table--candidates > thead > tr > th:nth-child(5),
html body .sga-admin-shell .sga-admin-roster-table--candidates > tbody > tr > td:nth-child(5) {
    width: 20%;
    text-align: left;
}

html body .sga-admin-shell .sga-admin-roster-table--issues > thead > tr > th:nth-child(1),
html body .sga-admin-shell .sga-admin-roster-table--issues > tbody > tr > td:nth-child(1) {
    width: 22%;
}

html body .sga-admin-shell .sga-admin-roster-table--issues > thead > tr > th:nth-child(2),
html body .sga-admin-shell .sga-admin-roster-table--issues > tbody > tr > td:nth-child(2) {
    width: 44%;
    text-align: left;
}

html body .sga-admin-shell .sga-admin-roster-table--issues > thead > tr > th:nth-child(3),
html body .sga-admin-shell .sga-admin-roster-table--issues > tbody > tr > td:nth-child(3) {
    width: 14%;
    text-align: center;
}

html body .sga-admin-shell .sga-admin-roster-table--issues > thead > tr > th:nth-child(4),
html body .sga-admin-shell .sga-admin-roster-table--issues > tbody > tr > td:nth-child(4) {
    width: 20%;
    text-align: left;
}

html body .sga-admin-shell .sga-admin-roster-candidate {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

html body .sga-admin-shell .sga-admin-roster-candidate__photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--sga-panel-border);
    background: #f4f8f5;
}

html body .sga-admin-shell .sga-admin-roster-candidate__name {
    font-weight: 700;
    font-size: 17px;
    color: #1a1a1a;
    margin-bottom: 6px;
    overflow-wrap: break-word;
    word-break: normal;
}

html body .sga-admin-shell .sga-admin-roster-candidate__bio {
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
    white-space: pre-wrap;
}

html body .sga-admin-shell .sga-admin-roster-issue__fulltext-link {
    margin-top: 10px;
}

html body .sga-admin-shell .sga-admin-roster-candidate__meta {
    font-size: 14px;
    color: #555;
}

html body .sga-admin-shell .sga-admin-roster-label {
    font-weight: 600;
    color: #124028;
    margin-right: 4px;
}

html body .sga-admin-shell .sga-admin-roster-code {
    font-size: 14px;
    color: #124028;
    background: #f4f8f5;
    padding: 2px 6px;
    border-radius: 3px;
}

html body .sga-admin-shell .sga-admin-roster-cell-muted {
    color: #333;
    font-size: 15px;
    padding-top: 18px !important;
}

html body .sga-admin-shell .sga-admin-roster-cell-center {
    text-align: center;
    padding-top: 22px !important;
}

html body .sga-admin-shell .sga-admin-roster-cell-numeric {
    text-align: right;
    padding-top: 22px !important;
    font-weight: 600;
    color: #124028;
}

html body .sga-admin-shell .sga-admin-roster-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

html body .sga-admin-shell .sga-admin-roster-issue__title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html body .sga-admin-shell .sga-admin-roster-issue__summary,
html body .sga-admin-shell .sga-admin-roster-issue__summary-text {
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html body .sga-admin-shell .sga-admin-roster-issue__link,
html body .sga-admin-shell a.sga-admin-roster-issue__link,
html body .sga-admin-shell button.sga-admin-roster-issue__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    min-height: 2.75rem !important;
    height: auto !important;
    padding: 0.65rem 1rem !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border: 2px solid #2c3e50 !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    color: #2c3e50 !important;
}

html body .sga-admin-shell .sga-admin-roster-issue__votes {
    padding-top: 16px !important;
}

html body .sga-admin-shell .sga-admin-roster-votes-hint {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #3d4a41;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

html body .sga-admin-shell .sga-admin-roster-votes-sep {
    margin: 0 4px;
    color: #595959;
}

html body .sga-admin-shell .sga-admin-cat-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 767px) {
    html body .sga-admin-shell .sga-admin-roster-table,
    html body .sga-admin-shell .sga-admin-roster-table thead,
    html body .sga-admin-shell .sga-admin-roster-table tbody,
    html body .sga-admin-shell .sga-admin-roster-table th,
    html body .sga-admin-shell .sga-admin-roster-table td,
    html body .sga-admin-shell .sga-admin-roster-table tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html body .sga-admin-shell .sga-admin-candidates-page-panel .sga-admin-roster-table,
    html body .sga-admin-shell .sga-admin-roster-table--candidates,
    html body .sga-admin-shell .sga-admin-roster-table--senate,
    html body .sga-admin-shell .sga-admin-roster-table--issues {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
    }

    html body .sga-admin-shell .sga-admin-roster-table > thead {
        display: none !important;
    }

    html body .sga-admin-shell .sga-admin-roster-table > tbody > tr {
        border-bottom: 1px solid var(--sga-panel-border);
        padding: 12px 0;
    }

    html body .sga-admin-shell .sga-admin-roster-table > tbody > tr > td {
        border: none;
        padding: 6px 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

    html body .sga-admin-shell .sga-admin-roster-issue__title {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        color: #1a1a1a !important;
    }

    html body .sga-admin-shell .sga-admin-roster-issue__link,
    html body .sga-admin-shell button.sga-admin-roster-issue__link,
    html body .sga-admin-shell a.sga-admin-roster-issue__link {
        width: auto !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        min-height: 2.75rem !important;
        padding: 0.65rem 1.1rem !important;
        line-height: 1.35 !important;
    }

    html body .sga-admin-shell .sga-admin-roster-cell-center,
    html body .sga-admin-shell .sga-admin-roster-cell-numeric,
    html body .sga-admin-shell .sga-admin-roster-cell-candidate-bio,
    html body .sga-admin-shell .sga-admin-roster-cell-issue-summary {
        padding-top: 6px !important;
    }

    html body .sga-admin-shell .sga-admin-roster-cell-center::before,
    html body .sga-admin-shell .sga-admin-roster-cell-muted::before,
    html body .sga-admin-shell .sga-admin-roster-cell-numeric::before,
    html body .sga-admin-shell .sga-admin-roster-cell-candidate-bio::before,
    html body .sga-admin-shell .sga-admin-roster-cell-issue-summary::before {
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #124028;
        margin-bottom: 4px;
    }

    html body .sga-admin-shell .sga-admin-roster-table--candidates .sga-admin-roster-cell-candidate-bio::before {
        content: 'Bio';
    }

    html body .sga-admin-shell .sga-admin-roster-table--candidates .sga-admin-roster-cell-muted::before {
        content: 'Classification';
    }

    html body .sga-admin-shell .sga-admin-roster-table--candidates .sga-admin-roster-cell-center::before {
        content: 'Status';
    }

    html body .sga-admin-shell .sga-admin-roster-table--candidates .sga-admin-roster-cell-numeric::before {
        content: 'Votes';
    }

    html body .sga-admin-shell .sga-admin-roster-table--issues .sga-admin-roster-cell-issue-summary::before {
        content: 'Summary';
    }

    html body .sga-admin-shell .sga-admin-roster-table--issues .sga-admin-roster-cell-center::before {
        content: 'Status';
    }

    html body .sga-admin-shell .sga-admin-roster-table--issues .sga-admin-roster-cell-numeric::before {
        content: 'For / against';
    }
}

/*
 * Candidates toolbar — “Add New Candidate”: no .dropdown-toggle on button; flex keeps width natural.
 * Menu list: white panel (campus mobile CSS often paints dropdown menus green).
 */
html body .sga-admin-shell .sga-admin-elections-toolbar__actions > .sga-admin-add-candidate-dropdown {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    align-self: flex-start !important;
    background: transparent !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown:not(.open) > .dropdown-menu:not(.show) {
    display: none !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown.open > .dropdown-menu,
html body .sga-admin-shell .sga-admin-add-candidate-dropdown > .dropdown-menu.show {
    display: block !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu,
html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li {
    background-color: #fff !important;
    background-image: none !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li > a,
html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li > a:focus {
    background-color: #fff !important;
    background-image: none !important;
    color: #333 !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li > a:hover {
    background-color: #f5f5f5 !important;
    color: #262626 !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu .dropdown-header {
    background-color: #fff !important;
    color: #595959 !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu .divider {
    background-color: #e5e5e5 !important;
}

html body .sga-admin-shell .sga-admin-elections-toolbar .btn.btn-default {
    text-align: left !important;
    white-space: nowrap;
}

html body .sga-admin-shell #add-candidate-dropdown {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

html body .sga-admin-shell .sga-admin-add-candidate-dropdown.open #add-candidate-dropdown.btn-default,
html body .sga-admin-shell .sga-admin-add-candidate-dropdown:has(> .dropdown-menu.show) #add-candidate-dropdown.btn-default {
    border: 2px solid #2c3e50 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 767px) {
    html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu,
    html body .sga-admin-shell .sga-admin-add-candidate-dropdown.open .dropdown-menu,
    html body .sga-admin-shell .sga-admin-add-candidate-dropdown > .dropdown-menu.show,
    html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li {
        background-color: #fff !important;
        background-image: none !important;
    }

    html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu,
    html body .sga-admin-shell .sga-admin-add-candidate-dropdown.open .dropdown-menu,
    html body .sga-admin-shell .sga-admin-add-candidate-dropdown > .dropdown-menu.show {
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
    }

    html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li > a,
    html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li > a:focus {
        background-color: #fff !important;
        background-image: none !important;
        color: #333 !important;
    }

    html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu > li > a:hover {
        background-color: #f5f5f5 !important;
        color: #262626 !important;
    }

    html body .sga-admin-shell .sga-admin-add-candidate-dropdown .dropdown-menu .dropdown-header {
        background-color: #fff !important;
        color: #595959 !important;
    }
}

/* Ballot summary labels (replaced non-hierarchical h6) */
.sga-ballot-summary-label {
    margin: 0.5rem 0 0.25rem;
    font-size: inherit;
    line-height: 1.4;
}

/* Modal classification fieldset — match form-label weight without browser legend quirks */
.sga-modal-fieldset-legend {
    display: block;
    width: auto;
    margin-bottom: 0.5rem;
    padding: 0;
    border: 0;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.4;
    color: #495057;
}

/* Ballot — candidate detail is a Bootstrap 3 .modal (opened via jQuery .modal('show')).
   Do not force display:none with a custom --open class; that blocked Bootstrap's .in. */
#sgaCandidateDetailModal[hidden] {
    display: none !important;
}

.card.text-center .sga-candidate-see-more {
    margin-top: 6px;
    margin-bottom: 8px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.3;
}

/* Flex ballot cards: default min-width:auto stops children from shrinking; allow text to wrap inside buttons */
.sga-voter-ballot .sga-ballot-person-row .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
