/* SOM Digital Guidelines Colors */
:root {
    --som-navy: #142D3E;
    --som-success: #0D8252;
    --som-success-background: #EAFBEB;
    --som-warning: #E5A612;
    --som-warning-text: #AE5400;
    --som-warning-background: #FFEFCA;
    --som-error: #B30518;
    --som-error-background: #FFE8E3;
    --som-info: #0077A7;
    --som-info-background: #E3F7FF;
    --som-heading-copy: #161618;
    --som-body-copy: #353535;
    --som-caption: #707070;
    --som-border: #D0D0D0;
    --som-alt-background: #F7F7F7;
    --som-smoke: #EAF1F4;
    
    /* Additional variables for hover states and overlays */
    --standard-shadow: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Lexend Deca', sans-serif;
    background: var(--som-alt-background);
    padding: 0;
    margin: 0;
}

.gradient-header {
    background: var(--som-navy);
    padding-bottom: 96px;
}

nav {
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-left .logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, #16397b85 100%, transparent 100%);
    padding: 4px;
}

.nav-left .page-name {
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right .user-name {
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
}

.nav-right .logout-button {
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 9999px;
    background-color: transparent;
    font-family: 'Lexend Deca', sans-serif;
    cursor: pointer;
}

.fill-content {
    min-height: calc(100dvh - 8rem);
}

footer {
    padding: 0.5rem 1rem;
    margin-left: auto;
    margin-right: auto;
    background: rgb(22, 22, 24);
    display: flex;
    justify-content: space-between;
    color: rgb(255, 255, 255);
    font-size: 0.75rem;
    font-family: Montserrat, sans-serif;
}

footer span {
    padding: 0.5rem 1rem;
}

footer a {
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
}

/* Common Styles */
button {
    font-family: 'Lexend Deca', sans-serif;
}

.back-button {
    display: block;
    border-radius: 8px;
    border: 2px solid white;
    color: white;
    padding: 4px 4px 0px 4px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    font-family: 'Lexend Deca', sans-serif;
    background-color: transparent;
    color: var(--som-info);
    border: 1px solid var(--som-info);
    background: var(--som-info-background);
}

.action-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.system-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.system-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.system-tab.active {
    color: white;
    border-bottom: 2px solid white;
}

.system-tab:hover {
    color: white;
}

.election-selector {
    display: flex;
    gap: 4px;
    position: relative;
    width: fit-content;
}

.election-container {
    max-width: 1280px;
    margin: 12px auto;
    padding: 24px;
}

.election-button {
    font-size: 32px;
    font-weight: 700;
    color: white;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Lexend Deca', sans-serif;
}

.arrow {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 3px;
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.rotated {
    rotate: 180deg;
}

/* Stats Section */
.stats-container {
    padding: 24px 24px 24px 6px;
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

@media (max-width: 850px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: none;
    padding: 24px;
    box-shadow: 0 4px 6px -1px var(--standard-shadow), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.stat-card.selected {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 23px;
}

.stat-label {
    font-size: 14px;
    color: white;
    font-weight: 500;
    font-family: 'Lexend Deca', sans-serif;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-top: 8px;
}

/* Main Content */
main {
    padding: 0 24px 48px 24px;
    margin-top: -64px;
}

.main-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.search-card {
    background: var(--som-alt-background);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 6px -1px var(--standard-shadow), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-content {
    flex: 1;
}

.search-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 0 0 8px 0;
}

.search-content p {
    font-size: 14px;
    color: var(--som-heading-copy);
    margin: 0 0 16px 0;
}

.search-controls {
    display: flex;
    gap: 16px;
}

.search-input-container {
    position: relative;
}

.search-input-container input {
    width: 320px;
    padding: 8px 48px;
    background: transparent;
    border: 1px solid rgba(16, 40, 71, 0.2);
    border-radius: 9999px;
    color: var(--som-heading-copy);
    font-size: 14px;
}

.search-input-container input::placeholder {
    color: var(--som-caption);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 12px;
    width: 16px;
    height: 16px;
    color: var(--som-heading-copy);
}

.search-button {
    background: var(--som-heading-copy);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.search-decoration {
    width: 128px;
    height: 128px;
}

.search-card .menu-button {
    margin-bottom: 2px;
}

.county-card-link {
    text-decoration: none;
}

.upload-time {
    color: var(--som-caption);
}

.county-header {
    display: flex;
    justify-content: space-between;
    height: 36px;
    margin-bottom: 8px;
}

.county-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.county-header-left span {
    margin: 0;
    color: var(--som-heading-copy);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.badge {
    width: fit-content;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    gap: 5px;
    border: 1px solid;
}

.clickable-badge {
    cursor: pointer;
}

/* Status badge colors */
.badge.returned_for_edits,
.badge.waiting_for_upload {
    background: var(--som-warning-background);
    color: var(--som-warning-text);
    border-color: var(--som-warning);
}

.badge.processing,
.badge.waiting_for_approval,
.badge.pending_review,
.badge.not_approved,
.badge.icon_with_field_set {
    background: var(--som-info-background);
    color: var(--som-info);
    border-color: var(--som-info);
}

.badge.failed,
.badge.approval_revoked {
    background: var(--som-error-background);
    color: var(--som-error);
    border-color: var(--som-error);
}

.badge.completed,
.badge.approved {
    background: var(--som-success-background);
    color: var(--som-success);
    border-color: var(--som-success);
}

.badge.skipped,
.badge.icon_without_field_set {
    background: var(--som-smoke);
    color: var(--som-caption);
    border-color: var(--som-caption);
}

.election-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--standard-shadow);
    margin-top: 4px;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
}

.election-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.election-option:hover {
    background-color: var(--som-alt-background);
}

.election-option:first-child {
    border-radius: 8px 8px 0 0;
}

.election-option:last-child {
    border-radius: 0 0 8px 8px;
}

.county-detail {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px var(--standard-shadow);
}

.days-until {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 14px;
    color: var(--som-border);
}

.file-input {
    display: none;
}

.upload-form {
    display: inline-block;
}

.county-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.activity-filters {
    display: flex;
    gap: 6px;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: 100%;
    margin-bottom: 36px;
}

.activity-content {
    width: 100%;
}

.activity-header {
    margin-bottom: 0;
    margin-top: 10px;
}

.activity-card-link {
    text-decoration: none;
}

.activity-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 20px 12px 12px;
    gap: 12px;
    width: 100%;
    height: 80px;
    background: white;
    border: 1px solid var(--som-border);
    border-radius: 8px;
    margin-top: 12px;
    color: var(--som-body-copy);
}

.activity-text .county-link {
    padding: 0;
    text-decoration: none;
    font-weight: 800;
    color: var(--som-heading-copy);
}

.icon-square {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 8px;
    width: 56px;
    height: 56px;
    background: white;
    border: 1px solid var(--som-border);
    border-radius: 8px;
}

.icon-square.success {
    color: var(--som-success);
    background: var(--som-success-background);
}

.icon-square.error {
    color: var(--som-error);
    background: var(--som-error-background);
}

.icon-container {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    display: block;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex-grow: 1;
}

.activity-text {
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 200;
    font-size: 16px;
    line-height: 24px;
    align-items: center;
    color: var(--som-heading-copy);
}

.actor-name {
    font-weight: 600;
}

.status {
    font-weight: 600;
}

.status.completed {
    color: var(--som-success);
}

.status.failed {
    color: var(--som-error);
}

.timestamp {
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    display: flex;
    align-items: center;
    color: var(--som-caption);
}

.upload-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px var(--standard-shadow);
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 0;
}

.upload-description {
    color: var(--som-caption);
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed var(--som-border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.upload-area.drag-active {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 24px 0;
}

.upload-icon {
    color: var(--som-caption);
}

.upload-text h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--som-heading-copy);
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: var(--som-caption);
    font-size: 0.875rem;
}

.browse-button {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--som-alt-background);
    border: 1px solid var(--som-border);
    border-radius: 6px;
    color: var(--som-body-copy);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upload-overlay-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.upload-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upload-overlay-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--som-caption);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: var(--som-alt-background);
    color: var(--som-body-copy);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*
.note-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.note-textarea {
    width: 90%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid var(--som-border);
    border-radius: 8px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin: auto;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--som-info);
    box-shadow: 0 0 0 1px var(--som-info);
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.char-counter {
    color: #64748B;
    font-size: 12px;
}

.note-actions {
    display: flex;
    gap: 12px;
}

.note-actions .action-button {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
 
.note-actions .action-button.cancel {
    background-color: #F8FAFC;
    border: 1px solid var(--som-border);
    color: #64748B;
}

.note-actions .action-button.save {
    background-color: var(--som-info);
    border: none;
    color: white;
}
*/

.election-card {
    background: white;
    border-radius: 8px;
    transition: all 0.2s;
    margin: 12px 0;
    cursor: pointer;
}

.election-card:hover {
    background: var(--som-alt-background);
}

.election-card.hidden {
    display: none;
}

.election-link {
    display: block;
    padding: 12px 20px 20px 20px;
    text-decoration: none;
}

.election-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 8px 0;
}

.election-date {
    font-size: 14px;
    color: var(--som-caption);
}

.past-elections-toggle {
    border: none;
    background: none;
    font-size: 16px;
    color: var(--som-caption);
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.county-card {
    background: white;
    border-radius: 8px;
    transition: all 0.2s;
    margin: 12px 0;
}

.county-card:hover {
    background: var(--som-alt-background);
}

.county-link {
    display: block;
    padding: 20px;
    text-decoration: none;
}

.county-name {
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 3px;
}

/* Form Styles */
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--som-heading-copy);
}

