/* NH Representative Address Search Widget */

.nh-rep-search-widget {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Search Form */
.nh-rep-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nh-rep-geocoder {
    flex: 1;
    min-width: 250px;
}

.nh-rep-geocoder .mapboxgl-ctrl-geocoder {
    width: 100%;
    max-width: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nh-rep-geocoder .mapboxgl-ctrl-geocoder input {
    height: 44px;
    font-size: 16px;
    padding-left: 12px;
}

/* Hide the search icon */
.nh-rep-geocoder .mapboxgl-ctrl-geocoder--icon-search {
    display: none;
}

.nh-rep-search-btn {
    padding: 12px 24px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nh-rep-search-btn:hover {
    background-color: #1d4ed8;
}

.nh-rep-search-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Results */
.nh-rep-results {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.nh-rep-loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.nh-rep-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* District Info */
.district-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.district-header h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

/* District item with name and towns */
.district-item {
    margin-bottom: 12px;
}

.district-item:last-child {
    margin-bottom: 0;
}

.district-item .district-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.district-item .district-towns {
    margin: 2px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

.district-item .floterial-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-left: 6px;
}

/* Legacy styles for backward compatibility */
.district-header .district-name {
    margin: 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.district-header .district-name.district-floterial {
    color: #1e293b;
    font-size: 18px;
}

.district-header .district-note {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

/* District Groups */
.district-reps-group {
    margin-bottom: 20px;
}

.district-reps-group:last-child {
    margin-bottom: 0;
}

.district-group-header {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #475569;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
}

/* Representatives List */
.nh-rep-representatives-list h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #334155;
}

.representatives-grid {
    display: grid;
    gap: 15px;
}

.representative-card {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.representative-card .rep-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.representative-card .rep-info {
    flex: 1;
}

.representative-card .rep-info h5 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.representative-card .rep-info h5 a {
    color: #1e293b;
    text-decoration: none;
}

.representative-card .rep-info h5 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.representative-card .rep-party {
    display: inline-block;
    padding: 2px 8px;
    background: #e2e8f0;
    border-radius: 3px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 5px;
}

.representative-card .rep-email {
    display: block;
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.representative-card .rep-email:hover {
    text-decoration: underline;
}

/* Map */
.nh-rep-map {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Error */
.nh-rep-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .nh-rep-search-form {
        flex-direction: column;
    }
    
    .nh-rep-search-btn {
        width: 100%;
    }
    
    .representative-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =============================================
   VOTE LOOKUP STYLES
   ============================================= */

.nh-vote-lookup-widget {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.nh-vote-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.vote-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vote-form-row label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.vote-form-row-inline {
    display: flex;
    gap: 12px;
}

.vote-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vote-form-field-year {
    flex: 0 0 120px;
}

.vote-form-field-bill {
    flex: 1;
}

.vote-year-select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.vote-year-select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.vote-bill-select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.vote-bill-select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Bill Autocomplete */
.bill-autocomplete-wrapper {
    position: relative;
}

.vote-bill-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.vote-bill-input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.bill-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bill-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

.bill-suggestion-item:hover,
.bill-suggestion-item.active {
    background: #f1f5f9;
}

.bill-suggestion-item + .bill-suggestion-item {
    border-top: 1px solid #eee;
}

/* Hide search icon in vote geocoder too */
.nh-vote-lookup-widget .mapboxgl-ctrl-geocoder--icon-search {
    display: none;
}

/* Vote Results */
.nh-vote-results {
    margin-top: 20px;
}

.vote-results-title {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #1e293b;
}

.nh-vote-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vote-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vote-card-photo {
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.vote-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-card-photo .no-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.vote-card-content {
    padding: 16px;
}

.vote-card-name {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.vote-card-name a {
    color: #1e293b;
    text-decoration: none;
}

.vote-card-name a:hover {
    color: #2563eb;
}

.vote-card-party {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #64748b;
}

.vote-card-party.party-r {
    color: #dc2626;
}

.vote-card-party.party-d {
    color: #2563eb;
}

.vote-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-badge.vote-yea {
    background: #dcfce7;
    color: #166534;
}

.vote-badge.vote-nay {
    background: #fee2e2;
    color: #991b1b;
}

.vote-badge.vote-other {
    background: #fef3c7;
    color: #92400e;
}

.vote-badge.vote-none {
    background: #f1f5f9;
    color: #64748b;
}

.nh-vote-loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.nh-vote-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .nh-vote-cards {
        grid-template-columns: 1fr;
    }
}

/* Roll Call Groups */
.roll-call-group {
    margin-bottom: 30px;
}

.roll-call-group:last-child {
    margin-bottom: 0;
}

.roll-call-header {
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roll-call-date {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roll-call-seq {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.roll-call-motion {
    font-size: 16px;
    font-weight: 400;
}

.roll-call-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.no-votes-message {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 16px;
}

/* Show All Votes Button */
.nh-show-all-votes-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nh-show-all-votes-btn:hover {
    background: #334155;
}

/* Styled form inputs */
.vote-input-styled,
.vote-select-styled {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    background: white;
    box-sizing: border-box;
}

.vote-input-styled:focus,
.vote-select-styled:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Form section title */
.vote-form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Address/District row */
.vote-form-field-address {
    flex: 2;
}

.vote-form-field-or {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
}

.vote-form-field-district {
    flex: 1;
    min-width: 200px;
}

/* Primary search button */
.nh-vote-search-btn-primary {
    width: 100%;
    padding: 16px 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.nh-vote-search-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.nh-vote-search-btn-primary:active {
    transform: translateY(0);
}

/* Optional label */
.optional-label {
    font-weight: 400;
    color: #64748b;
    font-size: 13px;
}

/* Section divider */
.vote-section-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

/* Your Reps Section - Photo Cards */
.your-reps-roll-call {
    margin-bottom: 24px;
}

.your-reps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    cursor: pointer;
    transition: background 0.15s;
}

.your-reps-header:hover {
    background: #e2e8f0;
}

.your-reps-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.your-reps-toggle {
    font-size: 14px;
    color: #64748b;
}

.your-reps-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.your-reps-date {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.your-reps-motion {
    font-size: 15px;
    color: #1e293b;
}

.your-reps-totals {
    display: flex;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.your-reps-totals .total-yea {
    color: #16a34a;
}

.your-reps-totals .total-nay {
    color: #dc2626;
}

.your-reps-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.vote-card-horizontal {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.vote-card-h-photo {
    width: 100px;
    min-height: 100px;
    background-size: cover;
    background-position: center top;
    flex-shrink: 0;
}

.vote-card-h-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vote-card-h-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.vote-card-h-name a {
    color: #1e293b;
    text-decoration: none;
}

.vote-card-h-name a:hover {
    color: #2563eb;
}

.vote-card-h-party {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.vote-card-h-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-card-h-contact {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    transition: all 0.15s;
}

.contact-icon:hover {
    background: #2563eb;
    color: white;
}

/* Horizontal vote cards for your reps */

/* Chamber Groups */
.chamber-group {
    margin-bottom: 24px;
}

.chamber-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.chamber-header:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.chamber-name {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.chamber-count {
    font-size: 14px;
    opacity: 0.8;
}

.chamber-toggle {
    font-size: 14px;
    opacity: 0.7;
}

.chamber-content {
    padding-top: 16px;
}

/* All Votes Section */
.nh-all-votes-results {
    margin-top: 20px;
}

.all-votes-header {
    margin-bottom: 16px;
}

.all-votes-header h3 {
    margin: 0;
}

.nh-all-votes-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

/* All Votes Roll Call */
.all-votes-roll-call {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.all-votes-roll-call-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #1e293b;
    color: white;
    cursor: pointer;
    user-select: none;
}

.all-votes-roll-call-header:hover {
    background: #334155;
}

.roll-call-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 200px;
}

.roll-call-date {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roll-call-motion {
    font-size: 14px;
    opacity: 0.9;
}

.roll-call-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
}

.roll-call-outcome {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 4px;
}

.roll-call-outcome.outcome-passed {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.roll-call-outcome.outcome-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.roll-call-total {
    font-size: 14px;
    opacity: 0.8;
}

.roll-call-toggle {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 12px;
}

.all-votes-roll-call-content {
    background: #fff;
}

/* Controls */
.all-votes-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sort-controls,
.filter-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-controls label,
.filter-controls label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.sort-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.sort-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.sort-btn.active {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

.filter-btn {
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn:hover {
    opacity: 0.8;
}

.filter-btn.d-yea {
    color: #1d4ed8;
    border-color: #93c5fd;
}

.filter-btn.d-yea.active,
.filter-btn.d-yea:hover {
    background: #1d4ed8;
    color: white;
}

.filter-btn.d-nay {
    color: #1e40af;
    border-color: #bfdbfe;
}

.filter-btn.d-nay.active,
.filter-btn.d-nay:hover {
    background: #1e40af;
    color: white;
}

.filter-btn.r-yea {
    color: #dc2626;
    border-color: #fca5a5;
}

.filter-btn.r-yea.active,
.filter-btn.r-yea:hover {
    background: #dc2626;
    color: white;
}

.filter-btn.r-nay {
    color: #b91c1c;
    border-color: #fecaca;
}

.filter-btn.r-nay.active,
.filter-btn.r-nay:hover {
    background: #b91c1c;
    color: white;
}

.filter-btn.absent {
    color: #64748b;
    border-color: #cbd5e1;
}

.filter-btn.absent.active,
.filter-btn.absent:hover {
    background: #64748b;
    color: white;
}

.clear-filter-btn {
    padding: 5px 10px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.clear-filter-btn:hover {
    background: #fecaca;
}

/* Vote summary badges (non-clickable) */
.vote-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.summary-badge.d-yea {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.summary-badge.d-nay {
    background: rgba(30, 64, 175, 0.15);
    color: #1e40af;
}

.summary-badge.r-yea {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.summary-badge.r-nay {
    background: rgba(185, 28, 28, 0.15);
    color: #b91c1c;
}

.summary-badge.absent {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

/* Vote Rows - Compact List */
.all-votes-list {
    max-height: 500px;
    overflow-y: auto;
}

.vote-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.vote-row:last-child {
    border-bottom: none;
}

.vote-row:hover {
    background: #f8fafc;
}

.vote-row-highlight {
    background: #fef3c7;
}

.vote-row-highlight:hover {
    background: #fde68a;
}

.vote-row-name {
    flex: 1;
    font-size: 14px;
}

.vote-row-name a {
    color: #1e293b;
    text-decoration: none;
}

.vote-row-name a:hover {
    color: #2563eb;
}

.vote-row-party {
    width: 90px;
    font-size: 13px;
    text-align: center;
}

.vote-badge-small {
    font-size: 11px;
    padding: 4px 12px;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .all-votes-roll-call-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .roll-call-header-left {
        min-width: auto;
    }
    
    .roll-call-summary-partisan {
        justify-content: flex-start;
    }
    
    .roll-call-toggle {
        position: absolute;
        right: 16px;
        top: 16px;
    }
    
    .all-votes-controls {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Former rep tag */
.former-tag {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

/* Recent Roll Calls Widget */
.nh-recent-rollcalls-widget {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.recent-rollcalls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.recent-rollcalls-title {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.recent-rollcalls-refresh {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.3s;
}

.recent-rollcalls-refresh:hover {
    background: rgba(255,255,255,0.3);
}

.recent-rollcalls-refresh.spinning svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.recent-rollcalls-list {
    max-height: 600px;
    overflow-y: auto;
}

.recent-rollcalls-loading {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

.recent-rollcall-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.15s;
}

.recent-rollcall-item:hover {
    background: #f8fafc;
}

.recent-rollcall-item:last-child {
    border-bottom: none;
}

.recent-rc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.recent-rc-date {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-rc-seq {
    font-size: 11px;
    color: #1e40af;
    font-weight: 600;
}

.recent-rc-bill {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.recent-rc-motion {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.3;
}

.recent-rc-result {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.recent-rc-result .rc-yeas {
    color: #16a34a;
    font-weight: 500;
}

.recent-rc-result .rc-nays {
    color: #dc2626;
    font-weight: 500;
}

.recent-rc-result .rc-outcome {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.recent-rc-result .rc-outcome.passed {
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

.recent-rc-result .rc-outcome.failed {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.no-rollcalls {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* Recent Roll Calls Pagination */
.recent-rollcalls-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.pagination-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.pagination-btn:hover:not(:disabled) {
    background: #1e3a8a;
}

.pagination-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: #64748b;
}
