/* * Sigstics Tax Case Manager - style.css
 * Version: 2.9.5
 *
 * --- CHANGELOG ---
 * v2.9.5: Added styles for the new profile header on the client dashboard.
 * v2.9.4: Added styles for the new 'payment' card.
 * v2.9.3: Restored styles for the single case details card.
 * v2.9.2: Restored notification panel styles.
 * v2.9.1: Restored summary card styles. Added styles for action_required card.
 */

/* Core Variables */
:root {
    --primary-color: #2563eb;
    --primary-hover-color: #1d4ed8;
    --secondary-color: #6b7280;
    --border-color: #d1d5db;
    --background-color: #f3f4f6;
    --warning-color: #d97706;
    --warning-hover-color: #b45309;
    --completed-bg-color: #dcfce7;
    --completed-text-color: #166534;
    --submitted-bg-color: #fee2e2;
    --submitted-text-color: #991b1b;
    --inprogress-bg-color: #dbeafe;
    --inprogress-text-color: #1e40af;
    /* New Status Colors */
    --action-required-bg-color: #fef3c7;
    --action-required-text-color: #92400e;
    --draft-result-bg-color: #e0e7ff;
    --draft-result-text-color: #3730a3;
    --payment-bg-color: #fee2e2;
    --payment-text-color: #991b1b;
    --final-result-bg-color: #c4b5fd;
    --final-result-text-color: #5b21b6;
    --signed-bg-color: #e9d5ff;
    --signed-text-color: #5b21b6;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Base Layouts */
.sigstics-dashboard-wrap, 
.sigstics-admin-portal-wrap { 
    font-family: var(--font-family); 
    max-width: 1200px;
    margin: 2rem auto; 
    padding: 1rem; 
}

/* Headings */
.sigstics-dashboard-wrap h1, .sigstics-admin-portal-wrap h1,
.sigstics-dashboard-wrap h2, .sigstics-admin-portal-wrap h2,
.sigstics-dashboard-wrap h3, .sigstics-admin-portal-wrap h3,
.sigstics-dashboard-wrap h4, .sigstics-admin-portal-wrap h4 {
    margin-top: 2rem;
    margin-bottom: 1.5rem; 
    color: #111827;
}

/* New Profile Header */
.sigstics-profile-header {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sigstics-profile-avatar {
    flex-shrink: 0;
    background-color: var(--background-color);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}
.sigstics-profile-info {
    flex-grow: 1;
}
.sigstics-profile-info h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
}
.sigstics-profile-info p {
    margin: 0;
    color: var(--secondary-color);
}
.sigstics-profile-actions {
    flex-shrink: 0;
}


/* Notification Panel Styles */
.sigstics-notification-panel {
    background-color: #eff6ff;
    border: 1px solid #93c5fd;
    border-left-width: 5px;
    border-left-color: var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.sigstics-notification-panel h4 { margin-top: 0; color: #1e3a8a; }
.sigstics-notification-panel ul { margin: 0; padding-left: 1.2rem; }
.sigstics-notification-panel a { color: var(--primary-color); font-weight: 600; }
.sigstics-notification-dot { color: var(--primary-color); font-size: 1.2em; margin-left: 5px; display: inline-block; vertical-align: middle; line-height: 1; }


/* Summary Cards */
.sigstics-card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 1rem; 
    margin-bottom: 2rem; 
}
.sigstics-card { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 1.5rem; 
    text-align: left; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    transition: all 0.2s ease-in-out; 
    display: flex;
    flex-direction: column;
}
.sigstics-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.07); 
}
.sigstics-card-label { 
    font-size: 14px; 
    color: var(--secondary-color); 
    margin-bottom: 0.5rem; 
}
.sigstics-card-value { 
    font-size: 2.25rem; 
    font-weight: 700; 
    color: #1f2937; 
    line-height: 1;
}

/* Specific Card Background Colors */
.sigstics-card.card-completed { background-color: var(--completed-bg-color); }
.sigstics-card.card-completed .sigstics-card-value, .sigstics-card.card-completed .sigstics-card-label { color: var(--completed-text-color); }

.sigstics-card.card-submitted { background-color: var(--submitted-bg-color); }
.sigstics-card.card-submitted .sigstics-card-value, .sigstics-card.card-submitted .sigstics-card-label { color: var(--submitted-text-color); }