.form-group input[type="text"],
.form-group input[type="date"] {
    cursor: text;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.styled-input {
    padding: 10px 16px;
    border: 1px solid var(--som-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--som-heading-copy);
    transition: border-color 0.2s;
    max-width: 100%;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.styled-input:focus {
    outline: none;
    border-color: var(--som-info);
}

.checkbox-container {
    display: flex;
    gap: 4px;
}

.checkbox-text {
    font-size: 14px;
    color: var(--som-heading-copy);
}

.disabled .checkbox-text {
    color: dimgrey;
}

select:disabled {
    background-color: var(--som-alt-background);
    cursor: not-allowed;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    background: var(--som-alt-background);
    border-radius: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
}

.vertical-flex {
    flex-direction: column;
    gap: 10px;
}

/* Approval Table Styles */
.approval-table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.styled-table th {
    background: var(--som-alt-background);
    padding: 12px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--som-heading-copy);
}

.styled-table td {
    padding: 16px 24px;
    border-top: 1px solid var(--som-border);
    font-size: 14px;
    color: var(--som-heading-copy);
}

.col-email {
    width: 10%;
}

.col-date {
    width: 10%;
}

.col-role {
    width: 15%;
}

.col-login {
    width: 8%;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-button {
    padding: 6px 12px;
    color: var(--som-info);
    background: transparent;
    border: 2px solid var(--som-info);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove {
    background: var(--som-info);
    color: white;
    border: none;
}

.inactive-users-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px var(--standard-shadow);
}

.inactive-users-section h2 {
    margin: 0 0 24px 0;
    color: var(--som-heading-copy);
    font-size: 24px;
    font-weight: 600;
}

.quick-create-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    width: 80%;
    max-width: 700px;
}

.quick-create-form .form-group {
    flex: 1;
}

.election-status-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hidden-election-badge {
    width: fit-content;
    padding: 4px 12px;
    background: var(--som-smoke);
    color: var(--som-caption);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 48px;
    background: var(--som-alt-background);
    border-radius: 8px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    color: var(--som-heading-copy);
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    color: var(--som-caption);
    font-size: 14px;
}

/* Flash Message Animations */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-message {
    animation: slideIn 0.3s ease-out;
}

/* Profile Container Styles */
.profile-container {
    max-width: 800px;
    margin: -40px auto 0;
    padding: 0 24px;
}

.profile-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px var(--standard-shadow);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 0 0 24px 0;
}

