/* ============================================
   ENTERPRISE PLATFORM - MAIN STYLESHEET
   Professional Navy Blue Theme
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --primary-400: #94a3b8;
    --primary-300: #cbd5e1;
    --primary-200: #e2e8f0;
    --primary-100: #f1f5f9;
    --primary-50: #f8fafc;

    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-primary-light: #eff6ff;
    --accent-success: #10b981;
    --accent-success-light: #ecfdf5;
    --accent-warning: #f59e0b;
    --accent-warning-light: #fffbeb;
    --accent-danger: #ef4444;
    --accent-danger-light: #fef2f2;
    --accent-info: #06b6d4;
    --accent-info-light: #ecfeff;

    --sidebar-width: 250px;
    --header-height: 60px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--primary-800);
    background-color: var(--primary-100);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* ============================================
   APP CONTAINER - UNIFIED LAYOUT
   ============================================ */

.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
    min-height: 100vh;
}

/* ============================================
   UNIFIED HEADER
   ============================================ */

.unified-header {
    grid-column: 1 / -1;
    grid-row: 1;
    height: var(--header-height);
    background: var(--primary-900);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-brand {
    width: var(--sidebar-width);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: var(--primary-900);
    gap: 12px;
}

.header-brand .brand-icon {
    font-size: 24px;
    color: var(--accent-primary);
}

.header-brand .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.header-content {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--primary-200);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-100);
    padding: 8px 16px;
    border-radius: 8px;
    width: 320px;
}

.header-search i {
    color: var(--primary-400);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: var(--primary-700);
}

.header-search input::placeholder {
    color: var(--primary-400);
}

.header-search kbd {
    display: none;
}

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

.header-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--primary-600);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    font-size: 18px;
}

.header-action-btn:hover {
    background: var(--primary-100);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: var(--accent-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 8px;
}

.header-user:hover {
    background: var(--primary-100);
}

.header-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.header-user .user-info {
    display: flex;
    flex-direction: column;
}

.header-user .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-800);
}

.header-user .user-role {
    font-size: 11px;
    color: var(--primary-500);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    grid-column: 1;
    grid-row: 2;
    background: linear-gradient(180deg, var(--primary-900) 0%, var(--primary-800) 100%);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Company Selector */
.company-selector {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
}

.company-current:hover {
    background: rgba(255, 255, 255, 0.1);
}

.company-logo {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-type {
    font-size: 11px;
    color: var(--primary-400);
}

.company-current i {
    color: var(--primary-400);
    font-size: 14px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 16px;
}

.nav-section-title {
    color: var(--primary-500);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--primary-300);
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-item.active {
    background: var(--accent-primary);
    color: #fff;
}

.nav-item i {
    width: 18px;
    font-size: 16px;
    text-align: center;
}

.nav-item span {
    flex: 1;
}

.nav-badge {
    font-size: 9px !important;
    font-weight: 700 !important;
    width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    aspect-ratio: 1 / 1 !important;
}

.nav-badge.warning {
    background: var(--accent-warning) !important;
    color: #000 !important;
}

.nav-badge.danger {
    background: var(--accent-danger) !important;
    color: #fff !important;
}

.nav-badge.success {
    background: var(--accent-success) !important;
    color: #fff !important;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    grid-column: 2;
    grid-row: 2;
    padding: 24px;
    overflow-y: auto;
    background: var(--primary-100);
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-900);
    margin: 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-500);
}

.breadcrumb-nav a {
    color: var(--primary-500);
}

.breadcrumb-nav a:hover {
    color: var(--accent-primary);
}

.breadcrumb-nav i {
    font-size: 10px;
}

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

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--primary-200);
    overflow: hidden;
}

.stat-card-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
}

.stat-card.mini {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
}

.stat-icon.success {
    background: var(--accent-success-light);
    color: var(--accent-success);
}

.stat-icon.warning {
    background: var(--accent-warning-light);
    color: var(--accent-warning);
}

.stat-icon.danger {
    background: var(--accent-danger-light);
    color: var(--accent-danger);
}

.stat-icon.info {
    background: var(--accent-info-light);
    color: var(--accent-info);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--primary-500);
    margin-bottom: 4px;
    display: block;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1.2;
    margin: 0;
}

.stat-card.mini .stat-value {
    font-size: 22px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

.stat-change.positive {
    color: var(--accent-success);
}

.stat-change.negative {
    color: var(--accent-danger);
}

.stat-change.warning {
    color: var(--accent-warning);
}

.stat-change.neutral {
    color: var(--primary-500);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--primary-200);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--primary-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-800);
    margin: 0;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

.card-body.p-0 {
    padding: 0;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--primary-200);
    background: var(--primary-50);
}

/* ============================================
   TABLES
   ============================================ */

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

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--primary-200);
    font-size: 13px;
}

