﻿*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --font-ui: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, Cambria, "Times New Roman", serif;

    --jpcc-navy: #0a314d;
    --jpcc-navy-dark: #062135;
    --jpcc-gold: #c1a783;
    --jpcc-red: #760b1d;
    --jpcc-red-dark: #5d0816;

    --jpcc-bg: #f4f7fa;
    --jpcc-bg-soft: #f8fafc;
    --jpcc-surface: #ffffff;

    --jpcc-border: #d7dee6;
    --jpcc-border-strong: #b7c4d0;

    --jpcc-text: #152536;
    --jpcc-muted: #5d6b78;
}

html {
    min-height: 100%;
    background: var(--jpcc-navy-dark);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--jpcc-bg);
    color: var(--jpcc-text);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.45;
}

body.app-body form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

a {
    color: var(--jpcc-navy);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    color: var(--jpcc-red);
    text-decoration: underline;
}

a img {
    border: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--jpcc-navy-dark);
    font-family: var(--font-serif);
    line-height: 1.2;
    margin: 0 0 10px;
}

h2 {
    font-size: 1.45rem;
    font-weight: 600;
}

p, ol, ul {
    margin-top: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.clear {
    clear: both;
}

.bold {
    font-weight: 700;
}

.hidden-field {
    display: none !important;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Layout shell */
.jpcc-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.main {
    flex: 1 1 auto;
    margin: 0 auto;
    max-width: 1400px;
    min-height: 0;
    padding: 22px 24px 34px;
    width: 100%;
}

.site-footer {
    background: var(--jpcc-navy-dark);
    border-top: 3px solid var(--jpcc-gold);
    color: rgba(255, 255, 255, 0.72);
    flex: 0 0 auto;
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 1rem 1.375rem;
    text-align: center;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: underline;
}

.header {
    background: linear-gradient(135deg, var(--jpcc-navy) 0%, var(--jpcc-navy-dark) 100%);
    border-bottom: 3px solid var(--jpcc-gold);
    color: #fff;
    flex: 0 0 auto;
}

.title {
    align-items: center;
    display: flex;
    gap: 14px;
    margin: 0 auto;
    max-width: 1400px;
    min-height: 96px;
    padding: 10px 24px;
}

.site-logo {
    align-items: center;
    display: flex;
    flex: 0 0 88px;
    height: 88px;
    justify-content: center;
    width: 88px;
}

.site-logo img {
    display: block;
    height: 88px;
    width: 88px;
}

.site-header-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.site-title {
    color: #fff;
    display: block;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.08;
}

.site-subtitle {
    color: var(--jpcc-gold);
    display: block;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.28;
    margin-top: 6px;
}

.loginDisplay {
    align-items: flex-end;
    color: #d9e5ec;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    font-size: 0.85rem;
    gap: 4px;
    padding-left: 16px;
    text-align: right;
    white-space: nowrap;
}

.loginDisplay a,
.header-signout {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    opacity: 0.92;
    padding: 0;
    text-decoration: underline;
}

.loginDisplay a:hover,
.header-signout:hover {
    color: #fff;
    opacity: 1;
}

/* Page sections */
.page-intro {
    margin-bottom: 18px;
}

.page-kicker {
    color: var(--jpcc-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.page-intro p {
    color: var(--jpcc-muted);
    margin-bottom: 0;
}

.panel {
    background: var(--jpcc-surface);
    border: 1px solid var(--jpcc-border);
    border-left: 4px solid var(--jpcc-gold);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(6, 33, 53, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, var(--jpcc-navy) 0%, var(--jpcc-navy-dark) 100%);
    border-bottom: 1px solid rgba(193, 167, 131, 0.35);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 12px 16px;
}

.panel-body {
    padding: 16px;
}

.panel--no-header .panel-body {
    padding-top: 18px;
}

.panel-body p {
    color: var(--jpcc-text);
    margin-bottom: 12px;
}

.disclaimer {
    color: var(--jpcc-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 720px;
    text-align: justify;
}

/* Forms */
.form-grid {
    align-items: end;
    display: grid;
    gap: 12px 16px;
    grid-template-columns: minmax(180px, 220px) minmax(180px, 240px) auto;
    max-width: 820px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    color: var(--jpcc-navy);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.form-input,
.form-select,
input[type="text"],
input[type="password"],
select,
textarea,
.textEntry,
.passwordEntry {
    width: 100%;
    min-height: 38px;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--jpcc-border-strong);
    border-radius: 4px;
    font-size: 0.9375rem;
    background: #fff;
    color: var(--jpcc-text);
}

.form-input:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--jpcc-navy);
    box-shadow: 0 0 0 2px rgba(10, 49, 77, 0.15);
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.form-secondary-actions {
    margin-top: 14px;
}

.form-secondary-actions p {
    color: var(--jpcc-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 6px;
}

.form-secondary-actions p:last-child {
    margin-bottom: 0;
}

.form-help-link {
    background: transparent;
    border: 0;
    color: var(--jpcc-navy);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0;
    text-decoration: none;
}

.form-help-link:hover {
    color: var(--jpcc-red);
    text-decoration: underline;
}

.form-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 520px;
}

.form-table td {
    padding: 8px 10px 8px 0;
    vertical-align: middle;
}

.form-table td:first-child {
    color: var(--jpcc-navy);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    width: 1%;
}

.account-form {
    max-width: 520px;
}

/* Buttons */
input[type="submit"],
input[type="button"],
button,
.btn,
.btn-primary {
    min-height: 36px;
    padding: 0.5rem 1rem;
    background: var(--jpcc-red);
    color: #fff;
    border: 1px solid var(--jpcc-red);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.btn:hover,
.btn-primary:hover {
    background: var(--jpcc-red-dark);
    border-color: var(--jpcc-red-dark);
}

.btn-secondary,
input[type="button"].btn-secondary {
    background: #fff;
    color: var(--jpcc-navy);
    border: 1px solid var(--jpcc-border-strong);
}

.btn-secondary:hover {
    background: var(--jpcc-bg-soft);
    color: var(--jpcc-navy);
}

input[type="submit"]:focus,
input[type="button"]:focus,
button:focus,
.btn-primary:focus,
.btn-secondary:focus,
.form-input:focus,
.form-select:focus,
a:focus-visible,
.election-toggle:focus-visible,
.toolbar-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 49, 77, 0.15);
}

.form-input:focus,
.form-select:focus,
a:focus-visible,
.election-toggle:focus-visible,
.toolbar-btn:focus-visible {
    border-color: var(--jpcc-navy);
}

.status-badge {
    display: inline-block;
    padding: 0.28rem 0.55rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge--active {
    background: #e8f5e9;
    color: #1b5e20;
}

.status-badge--pending {
    background: #e8eef8;
    color: #1e3a5f;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.btn-link {
    background: transparent;
    border: 0;
    color: var(--jpcc-navy);
    font-weight: 700;
    min-height: auto;
    padding: 0;
}

.btn-link:hover {
    background: transparent;
    color: var(--jpcc-red);
}

.toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.election-toolbar {
    gap: 12px;
    justify-content: space-between;
}

.toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toolbar-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: normal;
    line-height: 1.2;
    min-height: 36px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    text-transform: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.toolbar-btn--back {
    background: #fff;
    border-color: var(--jpcc-border-strong);
    color: var(--jpcc-navy);
}

.toolbar-btn--back:hover {
    background: var(--jpcc-bg-soft);
    border-color: var(--jpcc-navy);
    color: var(--jpcc-navy);
    text-decoration: none;
}

.toolbar-btn--select {
    background: var(--jpcc-navy);
    border-color: var(--jpcc-navy);
    color: #fff;
}

.toolbar-btn--select:hover {
    background: var(--jpcc-navy-dark);
    border-color: var(--jpcc-navy-dark);
    color: #fff;
    text-decoration: none;
}

.toolbar-btn--clear {
    background: #fff;
    border-color: var(--jpcc-border-strong);
    color: var(--jpcc-muted);
}

.toolbar-btn--clear:hover {
    background: var(--jpcc-bg-soft);
    border-color: var(--jpcc-border-strong);
    color: var(--jpcc-text);
    text-decoration: none;
}

/* Messages */
.failureNotification,
.error-message {
    color: var(--jpcc-red);
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-message:empty {
    display: none;
    margin-bottom: 0;
}

.success-message {
    color: #1f6b3a;
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-found,
.case-not-found {
    background: var(--jpcc-surface);
    border: 1px solid var(--jpcc-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(6, 33, 53, 0.08);
    margin-top: 14px;
    overflow: hidden;
}

.case-found {
    border-left: 4px solid var(--jpcc-gold);
}

.case-not-found {
    border-left: 4px solid var(--jpcc-border-strong);
}

.case-found-header,
.case-not-found-header {
    align-items: center;
    background: var(--jpcc-bg-soft);
    border-bottom: 1px solid var(--jpcc-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
    padding: 10px 14px;
}

.case-found-kicker {
    color: #1f6b3a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-not-found-kicker {
    color: #8a4b12;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-found-court,
.case-not-found-court {
    color: var(--jpcc-navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.case-found-body,
.case-not-found-body {
    padding: 14px;
}

.case-found-number,
.case-not-found-number {
    color: var(--jpcc-navy-dark);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
}

.case-not-found-message {
    color: var(--jpcc-text);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0 0 8px;
}

.case-not-found-help {
    color: var(--jpcc-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

.confirm-remove {
    background: var(--jpcc-surface);
    border: 1px solid var(--jpcc-border);
    border-left: 4px solid var(--jpcc-red);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(6, 33, 53, 0.08);
    margin-top: 14px;
    overflow: hidden;
}

.confirm-remove-actions {
    align-items: center;
    border-top: 1px solid var(--jpcc-border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 14px 14px;
}

.confirm-remove-actions--compact {
    border-top: 0;
    padding: 14px 0 0;
}

.confirm-remove .case-not-found-body {
    padding: 14px;
}

.case-found-title {
    color: var(--jpcc-text);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 8px;
}

.case-found-meta {
    color: var(--jpcc-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.case-found-actions {
    border-top: 1px solid var(--jpcc-border);
    padding: 12px 14px 14px;
}

.btn-add-alert {
    background: var(--jpcc-red);
    border: 1px solid var(--jpcc-red);
    border-radius: 4px;
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 38px;
    padding: 0.55rem 1rem;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.btn-add-alert:hover {
    background: var(--jpcc-red-dark);
    border-color: var(--jpcc-red-dark);
    color: #fff;
    text-decoration: none;
}

.session-ended {
    background: var(--jpcc-bg-soft);
    border: 1px solid var(--jpcc-border);
    border-radius: 4px;
    color: var(--jpcc-muted);
    padding: 12px 14px;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

.alert-table,
.election-table,
.form-table-compact {
    background: var(--jpcc-surface);
    border: 1px solid var(--jpcc-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(6, 33, 53, 0.08);
    margin-bottom: 14px;
    overflow: hidden;
    width: 100%;
}

.alert-table td,
.election-table td {
    border-bottom: 1px solid var(--jpcc-border);
    padding: 10px 12px;
    vertical-align: middle;
}

.alert-table tr:last-child td,
.election-table tr:last-child td {
    border-bottom: 0;
}

.alert-table tr:nth-child(even),
.election-table tr:nth-child(even) {
    background: var(--jpcc-bg-soft);
}

.alert-table th,
.election-table th,
.section-header {
    background: var(--jpcc-navy) !important;
    border-bottom: 1px solid var(--jpcc-navy-dark);
    color: #fff !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 10px 12px;
    text-align: left;
    text-transform: uppercase;
}

.alert-table th a,
.election-table th a,
.section-header a {
    color: #fff;
}

.alert-table .action-cell {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.alert-table a,
.election-table a {
    color: var(--jpcc-navy);
    font-weight: 600;
}

.alert-table a:hover,
.election-table a:hover {
    color: var(--jpcc-red);
}

.election-table .checkbox-cell {
    text-align: center;
    width: 52px;
}

.election-table .office-name-cell {
    font-size: 0.92rem;
}

.election-toggle {
    align-items: center;
    background: #fff;
    border: 2px solid var(--jpcc-border-strong);
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    vertical-align: middle;
    width: 24px;
}

.election-toggle:hover {
    border-color: var(--jpcc-navy);
    text-decoration: none;
}

.election-toggle--selected {
    background: var(--jpcc-navy);
    border-color: var(--jpcc-navy);
}

.election-toggle--selected .election-toggle-indicator::after {
    color: #fff;
    content: "\2713";
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.election-toggle-indicator {
    display: block;
    height: 12px;
    width: 12px;
}

.panel-election {
    margin-bottom: 0;
}

.panel-body--flush {
    padding: 0;
}

.election-panel-title {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
}

.election-panel-title .status-badge {
    margin-left: auto;
}

.election-selection-help {
    color: var(--jpcc-muted);
    font-size: 0.82rem;
    margin: 10px 0 0;
}

.election-empty-state {
    background: var(--jpcc-surface);
    border: 1px solid var(--jpcc-border);
    border-left: 4px solid var(--jpcc-border-strong);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(6, 33, 53, 0.08);
    color: var(--jpcc-muted);
    padding: 18px 16px;
}

.election-empty-state p {
    margin: 0 0 8px;
}

.election-empty-state p:last-child {
    margin-bottom: 0;
}

.election-empty-state-help {
    color: var(--jpcc-text);
    font-size: 0.9rem;
}

.election-options {
    margin-top: 12px;
}

.election-options label {
    color: var(--jpcc-text);
    display: inline;
    font-size: 0.92rem;
    font-weight: 400;
}

.sms-row {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 12px;
}

.sms-row .form-field {
    min-width: 180px;
}

/* Account / legacy fieldsets */
fieldset {
    border: 1px solid var(--jpcc-border);
    border-radius: 6px;
    margin: 1em 0;
    padding: 1em;
}

legend {
    color: var(--jpcc-navy);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    padding: 0 4px;
}

fieldset.login label,
fieldset.register label {
    color: var(--jpcc-navy);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

div.accountInfo {
    max-width: 520px;
}

.submitButton {
    margin-top: 12px;
    text-align: left;
}

.info-panel {
    background: var(--jpcc-surface);
    border: 1px solid var(--jpcc-border);
    border-radius: 6px;
    margin-top: 0;
    padding: 16px 18px;
}

.info-panel--soft {
    background: var(--jpcc-bg-soft);
    border-color: var(--jpcc-border);
    box-shadow: none;
}

.info-panel--supporting {
    background: transparent;
    border: 0;
    border-left: 1px solid var(--jpcc-border);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 4px 20px;
}

.login-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-page-intro {
    margin-bottom: 0;
}

.login-page-intro p {
    max-width: 640px;
}

.login-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
}

.login-layout-info .info-panel {
    box-shadow: none;
}

.login-layout-info .info-panel-lead {
    color: var(--jpcc-text);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.login-layout-info .info-panel-heading {
    color: var(--jpcc-muted);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 14px 0 6px;
    text-transform: uppercase;
}

.login-layout-info .info-panel-heading:first-of-type {
    margin-top: 0;
}

.login-layout-info .info-panel p {
    color: var(--jpcc-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.login-layout-info .info-panel-note {
    background: transparent;
    border-left: 2px solid rgba(193, 167, 131, 0.45);
    color: var(--jpcc-muted);
    font-size: 0.8rem;
    margin: 14px 0 0;
    padding: 0 0 0 10px;
}

.login-layout-action .account-form {
    box-shadow: 0 1px 2px rgba(6, 33, 53, 0.08);
}

.login-help-footer {
    border-top: 1px solid var(--jpcc-border);
    color: var(--jpcc-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    padding-top: 16px;
}

.login-help-footer a {
    font-weight: 600;
}

.login-layout-action {
    min-width: 0;
}

.login-layout-action .account-form {
    margin-bottom: 0;
    max-width: none;
    width: 100%;
}

.login-layout-action .form-table {
    max-width: none;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form .form-actions {
    margin-top: 4px;
}

.login-form .form-secondary-actions {
    margin-top: 0;
}

.info-panel p {
    color: var(--jpcc-text);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.info-panel p:last-child {
    margin-bottom: 0;
}

.info-panel-lead {
    font-size: 0.96rem;
    margin-bottom: 16px;
}

.info-panel-heading {
    color: var(--jpcc-navy);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin: 16px 0 8px;
}

.info-panel-heading:first-of-type {
    margin-top: 0;
}

.info-panel-note {
    background: rgba(193, 167, 131, 0.12);
    border-left: 3px solid var(--jpcc-gold);
    color: var(--jpcc-muted);
    font-size: 0.86rem;
    margin: 16px 0;
    padding: 10px 12px;
}

.dashboard-workflows {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.panel-workflow {
    margin-bottom: 0;
}

.find-case-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.find-case-form .form-actions {
    margin-top: 0;
}

.field-hint {
    color: var(--jpcc-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 6px 0 0;
}

.election-panel-intro {
    color: var(--jpcc-muted);
    font-size: 0.92rem;
    margin: 0 0 14px;
}

.election-option {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.election-option-label {
    cursor: pointer;
    font-weight: 600;
}

.election-option-help {
    margin: 0 0 12px 24px;
}

.election-customize {
    margin: 0 0 14px 24px;
}

.election-customize a {
    font-weight: 600;
}

.sms-section {
    border-top: 1px solid var(--jpcc-border);
    margin-top: 4px;
    padding-top: 14px;
}

.sms-row {
    align-items: flex-end;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
}

.dashboard-disclaimer {
    color: var(--jpcc-muted);
    font-size: 0.85rem;
    margin-top: 22px;
}

.dashboard-disclaimer p {
    margin: 0;
}

.panel-alerts {
    margin-bottom: 20px;
}

.panel-alerts .panel-body {
    padding: 0;
}

.panel-alerts .alert-table {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.alert-empty-state {
    color: var(--jpcc-muted);
    padding: 18px 16px;
}

.alert-empty-state p {
    margin: 0 0 8px;
}

.alert-empty-state p:last-child {
    margin-bottom: 0;
}

.alert-empty-state-help {
    color: var(--jpcc-text);
    font-size: 0.9rem;
}

.page-actions {
    margin-top: 18px;
}

@media (max-width: 768px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-workflows {
        grid-template-columns: 1fr;
    }

    .login-layout-info .info-panel--supporting {
        border-left: 0;
        border-top: 1px solid var(--jpcc-border);
        padding: 18px 0 0;
    }

    .title {
        align-items: flex-start;
        flex-wrap: wrap;
        min-height: 0;
        padding: 12px 16px;
    }

    .site-logo,
    .site-logo img {
        height: 64px;
        width: 64px;
    }

    .site-logo {
        flex-basis: 64px;
    }

    .site-title {
        font-size: 1.35rem;
    }

    .loginDisplay {
        align-items: flex-start;
        padding-left: 0;
        text-align: left;
        width: 100%;
    }

    .sms-row {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-table,
    .form-table td:first-child {
        display: block;
        width: 100%;
    }

    .form-table tr {
        display: block;
        margin-bottom: 10px;
    }

    .form-table td {
        display: block;
        padding: 4px 0;
    }

    .alert-table,
    .election-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