.profile-grid {
    display: grid;
    gap: 16px;
}

.profile-card {
    background: white;
    border: 1px solid var(--som-border);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.profile-card:hover {
    background: var(--som-alt-background);
    border-color: var(--som-info);
}

.profile-link {
    display: block;
    padding: 20px;
    text-decoration: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 0;
}

.profile-role {
    padding: 4px 12px;
    background-color: var(--som-info-background);
    color: var(--som-info);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.profile-email {
    font-size: 14px;
    color: var(--som-caption);
}

.profile-county {
    padding: 4px 12px;
    background: var(--som-smoke);
    color: var(--som-caption);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    width: fit-content;
}

.login-button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    background-color: white;
    color: var(--som-caption);
    border: 1px solid var(--som-border);
}

/* Reports Component Styling */
.reports-container {
    width: 100%;
    padding: 20px;
}

.reports-container .search-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--standard-shadow);
    overflow: hidden;
}

.reports-container .search-content {
    padding: 24px;
}

.reports-container .search-content > p {
    margin-bottom: 24px;
    color: var(--som-caption);
}

/* Reports Grid Layout */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Report Card Styles */
.report-card {
    background-color: var(--som-alt-background);
    border-radius: 6px;
    box-shadow: 0 1px 3px var(--standard-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--standard-shadow);
}