.sigstics-card.card-inprogress { background-color: var(--inprogress-bg-color); }
.sigstics-card.card-inprogress .sigstics-card-value, .sigstics-card.card-inprogress .sigstics-card-label { color: var(--inprogress-text-color); }

.sigstics-card.card-action-required { background-color: var(--action-required-bg-color); }
.sigstics-card.card-action-required .sigstics-card-value, .sigstics-card.card-action-required .sigstics-card-label { color: var(--action-required-text-color); }

.sigstics-card.card-payment { background-color: var(--payment-bg-color); }
.sigstics-card.card-payment .sigstics-card-value, .sigstics-card.card-payment .sigstics-card-label { color: var(--payment-text-color); }

.sigstics-card.card-signed { background-color: var(--signed-bg-color); }
.sigstics-card.card-signed .sigstics-card-value, .sigstics-card.card-signed .sigstics-card-label { color: var(--signed-text-color); }


/* Buttons */
.sigstics-button { 
    padding: 0.75rem 1.5rem; 
    border: 1px solid transparent; 
    border-radius: 6px; 
    background-color: var(--primary-color); 
    color: #fff !important; /* Important to override theme link colors */
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s ease-in-out; 
    text-decoration: none; 
    display: inline-block; 
    text-align: center; 
    line-height: 1.2;
}
.sigstics-button:hover { 
    background-color: var(--primary-hover-color); 
    color: #fff !important; 
    border-color: var(--primary-hover-color); 
}
.sigstics-button:disabled { 
    background-color: #9ca3af; 
    cursor: not-allowed; 
    opacity: 0.7; 
}
.sigstics-button-small { 
    padding: 0.5rem 1rem; 
    font-size: 13px; 
}
.sigstics-button-secondary { 
    background-color: transparent; 
    color: var(--primary-color) !important; 
    border-color: var(--primary-color); 
}
.sigstics-button-secondary:hover { 
    background-color: var(--primary-hover-color); 
    color: #fff !important; 
    border-color: var(--primary-hover-color); 
}
.sigstics-button-warning { 
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #fff !important;
}
.sigstics-button-warning:hover { 
    background-color: var(--warning-hover-color); 
    border-color: var(--warning-hover-color); 
}

/* Form Cards & Fields */
.sigstics-form-card { 
    background: #fff; 
    padding: 1.5rem 2rem; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    margin-bottom: 1.5rem; 
}
.sigstics-form-field { 
    margin-bottom: 1.5rem; 
}
.sigstics-form-field label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    color: #374151; 
}
.sigstics-input,
.sigstics-form-field input[type="text"],
.sigstics-form-field input[type="email"],
.sigstics-form-field input[type="tel"],
.sigstics-form-field input[type="url"],
.sigstics-form-field input[type="file"],
.sigstics-form-field textarea,
.sigstics-form-field select { 
    width: 100%; 
    max-width: 500px; 
    padding: 0.75rem; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); 
}
.sigstics-create-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.sigstics-create-form .sigstics-input {
    flex-grow: 1;
}

/* Table Styles */
.sigstics-table { 
    width: 100%; 
    border-collapse: collapse; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    background: #fff; 
    margin-top: 1.5rem; 
}
.sigstics-table th,
.sigstics-table td { 
    padding: 1rem 1.25rem; 
    text-align: left; 
    border-bottom: 1px solid var(--border-color); 
}
.sigstics-table th { 
    background-color: var(--background-color); 
    font-weight: 600; 
    color: var(--secondary-color); 
    text-transform: uppercase; 
    font-size: 12px; 
    letter-spacing: 0.05em; 
}
.sigstics-table tr:last-child td { 
    border-bottom: none; 
}
.sigstics-table tr:hover { 
    background-color: #f9fafb; 
}
.sigstics-table .sigstics-case-link { 
    font-weight: 600; 
    color: var(--primary-color); 
    text-decoration: none; 
}
.sigstics-table .sigstics-case-link:hover { 
    text-decoration: underline; 
}

