body { background-color: #f3f5f9; font-family: 'Inter', sans-serif; color: #4a5568; }

/* Card & UI Styles */
.card { border: none; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.stat-card { padding: 25px; position: relative; }

/* Card Colors */
.card-action { border-left: 6px solid #e53e3e; } /* Red */
.card-pending { border-left: 6px solid #dd6b20; } /* Orange */
.card-deposit { border-left: 6px solid #319795; } /* Teal (New) */
.card-reminder { border-left: 6px solid #805ad5; } /* Purple */

.card-action h2 { color: #e53e3e; }
.card-pending h2 { color: #dd6b20; }
.card-deposit h2 { color: #319795; }
.card-reminder h2 { color: #805ad5; }

/* Table Styles */
.table-container { background: white; padding: 25px; border-radius: 16px; box-shadow: 0 4px 25px rgba(0,0,0,0.04); }
.badge-pill { padding: 6px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }

/* Status Badge Colors */
.bg-call { background-color: #e9d8fd; color: #6b46c1; }
.bg-inv { background-color: #fed7d7; color: #c53030; }
.bg-wait { background-color: #feebc8; color: #c05621; }
.bg-work { background-color: #bee3f8; color: #2b6cb0; }
.bg-pend { background-color: #e2e8f0; color: #4a5568; }
.bg-deposit { background-color: #b2f5ea; color: #285e61; } /* Teal Badge */

/* Row Highlights */
tr.highlight-red td:first-child { border-left: 4px solid #e53e3e; }
tr.highlight-orange td:first-child { border-left: 4px solid #dd6b20; }
tr.highlight-purple td:first-child { border-left: 4px solid #805ad5; }
tr.highlight-teal td:first-child { border-left: 4px solid #319795; } /* Teal Highlight */

.btn-icon { cursor: pointer; color: #a0aec0; background:none; border:none; transition: 0.2s; }
.btn-icon:hover { color: #4a5568; }
.has-notes { color: #3182ce !important; }
.icon-cell { white-space: nowrap; }
.btn-icon + .btn-icon { margin-left: 6px; }
.task-btn { position: relative; }
.task-btn.has-open-tasks { color: #2f855a; }
.task-btn.all-done { color: #38a169; }
.task-badge { 
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.65rem;
    border-radius: 999px;
    padding: 0 5px;
    line-height: 1.4;
    min-width: 16px;
    text-align: center;
}
.task-badge-done { background: #38a169; }
.task-list { 
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}
.task-item { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #edf2f7;
    margin-bottom: 8px;
}
.task-item:last-child { margin-bottom: 0; }
.task-item.task-done { 
    opacity: 0.8;
    background: #f0fff4;
}
.task-title { 
    margin-left: 10px;
    font-weight: 500;
    color: #2d3748;
}
.task-title.done { 
    text-decoration: line-through;
    color: #718096;
}
.task-check, .task-delete { 
    border: none;
    background: none;
    padding: 4px;
}
.task-check { color: #a0aec0; font-size: 1.1rem; }
.task-check.done { color: #38a169; }
.task-delete { color: #c53030; }
.task-delete:hover { color: #9b2c2c; }
.task-empty { 
    text-align: center;
    color: #a0aec0;
    padding: 25px 0;
    font-size: 0.9rem;
}
.agency-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e6fffa;
    color: #2c7a7b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.agency-summary-card {
    background: white;
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}
.agency-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.agency-pill {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #2d3748;
    text-decoration: none;
    background: #f8fafc;
    transition: all 0.2s;
}
.agency-pill span {
    font-weight: 600;
    margin-left: 6px;
    color: inherit;
}
.agency-pill:hover {
    border-color: #cbd5f5;
    color: #1a202c;
    background: #edf2f7;
}
.agency-pill.active {
    background: #2f855a;
    border-color: #2f855a;
    color: white;
}
.agency-pill.active span {
    color: white;
}
.action-explain-box { background: #ebf8ff; border-left: 4px solid #4299e1; padding: 15px; border-radius: 4px; margin-bottom: 20px; color: #2b6cb0; }

/* Progress Bar Styles */
.progress-bar-container { background: #e2e8f0; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #4299e1 0%, #3182ce 100%); transition: width 0.3s ease; }
.progress-text { font-size: 0.7rem; color: #4299e1; font-weight: 600; }
.progress-slider { width: 100%; }

/* Reminder Styles - Full Width Live Chat Style */
.reminders-container { 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
}
.reminders-header { 
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    color: white; 
    padding: 16px 20px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.reminders-list { 
    display: flex; 
    overflow-x: auto; 
    padding: 12px;
    gap: 12px;
    scrollbar-width: thin;
}
.reminders-list::-webkit-scrollbar { height: 6px; }
.reminders-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.reminders-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
.reminder-item { 
    min-width: 320px; 
    max-width: 380px;
    padding: 16px; 
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.reminder-item:hover { 
    background: #f1f5f9; 
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.reminder-overdue { 
    background: #fef2f2; 
    border-left: 4px solid #ef4444; 
    border-color: #fecaca;
}
.reminder-soon { 
    background: #fffbeb; 
    border-left: 4px solid #f59e0b; 
    border-color: #fde68a;
}
.reminder-upcoming { 
    background: #f0fdf4; 
    border-left: 4px solid #10b981; 
    border-color: #bbf7d0;
}
.reminder-icon { 
    font-size: 2rem; 
    line-height: 1; 
    margin-right: 12px;
    flex-shrink: 0;
}
.reminder-content { 
    flex: 1; 
    min-width: 0;
}
.reminder-title { 
    font-weight: 600; 
    font-size: 0.95rem; 
    color: #1a202c;
    margin-bottom: 4px;
}
.reminder-client { 
    font-size: 0.8rem; 
    color: #718096; 
    margin-bottom: 6px;
}
.reminder-note { 
    font-size: 0.85rem; 
    color: #4a5568; 
    margin-top: 6px;
    font-style: italic;
}
.reminder-meta { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    margin-top: 8px;
    gap: 8px;
}
.reminder-days { 
    font-weight: 600; 
    font-size: 0.85rem; 
}
.reminder-date { 
    font-size: 0.75rem; 
    color: #718096;
}
.reminder-dismiss { 
    margin-top: 8px;
}
@media (max-width: 768px) {
    .reminders-list { 
        flex-direction: column; 
        overflow-x: visible;
    }
    .reminder-item { 
        min-width: 100%; 
        max-width: 100%;
    }
}