.report-card-content {
    padding: 20px;
}

.report-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--som-heading-copy);
}

.report-card p {
    color: var(--som-body-copy);
    margin-bottom: 20px;
    min-height: 40px;
}

/* Error Message Styles */
.error-message {
    background-color: var(--som-error-background);
    color: var(--som-error);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--som-error);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .form-container, .approvals-container {
        padding: 24px;
    }

    .add-form {
        flex-direction: column;
    }

    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .styled-table {
        display: block;
        overflow-x: auto;
    }

    .styled-table th,
    .styled-table td {
        padding: 12px 16px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Notification System Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: white;
    animation: slideIn 0.3s ease-out;
}

.notification-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-content {
    flex: 1;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--som-body-copy);
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--som-header-copy);
}

/* Type-specific styles */
.notification-success {
    border-left: 4px solid var(--som-success);
}

.notification-success .notification-icon {
    color: var(--som-success);
}

.notification-error {
    border-left: 4px solid var(--som-error);
}

.notification-error .notification-icon {
    color: var(--som-error);
}

.notification-warning {
    border-left: 4px solid var(--som-warning);
}

.notification-warning .notification-icon {
    color: var(--som-warning);
}

.notification-info {
    border-left: 4px solid var(--som-info);
}

.notification-info .notification-icon {
    color: var(--som-info);
}

/* Login Page Styles */


.login-container {
    max-width: 448px;
    margin: 0 auto;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--som-heading-copy);
    margin: 0 0 24px 0;
}

.message-container {
    margin-bottom: 24px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
}

.alert-error {
    background: var(--som-error-background);
    color: var(--som-error);
}

.alert-success {
    background: var(--som-success-background);
    color: var(--som-success);
}

.alert-icon {
    width: 20px;
    height: 20px;
}

/* Filter Controls Styles */
.filter-controls {
    background: white;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px var(--standard-shadow);
}

.filter-controls-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--som-heading-copy);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 14px;
    color: var(--som-heading-copy);
    font-weight: 500;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid var(--som-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--som-heading-copy);
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--som-info);
}

@media (max-width: 768px) {
    .filter-controls-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Timeline Section Styles */
.timeline-section {
    width: 90%;
    margin: auto;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px var(--standard-shadow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 16px;
}

.timeline-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.timeline-header h2 {
    margin: 0;
    color: var(--som-heading-copy);
    font-size: 24px;
    font-weight: 600;
}

/* Job Selector Styles */
.job-selector {
    position: relative;
}

.job-selector-box,
.job-selector-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--som-border);
    border-radius: 6px;
    color: var(--som-heading-copy);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Lexend Deca', sans-serif;
}

.job-selector-button:hover {
    border-color: var(--som-info);
    background: var(--som-info-background);
}

.job-selector-button svg {
    transition: transform 0.2s;
}

.job-selector-button svg.rotated {
    transform: rotate(180deg);
}

.job-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--som-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px var(--standard-shadow);
    margin-top: 4px;
    z-index: 10;
    min-width: 200px;
    width: fit-content;
}

.job-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--som-border);
    white-space: nowrap;
    gap: 20px;
}

.job-option:last-child {
    border-bottom: none;
}

.job-option:hover {
    background-color: var(--som-alt-background);
}

.job-option span {
    font-size: 14px;
    font-weight: 500;
    color: var(--som-heading-copy);
}

.job-option .badge {
    font-size: 10px;
    padding: 2px 8px;
}

/* Job Timeline Styles */
.job-timeline {
    padding: 0;
}