/* Status Badges */
.sigstics-status-badge { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 9999px; font-size: 12px; font-weight: 600; text-transform: capitalize; line-height: 1.2; }
.sigstics-status-documents_submitted { background-color: var(--submitted-bg-color); color: var(--submitted-text-color); }
.sigstics-status-in_progress { background-color: var(--inprogress-bg-color); color: var(--inprogress-text-color); }
.sigstics-status-completed { background-color: var(--completed-bg-color); color: var(--completed-text-color); }
.sigstics-status-contract_sent { background-color: #e0e7ff; color: #3730a3; }
.sigstics-status-contract_signed { background-color: var(--signed-bg-color); color: var(--signed-text-color); }
/* New Statuses */
.sigstics-status-action_required { background-color: var(--action-required-bg-color); color: var(--action-required-text-color); }
.sigstics-status-draft_result { background-color: var(--draft-result-bg-color); color: var(--draft-result-text-color); }
.sigstics-status-payment { background-color: var(--payment-bg-color); color: var(--payment-text-color); }
.sigstics-status-final_result { background-color: var(--final-result-bg-color); color: var(--final-result-text-color); }


/* Notices */
.sigstics-back-link { 
    text-decoration: none; 
    font-weight: 600; 
    color: var(--secondary-color); 
    margin-bottom: 1rem; 
    display: inline-block; 
}
.sigstics-notice-success { 
    background-color: #dcfce7; 
    color: #15803d; 
    border: 1px solid #a7f3d0; 
    padding: 1rem; 
    border-radius: 6px; 
    margin-bottom: 1.5rem; 
}
.sigstics-notice-rework { 
    background-color: #fef3c7; 
    color: #92400e; 
    border: 1px solid #fde68a; 
    padding: 1rem; 
    border-radius: 6px; 
    margin-bottom: 1.5rem; 
}

/* ADMIN PORTAL SPECIFIC STYLES */
.sigstics-admin-filters { 
    display: flex; 
    flex-wrap: wrap;
    gap: 1rem; 
    align-items: center; 
    margin-bottom: 1.5rem; 
    background: #fff; 
    padding: 1rem; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
}
.sigstics-admin-filters input,
.sigstics-admin-filters select { 
    padding: 0.75rem; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
}
.sigstics-pagination { 
    margin-top: 1.5rem; 
}
.sigstics-pagination .page-numbers { 
    padding: 0.5rem 1rem; 
    border: 1px solid var(--border-color); 
    text-decoration: none; 
    color: var(--primary-color); 
    margin: 0 2px; 
    border-radius: 4px; 
}
.sigstics-pagination .page-numbers.current { 
    background-color: var(--primary-color); 
    color: #fff; 
    border-color: var(--primary-color); 
}
/* New Admin Notes Styles */
.sigstics-admin-notes-thread {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    background-color: var(--background-color);
}
.sigstics-admin-note-item {
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}
.sigstics-admin-note-item:last-child {
    margin-bottom: 0;
}
.sigstics-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.sigstics-note-header strong {
    color: #111827;
}
.sigstics-note-timestamp {
    font-size: 0.85rem;
    color: var(--secondary-color);
}
.sigstics-note-content {
    color: #374151;
    line-height: 1.6;
}


/* CLIENT DASHBOARD SPECIFIC STYLES */
.sigstics-business-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 1.5rem; 
    margin-bottom: 1.5rem; 
}
.sigstics-business-list-container { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
}
.sigstics-business-item { 
    padding: 1rem 1.5rem; 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    transition: all 0.2s ease-in-out; 
    text-decoration: none; 
    color: #1f2937; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.sigstics-business-item:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); 
}
.sigstics-arrow { 
    font-size: 1.5rem; 
    color: var(--primary-color); 
    transition: transform 0.2s ease-in-out; 
}
.sigstics-business-item:hover .sigstics-arrow { 
    transform: translateX(5px); 
}

/* SINGLE CASE VIEW */
.sigstics-case-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 1rem; 
    margin-bottom: 1rem; 
}
.sigstics-case-header h1 { 
    font-size: 1.8rem; 
    margin: 0; 
    padding: 0; 
    border: none; 
}
.sigstics-case-panel { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 1.5rem 2rem; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    margin-bottom: 1.5rem; 
}

/* Detail Card Styles */
.sigstics-detail-card { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 1.5rem; 
    margin-bottom: 2rem; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
    gap: 2rem; 
}
.sigstics-detail-item { 
    font-size: 1rem; 
}
.sigstics-detail-item strong { 
    color: #374151; 
    margin-right: 0.5rem; 
}


