.assigned-accounts-panel {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.assigned-accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    gap: 16px;
}

.assigned-accounts-header h2 {
    font-size: 14px;
    color: #2C333A;
    margin: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.assigned-accounts-header .dashboard-search-filter {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
    border: none;
}

.assigned-accounts-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow-y: auto;
    padding: 4px;
    flex: 1;
    min-height: 0;
}

.account-card {
    background: white;
    border: 1px solid rgb(197, 197, 197);
    border-radius: 8px;
    padding: 16px;
    max-width: 300px;
    max-height: 280px;
    flex: 1 1 300px;
    box-sizing: border-box;
}

/* Keep assigned account cards at 3 columns on desktop/tablet widths up to 1900px */
@media (max-width: 1900px) and (min-width: 769px) {
    .assigned-accounts-cards-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-content: start;
    }

    .account-card {
        width: 100%;
        max-width: none;
    }
}

.account-card:hover {
    border-color: #4a90e2;
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.account-id-badge {
    font-size: 11px;
    font-weight: 600;
    color: #092c47;
    background: #e6f0fd;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.account-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.account-status-badge i {
    font-size: 10px;
}

.status-assigned {
    background-color: #fef3c7;
    color: #92400e;
}

.status-inprogress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-onhold {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.account-card-body {
    margin-bottom: 12px;
}

.account-name {
    font-size: 15px;
    font-weight: 600;
    color: #2C333A;
    margin: 0 0 12px 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.account-team {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.team-member i {
    font-size: 14px;
    color: #4a90e2;
    width: 16px;
    text-align: center;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.team-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.team-name {
    font-size: 13px;
    color: #2C333A;
    font-weight: 500;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.account-card-footer {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.status-dropdown {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    background-color: #fff;
    color: #2C333A;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-dropdown:hover {
    border-color: #4a90e2;
}

.status-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.edit-accounts-btn {
    padding: 6px 8px;
    background: #f0f0f0;
    color: #64748b;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-accounts-btn:hover {
    background: #e2e8f0;
    color: #4a90e2;
    border-color: #4a90e2;
}

.view-details-btn {
    padding: 6px 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.view-details-btn:hover {
    background: #357abd;
}

.view-details-btn i {
    font-size: 11px;
}

.no-accounts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-accounts-message p {
    margin: 0;
    font-size: 14px;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.assigned-accounts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
}

.assigned-accounts-pagination .pagination-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #2C333A;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.assigned-accounts-pagination .pagination-btn:not(:disabled):hover {
    background-color: #4a90e2;
    color: #fff;
    transform: scale(1.1);
}

.assigned-accounts-pagination .pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.assigned-accounts-pagination span {
    font-size: 14px;
    color: #2C333A;
    font-family: 'Calibri', 'Roboto', sans-serif;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.account-details-modal {
    max-width: 1400px !important;
    width: 95% !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.dashboard-modal-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    font-weight: 400;
}

.account-details-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.account-details-modal .account-files-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
    min-height: 600px;
}

/* Account Card Date Styles */
.account-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e5e7eb;
}

.date-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.date-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.date-value {
    color: #334155;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Consolas', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Inline Date Display */
.account-dates .date-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Modern Date Input Styling */
.dashboard-form-group input[type='date'] {
    background-color: #f8fafc;
    color: #334155;
    cursor: text;
}

.dashboard-form-group input[type='date']::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

.dashboard-form-group input[type='date']::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: #e2e8f0;
    color: #4a90e2;
}

@media (max-width: 1200px) {
    .account-details-modal .account-files-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-details-modal {
        max-width: 95% !important;
    }
}

@media (max-width: 768px) {
    .assigned-accounts-panel {
        grid-row: auto;
        grid-column-start: 1;
    }

    .assigned-accounts-cards-container {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        max-height: 500px;
    }

    .account-card {
        flex: 1 1 250px;
        max-width: 250px;
    }

    .account-card-footer {
        flex-direction: column;
    }

    .view-details-btn {
        width: 100%;
        justify-content: center;
    }

    .account-details-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .account-details-modal .account-files-container {
        min-height: auto;
    }
}