/* Timeline Container Improvements */
.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 40px;
    bottom: 5px;
    width: 2px;
    background: var(--som-border);
    z-index: 0;
}

/* Compact Timeline Events */
.timeline-event-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.timeline-dot-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px white;
    background-color: var(--som-info);
}

.timeline-dot-small svg {
    width: 12px;
    height: 12px;
}

.timeline-compact-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--som-body-copy);
    min-width: 0;
}

.timeline-compact-title {
    font-weight: 500;
    color: var(--som-heading-copy);
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0; /* Allow this to shrink */
    flex: 1;
}

.timeline-compact-filename {
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1; /* Take remaining space in the title container */
    min-width: 0; /* Allow it to shrink */
    color: var(--som-caption);
}

.timeline-compact-actor {
    color: var(--som-caption);
    flex-shrink: 0;
}

.timeline-compact-timestamp {
    margin-left: auto;
    color: var(--som-caption);
    font-size: 13px;
    flex-shrink: 0;
}

/* Expanded Timeline Events (Cards) */
.timeline-event-expanded {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    position: relative;
    z-index: 1;
}

.timeline-card {
    flex: 1;
    background: var(--som-info-background);
    border-radius: 8px;
    padding: 16px;
    border-left: 3px solid var(--som-info);
    position: relative;
    transition: all 0.2s;
}

.timeline-card:hover {
    box-shadow: 0 2px 8px var(--standard-shadow);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 16px;
}

.timeline-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--som-heading-copy);
}

.timeline-card-timestamp {
    font-size: 13px;
    color: var(--som-caption);
}

.timeline-card-actor {
    font-size: 14px;
    color: var(--som-caption);
    margin-bottom: 12px;
}

.timeline-card-message {
    font-size: 14px;
    color: var(--som-body-copy);
    line-height: 1.5;
    margin-top: 12px;
}

/* Timeline Results Styling */
.timeline-results,
.timeline-errors {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    background: white;
}

.timeline-results {
    border-left: 3px solid var(--som-warning);
}

.timeline-errors {
    border-left: 3px solid var(--som-error);
}

.timeline-results h5,
.timeline-errors h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--som-heading-copy);
}

.timeline-results ul,
.timeline-errors ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.timeline-results li,
.timeline-errors li {
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--som-body-copy);
}

.timeline-error-item {
    color: var(--som-error);
}

.timeline-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.timeline-header-actions .action-button {
    white-space: nowrap;
    padding: 10px 16px;
}

/* Timeline Loading Styles */
.timeline-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--som-border);
  margin: 16px 0;
}

.timeline-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--som-caption);
}

.timeline-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--som-border);
  border-radius: 50%;
  border-top-color: var(--som-info);
  animation: spin 1s linear infinite;
}

.timeline-loading-content span {
  font-size: 14px;
  font-weight: 500;
}

/* Comment Form Styles */
.comment-form {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--som-border);
}

.comment-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comment-form-header h4 {
    margin: 0;
    color: var(--som-heading-copy);
    font-size: 16px;
    font-weight: 600;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--som-border);
    border-radius: 6px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--som-info);
    box-shadow: 0 0 0 1px var(--som-info);
}

.comment-options {
    margin-bottom: 16px;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.comment-actions .action-button.cancel {
    background-color: var(--som-alt-background);
    color: var(--som-body-copy);
    border: 1px solid var(--som-border);
}

.comment-actions .action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enhanced Timeline Comment Styles */
.timeline-reply {
    margin-top: 12px;
    position: relative;
}

.timeline-reply .timeline-card:not(.timeline-card-hidden) {
    border: 2px solid var(--som-info);
}

.timeline-card.timeline-card-hidden {
    background: var(--som-alt-background);
    border: 3px dashed var(--som-border);
    opacity: 0.9;
}

.comment-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.comment-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-action-button {
    padding: 4px;
    background: none;
    border: none;
    color: var(--som-caption);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-action-button:hover {
    color: var(--som-info);
    background: var(--som-info-background);
}

.hidden-badge.clickable-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--som-alt-background);
    color: var(--som-body-copy);
    border: 1px solid var(--som-body-copy);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.not-hidden-badge.clickable-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--som-info-background);
    color: var(--som-info);
    border: 1px solid var(--som-info);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.hidden-badge, .not-hidden-badge {
    display: none;
}