.table th {
    background: var(--primary-50);
    font-weight: 600;
    color: var(--primary-600);
}

.table td {
    color: var(--primary-700);
}

.table tbody tr:hover {
    background: var(--primary-50);
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ============================================
   TASK LIST
   ============================================ */

.task-list {
    padding: 0;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--primary-100);
}

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

.task-checkbox {
    padding-top: 2px;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-800);
    margin: 0 0 6px 0;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.task-priority {
    color: var(--primary-400);
}

.task-priority.high {
    color: var(--accent-danger);
}

.task-priority.medium {
    color: var(--accent-warning);
}

.task-priority.low {
    color: var(--accent-success);
}

/* ============================================
   APPROVAL LIST
   ============================================ */

.approval-list {
    padding: 0;
}

.approval-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--primary-100);
}

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

.approval-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.approval-icon.leave {
    background: var(--accent-info-light);
    color: var(--accent-info);
}

.approval-icon.expense {
    background: var(--accent-warning-light);
    color: var(--accent-warning);
}

.approval-icon.project {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
}

.approval-content {
    flex: 1;
    min-width: 0;
}

.approval-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-800);
    margin: 0 0 4px 0;
}

.approval-desc {
    font-size: 13px;
    color: var(--primary-600);
    margin: 0 0 4px 0;
}

.approval-time {
    font-size: 12px;
    color: var(--primary-400);
}

.approval-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   ACTIVITY TIMELINE
   ============================================ */

.activity-timeline {
    padding: 16px 20px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-left: 2px solid var(--primary-200);
    margin-left: 18px;
    padding-left: 20px;
    position: relative;
}

.activity-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.activity-avatar {
    position: absolute;
    left: -19px;
}

.activity-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.activity-content {
    flex: 1;
    padding-top: 4px;
}

.activity-content p {
    font-size: 13px;
    color: var(--primary-700);
    margin: 0 0 4px 0;
}

.activity-content a {
    color: var(--accent-primary);
}

.activity-time {
    font-size: 12px;
    color: var(--primary-400);
}

/* ============================================
   TEAM LIST
   ============================================ */

.team-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.team-info {
    flex: 1;
}

.team-info h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-800);
    margin: 0;
}

.team-info span {
    font-size: 12px;
    color: var(--primary-500);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--accent-success);
}

.status-dot.away {
    background: var(--accent-warning);
}

.status-dot.offline {
    background: var(--primary-300);
}

/* ============================================
   SEARCH BOX
   ============================================ */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--primary-400);
}

.search-box input {
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--primary-300);
    border-radius: 6px;
    font-size: 13px;
    width: 200px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.project-card .card-body {
    padding: 20px;
}

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

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-900);
    margin: 0 0 4px 0;
}

.project-client {
    font-size: 13px;
    color: var(--primary-500);
    margin: 0 0 16px 0;
}

.project-progress {
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--primary-500);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-avatars {
    display: flex;
}

.team-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
}

.team-avatars img:first-child {
    margin-left: 0;
}

.more-members {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-200);
    color: var(--primary-600);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid #fff;
}

/* ============================================
   KANBAN BOARD
   ============================================ */

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-column {
    min-width: 300px;
    background: var(--primary-100);
    border-radius: 12px;
}

.kanban-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-title h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-700);
    margin: 0;
}

.status-dot.todo {
    background: var(--primary-400);
}

.status-dot.inprogress {
    background: var(--accent-primary);
}

.status-dot.review {
    background: var(--accent-warning);
}

.status-dot.done {
    background: var(--accent-success);
}

.kanban-cards {
    padding: 0 12px 12px;
}

.kanban-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--primary-200);
    cursor: pointer;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.kanban-card.completed {
    opacity: 0.7;
}

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

.card-title-mini {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-800);
    margin: 0 0 6px 0;
}

.card-desc {
    font-size: 12px;
    color: var(--primary-500);
    margin: 0 0 12px 0;
}

.card-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--primary-500);
}

.card-progress .progress {
    flex: 1;
}

.card-meta-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.assignee {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-600);
}

.assignee img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.due-date {
    color: var(--primary-500);
}

.priority {
    font-size: 12px;
}

.priority.high {
    color: var(--accent-danger);
}

.priority.medium {
    color: var(--accent-warning);
}

.priority.low {
    color: var(--accent-success);
}

/* ============================================
   CLIENT CARDS
   ============================================ */

.client-card .card-body {
    padding: 20px;
}

.client-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-badges {
    display: flex;
    gap: 6px;
}

.client-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-900);
    margin: 0 0 4px 0;
}

.client-industry {
    font-size: 13px;
    color: var(--primary-500);
    margin: 0 0 16px 0;
}

.client-stats {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--primary-50);
    border-radius: 8px;
    margin-bottom: 16px;
}