/* Timeline Styles */
.sigstics-timeline { display: flex; justify-content: space-between; position: relative; margin-top: 2rem; margin-bottom: 1rem; }
.sigstics-timeline::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 4px; background-color: #e5e7eb; z-index: 1; }
.sigstics-timeline-item { position: relative; z-index: 2; text-align: center; flex: 1; }
.sigstics-timeline-icon { width: 30px; height: 30px; border-radius: 50%; background-color: #fff; color: #6b7280; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; border: 2px solid #e5e7eb; font-size: 14px; transition: all 0.3s ease; }
.sigstics-timeline-label { font-size: 12px; color: #6b7280; transition: all 0.3s ease; }
.sigstics-timeline-item.completed .sigstics-timeline-icon { background-color: #10b981; border-color: #059669; color: #fff; font-weight: bold; }
.sigstics-timeline-item.completed .sigstics-timeline-label { color: #1f2937; font-weight: 600; }
.sigstics-timeline-item.current .sigstics-timeline-icon { background-color: var(--primary-color); border-color: var(--primary-hover-color); color: #fff; transform: scale(1.1); }
.sigstics-timeline-item.current .sigstics-timeline-label { color: var(--primary-color); font-weight: bold; }
.sigstics-timeline-item.rework .sigstics-timeline-icon { background-color: var(--warning-color); border-color: var(--warning-hover-color); }
.sigstics-timeline-item.rework .sigstics-timeline-label { color: var(--warning-color); }


/* --- Floating Chat Widget Styles --- */
.sigstics-chat-widget { position: fixed; bottom: 100px; right: 20px; width: 340px; max-width: 90vw; z-index: 999; background-color: #fff; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); font-family: var(--font-family); transform: translateY(20px) scale(0.95); opacity: 0; visibility: hidden; transition: transform 0.2s ease-out, opacity 0.2s ease-out, visibility 0.2s; }
.sigstics-chat-widget.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.sigstics-chat-widget-header { background-color: #fff; color: #111827; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; }
.sigstics-chat-widget-header h3 { margin: 0; font-size: 1.1rem; color: #111827; }
.sigstics-chat-widget-header .close-btn { background: none; border: none; cursor: pointer; padding: 5px; line-height: 0; }
.sigstics-chat-widget-body { padding: 1rem; background-color: #fff; }
.sigstics-message-thread { background-color: #fff; padding: 0; height: 260px; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.sigstics-message-item { padding: 0.75rem 1rem; border-radius: 18px; max-width: 80%; width: fit-content; line-height: 1.4; }
.sigstics-message-item.admin-message { background-color: #e4e6eb; color: #050505; align-self: flex-end; border-bottom-right-radius: 5px; }
.sigstics-message-item.client-message { background-color: var(--primary-color); color: #ffffff; align-self: flex-start; border-bottom-left-radius: 5px; }
.sigstics-message-header { margin-bottom: 0.25rem; display: block; }
.sigstics-message-header strong { font-size: 0.9em; font-weight: 600; }
.sigstics-message-header .sigstics-message-timestamp { font-size: 0.75em; opacity: 0.8; margin-left: 0.5rem; }
.sigstics-message-content { word-wrap: break-word; }
.sigstics-message-form, .sigstics-admin-message-form { display: flex; gap: 0.5rem; margin-top: 1rem; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.sigstics-message-form textarea, .sigstics-admin-message-form textarea { flex-grow: 1; border-radius: 18px !important; border: 1px solid var(--border-color); padding: 0.5rem 1rem; font-family: inherit; resize: none; height: 38px; background-color: #f0f2f5; }
.sigstics-message-form .sigstics-button, .sigstics-admin-message-form .sigstics-button { flex-shrink: 0; border-radius: 50%; padding: 0.5rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.sigstics-chat-toggle-button { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background-color: var(--primary-color); border-radius: 50%; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; transition: transform 0.2s ease-out; }
.sigstics-chat-toggle-button:hover { transform: scale(1.05); }
.sigstics-chat-toggle-button .icon { transition: opacity 0.2s, transform 0.2s; position: absolute; }
.sigstics-chat-toggle-button .icon-close { opacity: 0; transform: rotate(-90deg); }
.sigstics-chat-widget.is-open + .sigstics-chat-toggle-button .icon-chat { opacity: 0; transform: rotate(90deg); }
.sigstics-chat-widget.is-open + .sigstics-chat-toggle-button .icon-close { opacity: 1; transform: rotate(0); }
/* --- Mobile Responsive Fixes (v2 - Corrected Labels) --- */
/* --- Mobile Responsive Fixes (v3 - Timeline Fix) --- */
@media (max-width: 768px) {

    /* --- General Responsive Table Structure --- */
    .sigstics-table thead {
        display: none;
    }
    .sigstics-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    .sigstics-table tr:last-child {
        margin-bottom: 0;
    }
    .sigstics-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid var(--border-color);
    }
    .sigstics-table td:last-child {
        border-bottom: none;
    }
    .sigstics-table td::before {
        content: "Label";
        position: absolute;
        left: 1rem;
        width: calc(50% - 2rem);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--secondary-color);
    }
    
    /* --- Specific Labels for Admin Portal Table --- */
    .sigstics-admin-table td:nth-of-type(1)::before { content: 'Case ID'; }
    .sigstics-admin-table td:nth-of-type(2)::before { content: 'Department'; }
    .sigstics-admin-table td:nth-of-type(3)::before { content: 'Client'; }
    .sigstics-admin-table td:nth-of-type(4)::before { content: 'Status'; }
    .sigstics-admin-table td:nth-of-type(5)::before { content: 'Created'; }
    .sigstics-admin-table td:nth-of-type(6)::before { content: 'Actions'; }

    /* --- Specific Labels for Client Dashboard Cases List --- */
    .sigstics-dashboard-wrap .sigstics-table:not(.sigstics-admin-table):not(.sigstics-case-panel .sigstics-table) td:nth-of-type(1)::before { content: 'Case ID'; }
    .sigstics-dashboard-wrap .sigstics-table:not(.sigstics-admin-table):not(.sigstics-case-panel .sigstics-table) td:nth-of-type(2)::before { content: 'Status'; }
    .sigstics-dashboard-wrap .sigstics-table:not(.sigstics-admin-table):not(.sigstics-case-panel .sigstics-table) td:nth-of-type(3)::before { content: 'Submitted'; }
    .sigstics-dashboard-wrap .sigstics-table:not(.sigstics-admin-table):not(.sigstics-case-panel .sigstics-table) td:nth-of-type(4)::before { content: 'Actions'; }

    /* --- Specific Labels for Case Files Table (inside a case) --- */
    .sigstics-dashboard-wrap .sigstics-case-panel .sigstics-table td:nth-of-type(1)::before { content: 'File Name'; }
    .sigstics-dashboard-wrap .sigstics-case-panel .sigstics-table td:nth-of-type(2)::before { content: 'Type'; }
    .sigstics-dashboard-wrap .sigstics-case-panel .sigstics-table td:nth-of-type(3)::before { content: 'Uploaded'; }
    .sigstics-dashboard-wrap .sigstics-case-panel .sigstics-table td:nth-of-type(4)::before { content: 'Actions'; }

    /* --- Other Responsive Fixes --- */
    .sigstics-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .sigstics-profile-actions {
        width: 100%;
        margin-top: 1rem;
    }
    .sigstics-profile-actions .sigstics-button {
        width: 100%;
        box-sizing: border-box;
    }
    .sigstics-admin-filters {
        flex-direction: column;
        align-items: stretch;
    }

    /* --- Responsive Case Progress Timeline --- */
    .sigstics-timeline {
        flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
        justify-content: flex-start;
        margin-bottom: 0;
    }
    .sigstics-timeline::before {
        display: none; /* Hide the horizontal connector line on mobile */
    }
    .sigstics-timeline-item {
        flex-grow: 0; /* Prevent items from growing to fill space */
        flex-basis: 33.33%; /* Set a base width for 3 items per row */
        margin-bottom: 2rem; /* Add vertical space between rows */
    }
    .sigstics-timeline-label {
        word-break: break-word; /* Help long labels to wrap nicely */
    }
    /* --- Specific Labels for Admin Portal Table (UPDATED) --- */
    .sigstics-admin-table td:nth-of-type(1)::before { content: 'Case Name'; }
    .sigstics-admin-table td:nth-of-type(2)::before { content: 'Case ID'; }
    .sigstics-admin-table td:nth-of-type(3)::before { content: 'Department'; }
    .sigstics-admin-table td:nth-of-type(4)::before { content: 'Client'; }
    .sigstics-admin-table td:nth-of-type(5)::before { content: 'Status'; }
    .sigstics-admin-table td:nth-of-type(6)::before { content: 'Created'; }
    .sigstics-admin-table td:nth-of-type(7)::before { content: 'Actions'; }
}