/* Reply Form Styles */
.reply-form {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--som-border);
}

.reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--som-border);
    border-radius: 6px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--som-info);
    box-shadow: 0 0 0 1px var(--som-info);
}

.reply-options {
    margin-bottom: 12px;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Blocking Item Card Styles */
.blocking-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--som-smoke);
    border-radius: 8px;
    border: 2px dashed var(--som-border);
    margin: 16px 0;
    position: relative;
}

.blocking-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blocking-item-content {
    flex: 1;
}

.blocking-item-content strong {
    display: block;
    font-size: 16px;
    color: var(--som-heading-copy);
    margin-bottom: 4px;
}

.blocking-item-description {
    font-size: 14px;
    color: var(--som-caption);
    line-height: 1.4;
}

.blocking-item-progress {
    display: flex;
    align-items: center;
}

/* Progress Spinner Animation */
.progress-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--som-border);
    border-radius: 50%;
    border-top-color: var(--som-caption);
    animation: spin 1s linear infinite;
}

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

/* Action Item Card Styles */
.action-item-card {
    padding: 20px;
    border-radius: 8px;
    width: 100%;
}

.action-item-content {
    flex: 1;
}

.action-item-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.action-item-description {
    font-size: 14px;
    line-height: 1.5;
}

.action-item-buttons {
    display: flex;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.action-item-buttons .action-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Lexend Deca', sans-serif;
}

.action-item-buttons .action-button.primary {
    color: white;
}

.action-item-buttons .action-button.primary:hover {
    filter: brightness(0.9);
}

.action-item-buttons .action-button.secondary {
    background: white;
    color: var(--som-body-copy);
    border: 1px solid var(--som-border);
}

.action-item-buttons .action-button.secondary:hover {
    background: var(--som-alt-background);
}