.client-stats .stat {
    flex: 1;
    text-align: center;
}

.client-stats .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-800);
}

.client-stats .stat-label {
    font-size: 11px;
    color: var(--primary-500);
}

.client-contact {
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-600);
    margin-bottom: 6px;
}

.contact-item i {
    width: 16px;
    color: var(--primary-400);
}

.client-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   BILL CARDS
   ============================================ */

.bill-card {
    background: #fff;
    border: 1px solid var(--primary-200);
    border-radius: 12px;
    padding: 16px;
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bill-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bill-due {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-warning);
}

.bill-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-800);
    margin: 0 0 4px 0;
}

.bill-vendor {
    font-size: 12px;
    color: var(--primary-500);
    margin: 0 0 12px 0;
}

.bill-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-900);
}

/* ============================================
   LEAVE BALANCE
   ============================================ */

.leave-balance-card .card-body {
    padding: 20px;
}

.leave-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}

.leave-icon.annual {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
}

.leave-icon.sick {
    background: var(--accent-danger-light);
    color: var(--accent-danger);
}

.leave-icon.personal {
    background: var(--accent-warning-light);
    color: var(--accent-warning);
}

.leave-icon.special {
    background: var(--accent-info-light);
    color: var(--accent-info);
}

/* ============================================
   ATTENDANCE SUMMARY
   ============================================ */

.today-summary {
    text-align: center;
}

.summary-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.summary-circle.success {
    background: var(--accent-success-light);
    color: var(--accent-success);
}

.summary-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-800);
    margin: 0 0 4px 0;
}

.summary-divider {
    height: 1px;
    background: var(--primary-200);
    margin: 16px 0;
}

.summary-stats {
    text-align: left;
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--primary-700);
}

.summary-stat strong {
    margin-left: auto;
    color: var(--primary-800);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.success {
    background: var(--accent-success);
}

.stat-dot.warning {
    background: var(--accent-warning);
}

.stat-dot.info {
    background: var(--accent-info);
}

.stat-dot.danger {
    background: var(--accent-danger);
}

.stat-dot.secondary {
    background: var(--primary-400);
}

/* ============================================
   INVOICE STATUS
   ============================================ */

.invoice-status-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-700);
}

.status-dot.paid {
    background: var(--accent-success);
}

.status-dot.pending {
    background: var(--accent-warning);
}

.status-dot.overdue {
    background: var(--accent-danger);
}

.status-dot.draft {
    background: var(--primary-400);
}

.status-value strong {
    font-size: 18px;
    color: var(--primary-800);
}

/* ============================================
   MILESTONE
   ============================================ */

.milestone-list {
    padding: 16px 20px;
}

.milestone-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--primary-100);
}

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

.milestone-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary-400);
}

.milestone-item.completed .milestone-icon {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: #fff;
}

.milestone-item.active .milestone-icon {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.milestone-content h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-800);
    margin: 0 0 2px 0;
}

.milestone-content span {
    font-size: 12px;
    color: var(--primary-500);
}

/* ============================================
   TIMELINE SUMMARY
   ============================================ */

.timeline-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.summary-row .label {
    color: var(--primary-500);
}

.summary-row .value {
    font-weight: 500;
    color: var(--primary-800);
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   LEGEND
   ============================================ */

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary-600);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ============================================
   COMPANY AVATAR
   ============================================ */

.company-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-avatar.bg-success {
    background: var(--accent-success);
}

.company-avatar.bg-warning {
    background: var(--accent-warning);
}

.company-avatar.bg-purple {
    background: #8b5cf6;
}

.company-avatar.bg-info {
    background: var(--accent-info);
}

.company-avatar.bg-pink {
    background: #ec4899;
}

/* ============================================
   CATEGORY ICON
   ============================================ */

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ============================================
   FILE ICON
   ============================================ */

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.file-icon.pdf {
    background: #fef2f2;
    color: #ef4444;
}

.file-icon.excel {
    background: #ecfdf5;
    color: #10b981;
}

/* ============================================
   SCHEDULE ICON
   ============================================ */

.schedule-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ============================================
   AVATAR GROUP
   ============================================ */

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-200);
    color: var(--primary-600);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid #fff;
}

/* ============================================
   REPORT CATEGORY CARD
   ============================================ */

.report-category-card {
    cursor: pointer;
    transition: all 0.2s;
}

.report-category-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.report-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress {
    height: 6px;
    background: var(--primary-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
}

.progress-bar.bg-success {
    background: var(--accent-success);
}

.progress-bar.bg-warning {
    background: var(--accent-warning);
}

.progress-bar.bg-danger {
    background: var(--accent-danger);
}

.progress-bar.bg-info {
    background: var(--accent-info);
}

.progress-bar.bg-purple {
    background: #8b5cf6;
}

.progress-bar.bg-pink {
    background: #ec4899;
}