/* Notice Card Styles */
.notice-card {
    padding: 16px 20px;
    border-radius: 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.notice-card.with-spinner {
    flex-direction: row;
}

.notice-content {
    flex: 1;
}

.notice-title {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.notice-description {
    font-size: 14px;
    line-height: 1.4;
}

/* SOM Header Styles */
.som-header-main {
    display: flex;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 7px 10px 0px;
    height: 5rem;
    background: rgb(255, 255, 255);
    z-index: 3010;
    position: sticky;
    top: 0;
    width: 100%;
}

.som-header-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.som-header-logo-container {
    height: 5rem;
    width: 5rem;
    padding: 0px;
    margin-right: 1.5rem;
    min-width: 5rem;
}

.som-header-svg-gradient {
    fill: url(#linear-gradient);
}

.som-header-svg-white {
    fill: white;
}

.som-header-text-container {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    padding-right: 1rem;
}

.som-header-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: rgb(22, 22, 24);
    font-family: Montserrat, sans-serif;
}

.som-header-dept {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    font-family: Montserrat, sans-serif;
}

.som-header-svg-cls-1 {
    fill: url(#linear-gradient);
}

.som-header-svg-cls-2 {
    fill: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-main, .approvals-main {
        padding: 16px;
    }

    .timeline-section {
        width: 95%;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .timeline-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .job-dropdown {
        min-width: auto;
        left: 0;
        right: 0;
    }

    .timeline-title {
        font-size: 14px;
    }

    .timeline-timestamp {
        font-size: 12px;
    }

    .timeline-compact-content {
        flex-wrap: wrap;
    }

    .timeline-compact-timestamp {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .timeline-reply {
        margin-left: 16px;
    }

    .comment-header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .reply-actions {
        flex-direction: column;
    }

    .reply-actions .action-button {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive: Stack vertically on narrow screens */
@media (max-width: 850px) {
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .timeline-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* On very narrow screens, stack buttons vertically */
@media (max-width: 640px) {
    .timeline-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .timeline-header-actions .action-button {
        width: 100%;
        justify-content: center;
    }
}

/* LazyImage styles */
.lazy-image-container {
  position: relative;
  background: var(--som-alt-background);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.lazy-image-loading {
  color: var(--som-caption);
  font-size: 13px;
}

.lazy-image {
  max-width: 100%;
  height: auto;
  min-width: min(400px, 100%);
  width: auto;
  display: block;
  object-fit: contain;
}

.lazy-image-error {
  color: var(--som-error);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* ProofingGroup styles */
.proofing-group {
  margin-bottom: 16px;
  background: white;
  border: 1px solid;
  border-radius: 8px;
  overflow: hidden;
}

.proofing-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid;
}

.proofing-group-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proofing-group-icon {
  flex-shrink: 0;
}

.proofing-group-title {
  /* color set via inline style */
}

.proofing-group-dismissed-badge {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
}

.proofing-group-dismiss-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.proofing-group-change-class-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.proofing-group-content {
  padding: 16px;
}

.proofing-group-body {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.proofing-context {
  font-size: 12px;
  color: var(--som-caption);
  margin-bottom: 6px;
}

.proofing-first-item-images {
  margin-bottom: 12px;
}

.proofing-images-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proofing-images-container,
.proofing-first-item-images,
.proofing-expanded-item-images {
  max-width: 100%;
  overflow-x: auto; /* Allow horizontal scroll if image is still too wide */
}

.proofing-dismiss-instance-container {
  margin-bottom: 16px;
}

.proofing-dismiss-instance-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
}

.proofing-expand-container {
  margin-bottom: 16px;
}

.proofing-expand-btn {
  margin-bottom: 8px;
  padding: 8px 16px;
  font-size: 13px;
  background: var(--som-alt-background);
  border: 1px solid var(--som-border);
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.proofing-expand-icon {
  transition: transform 0.2s;
}

.proofing-expand-icon.expanded {
  transform: rotate(180deg);
}

.proofing-expanded-content {
  border: 1px solid;
  border-radius: 6px;
  background: var(--som-alt-background);
  padding: 16px;
  margin-bottom: 16px;
}

.proofing-expanded-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--som-heading-copy);
  margin-bottom: 12px;
}

.proofing-expanded-item {
  padding: 12px;
  background: white;
  border-radius: 6px;
}

.proofing-expanded-item.with-margin {
  margin-bottom: 12px;
}

.proofing-expanded-item-body {
  font-size: 13px;
  color: var(--som-body-copy);
  margin-bottom: 8px;
}

.proofing-expanded-item-images {
  margin-bottom: 8px;
}

.proofing-individual-dismiss-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
}

.proofing-reference {
  padding: 12px;
  background: var(--som-alt-background);
  border-radius: 4px;
  font-size: 12px;
  color: var(--som-caption);
  font-style: italic;
  margin-top: 12px;
}

/* ProofingResultCard styles */
.proofing-results-container {
  margin-top: 20px;
}

.proofing-success-state {
  padding: 24px;
  text-align: center;
  background: var(--som-success-background);
  border-radius: 6px;
  border: 1px solid var(--som-success);
  color: var(--som-success);
  width: 100%;
}

.proofing-success-icon {
  margin-bottom: 8px;
  color: var(--som-success);
}

.proofing-success-title {
  margin-bottom: 4px;
}

.proofing-success-description {
  font-size: 14px;
  margin-top: 4px;
}

.proofing-dismissed-section {
  margin-top: 24px;
  border: 1px solid var(--som-border);
  border-radius: 8px;
  background: var(--som-alt-background);
  overflow: hidden;
}

.proofing-dismissed-toggle {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  color: var(--som-caption);
  font-weight: 500;
}

.proofing-dismissed-content {
  border-top: 1px solid var(--som-border);
  padding: 16px;
}

.proofing-dismissed-icon {
  transition: transform 0.2s;
}

.proofing-dismissed-icon.expanded {
  transform: rotate(180deg);
}

/* Additional margin styles for timeline items */
.proofing-dismissed-section.with-top-margin {
  margin-top: 24px;
}

/* Accessibility Improvements */
.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.styled-input:focus,
.action-button:focus,
.remove-button:focus {
    outline: 2px solid var(--som-info);
    outline-offset: 2px;
}

.checkbox-wrapper input[type="checkbox"]:focus ~ .checkmark {
    outline: 2px solid var(--som-info);
    outline-offset: 2px;
}

.comment-action-button:focus {
    outline: 2px solid var(--som-info);
    outline-offset: 2px;
}

/* Animation Enhancements */
.reply-form {
    animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proofing-report-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.proofing-report-button:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.05);
}

.proofing-report-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
