/* Eviction Manager \u2014 uStyle-inspired Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* uStyle-inspired palette */
  --navy: #141424;
  --navy-75: #4f4f5b;
  --navy-50: #898991;
  --navy-25: #c4c4c8;
  --blue: #84a6ff;
  --blue-75: #a3bcff;
  --blue-50: #c1d3ff;
  --blue-25: #e0e9ff;
  --green: #2aaa5b;
  --green-light: #91ca50;
  --green-25: #e3f2d3;
  --red: #d64226;
  --red-light: #ff7585;
  --red-25: #ffdde0;
  --yellow: #ffd555;
  --yellow-25: #fff4d5;
  --orange: #ffaa55;
  --purple: #ac96de;
  --purple-25: #eae5f7;
  /* Grays */
  --grey-darker: #53535e;
  --grey-dark: #7c7c84;
  --grey: #a7a7ac;
  --grey-light: #c6c6c8;
  --grey-super-light: #e2e2e2;
  --grey-bg: #f5f5f7;
  --white: #ffffff;
  /* Functional */
  --bg: var(--grey-bg);
  --surface: var(--white);
  --border: var(--grey-super-light);
  --text: var(--navy);
  --text-muted: var(--navy-75);
  --text-light: var(--grey-dark);
  --primary: #3366ff;
  --primary-hover: #2952cc;
  --primary-light: var(--blue-25);
  --success: var(--green);
  --warning: #e6a817;
  --danger: var(--red);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(20,20,36,0.05);
  --shadow: 0 1px 3px rgba(20,20,36,0.08), 0 1px 2px rgba(20,20,36,0.04);
  --shadow-md: 0 4px 6px rgba(20,20,36,0.06), 0 2px 4px rgba(20,20,36,0.04);
  --shadow-lg: 0 10px 15px rgba(20,20,36,0.06), 0 4px 6px rgba(20,20,36,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* \u2500\u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.header { background: var(--navy); color: var(--white); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.header-left { display: flex; align-items: center; gap: 16px; }
.header h1 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.firm-badge { background: rgba(132,166,255,0.15); color: var(--blue); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header .btn { font-size: 12px; padding: 6px 14px; }
.header .btn-outline { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.header .btn-outline:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); color: #fff; }
.header .btn-primary { background: var(--primary); }

/* \u2500\u2500\u2500 Nav bar (overview page link) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.nav-link { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s; }
.nav-link:hover, .nav-link.active { color: #fff; }

/* \u2500\u2500\u2500 Buttons \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s; text-decoration: none; line-height: 1.4; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow); }
.btn-outline { background: var(--white); color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--grey); color: var(--text); background: var(--grey-bg); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c23b22; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #239a50; }
.btn-warning { background: var(--warning); color: var(--navy); }
.btn-ghost { background: none; border: none; color: var(--primary); font-weight: 600; padding: 6px 10px; }
.btn-ghost:hover { background: var(--primary-light); border-radius: var(--radius); }

/* \u2500\u2500\u2500 Layout \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.container { max-width: 1320px; margin: 0 auto; padding: 24px 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* \u2500\u2500\u2500 Stat Cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card .label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.stat-card .sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* \u2500\u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 20px; box-shadow: var(--shadow); }
.panel-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-header h2 { font-size: 15px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.panel-body { padding: 20px 24px; }

/* \u2500\u2500\u2500 Table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.6px; padding: 12px 16px; border-bottom: 2px solid var(--border); font-weight: 600; background: var(--grey-bg); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; color: var(--navy); }
tr:hover td { background: var(--blue-25); }
tr:last-child td { border-bottom: none; }
td strong { font-weight: 600; }
td small { color: var(--text-light); font-size: 12px; }

/* \u2500\u2500\u2500 Phase Badge \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.phase-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.phase-intake { background: var(--purple-25); color: #6b5ba7; }
.phase-notice { background: var(--yellow-25); color: #a17e12; }
.phase-complaint { background: #fff3e0; color: #c67d17; }
.phase-service { background: var(--blue-25); color: #3d5eaf; }
.phase-response { background: #e8f0fe; color: #3366ff; }
.phase-judgment { background: var(--green-25); color: #2a7a3f; }
.phase-writ { background: #e0f7f5; color: #1a7a6d; }
.phase-closed { background: #f0f0f2; color: var(--grey-dark); }
.status-active { color: var(--success); font-weight: 600; }
.status-won { color: var(--primary); font-weight: 600; }
.status-dismissed { color: var(--danger); font-weight: 600; }
.status-settled { color: var(--warning); font-weight: 600; }

/* \u2500\u2500\u2500 Deadline Urgency \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.deadline-overdue { color: var(--danger); font-weight: 600; }
.deadline-today { color: var(--warning); font-weight: 600; }
.deadline-upcoming { color: var(--success); }
.deadline-item { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.deadline-item:last-child { border-bottom: none; }
.deadline-item small { display: block; color: var(--text-light); margin-top: 2px; }

/* \u2500\u2500\u2500 Phase Stepper \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.phase-stepper { display: flex; gap: 4px; margin: 20px 0; }
.phase-step { flex: 1; text-align: center; padding: 10px 6px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; background: var(--grey-bg); border: 1px solid var(--border); color: var(--grey); position: relative; transition: all 0.2s; }
.phase-step.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow); }
.phase-step.completed { background: var(--green-25); border-color: #b5deb5; color: var(--green); }

/* \u2500\u2500\u2500 Tabs \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 4px; }
.tab { padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; margin-bottom: -2px; border-radius: 6px 6px 0 0; }
.tab:hover { color: var(--text); background: var(--grey-bg); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* \u2500\u2500\u2500 Forms \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius); color: var(--text); font-size: 14px; outline: none;
  font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,102,255,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--grey); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.inline-edit { background: transparent; border: 1px solid transparent; padding: 4px 8px; font-size: 13px; font-family: inherit; color: var(--text); border-radius: 4px; transition: all 0.15s; }
.inline-edit:hover { border-color: var(--grey-light); background: var(--grey-bg); }
.inline-edit:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 2px rgba(51,102,255,0.1); outline: none; }

/* \u2500\u2500\u2500 Modal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20,20,36,0.4); backdrop-filter: blur(2px); z-index: 1000; align-items: flex-start; justify-content: center; padding: 40px; overflow-y: auto; }
.modal-overlay.show { display: flex; }
.modal { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 900px; width: 100%; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal-header h2 { font-size: 18px; font-weight: 700; color: var(--navy); }
.modal-close { background: none; border: none; color: var(--grey); font-size: 24px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.15s; }
.modal-close:hover { color: var(--text); background: var(--grey-bg); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* \u2500\u2500\u2500 Timeline \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.timeline-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.timeline-dot.phase_change { background: var(--primary); }
.timeline-dot.document_uploaded { background: var(--purple); }
.timeline-dot.document_generated { background: var(--green); }
.timeline-dot.deadline_set { background: var(--warning); }
.timeline-dot.deadline_met { background: var(--success); }
.timeline-dot.note { background: var(--grey); }
.timeline-dot.status_change { background: var(--danger); }
.timeline-text { font-size: 13px; color: var(--text); }
.timeline-date { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* \u2500\u2500\u2500 Filters \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters select, .filters input { padding: 8px 12px; background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius); color: var(--text); font-size: 13px; font-family: inherit; }
.filters select:focus, .filters input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(51,102,255,0.1); }

/* \u2500\u2500\u2500 Empty State \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty p { font-size: 14px; margin-top: 8px; }

/* Welcome empty state */
.welcome-empty { text-align: center; padding: 64px 32px; }
.welcome-empty-icon { font-size: 48px; margin-bottom: 16px; }
.welcome-empty h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.welcome-empty p { font-size: 14px; color: var(--text-light); max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }
.welcome-empty .welcome-steps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; text-align: left; max-width: 640px; margin-left: auto; margin-right: auto; }
.welcome-empty .welcome-step { flex: 1; min-width: 180px; padding: 20px; background: var(--grey-bg); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.welcome-empty .welcome-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.welcome-empty .welcome-step h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.welcome-empty .welcome-step p { font-size: 12px; color: var(--text-light); margin: 0; }

/* \u2500\u2500\u2500 Toast \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 20px; font-size: 14px; z-index: 9999; box-shadow: var(--shadow-md); animation: slideIn 0.3s; font-weight: 500; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* \u2500\u2500\u2500 Section divider \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-light); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* \u2500\u2500\u2500 Overview Page \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.overview-hero { background: var(--navy); color: var(--white); padding: 48px 0; }
.overview-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.overview-hero p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 600px; line-height: 1.6; }
.overview-hero .firm-badge { display: inline-block; margin-bottom: 16px; }

.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.feature-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }

.phase-flow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.phase-flow-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 20px; font-size: 13px; font-weight: 600; color: var(--navy); text-align: center; flex: 1; min-width: 100px; box-shadow: var(--shadow-sm); }
.phase-flow-arrow { color: var(--grey); font-size: 16px; }

.overview-section { padding: 48px 0; }
.overview-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.overview-section .subtitle { font-size: 14px; color: var(--text-light); margin-bottom: 32px; line-height: 1.6; }

.checklist-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--white); }
.checklist-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.checklist-icon.done { background: var(--green-25); color: var(--green); }
.checklist-icon.pending { background: var(--blue-25); color: var(--primary); }
.checklist-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.checklist-item p { font-size: 12px; color: var(--text-light); }

.cta-section { background: var(--navy); border-radius: var(--radius-lg); padding: 40px; text-align: center; color: var(--white); margin-top: 48px; }
.cta-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.cta-section .btn { font-size: 15px; padding: 12px 32px; }

/* \u2500\u2500\u2500 Calendar Grid \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-header { padding: 10px 8px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-light); background: var(--grey-bg); border-bottom: 1px solid var(--border); }
.cal-day { min-height: 90px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; position: relative; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--blue-25); }
.cal-day-empty { background: var(--grey-bg); cursor: default; }
.cal-day-empty:hover { background: var(--grey-bg); }
.cal-day-today { background: #fffbe6; }
.cal-day-today:hover { background: #fff4cc; }
.cal-day-num { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.cal-day-today .cal-day-num { color: var(--primary); font-weight: 700; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal-dot-overdue { background: var(--danger); }
.cal-dot-today { background: var(--warning); }
.cal-dot-upcoming { background: var(--success); }
.cal-dot-done { background: var(--grey-light); }
.cal-dot-hearing { background: var(--primary); }
.cal-dot-more { font-size: 10px; color: var(--text-light); font-weight: 600; }

/* \u2500\u2500\u2500 Week View \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.week-day { padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.week-day:hover { background: var(--blue-25); }
.week-day:last-child { border-bottom: none; }
.week-day-today { background: #fffbe6; }
.week-day-today:hover { background: #fff4cc; }
.week-day-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.week-day-header strong { font-size: 14px; color: var(--navy); }
.week-day-header span { font-size: 12px; color: var(--text-light); }
.week-day-items { display: flex; flex-direction: column; gap: 6px; }
.week-day-empty { font-size: 12px; color: var(--grey); font-style: italic; }

/* \u2500\u2500\u2500 Calendar Events \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.cal-event { padding: 6px 10px; border-radius: 6px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.cal-event-label { font-weight: 600; }
.cal-event-case { font-size: 11px; color: var(--text-light); }
.cal-event-overdue { background: var(--red-25); border-left: 3px solid var(--danger); }
.cal-event-today { background: var(--yellow-25); border-left: 3px solid var(--warning); }
.cal-event-upcoming { background: var(--green-25); border-left: 3px solid var(--success); }
.cal-event-done { background: var(--grey-bg); border-left: 3px solid var(--grey-light); opacity: 0.6; }
.cal-event-hearing { background: var(--blue-25); border-left: 3px solid var(--primary); }

/* \u2500\u2500\u2500 Day Detail Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.day-detail-item { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.day-detail-hearing { background: var(--blue-25); border-left: 3px solid var(--primary); }
.day-detail-overdue { background: var(--red-25); border-left: 3px solid var(--danger); }
.day-detail-today { background: var(--yellow-25); border-left: 3px solid var(--warning); }
.day-detail-upcoming { background: var(--green-25); border-left: 3px solid var(--success); }
.day-detail-done { background: var(--grey-bg); border-left: 3px solid var(--grey-light); opacity: 0.6; }
.day-detail-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap; letter-spacing: 0.4px; }
.day-detail-badge-overdue { background: var(--danger); color: #fff; }
.day-detail-badge-today { background: var(--warning); color: var(--navy); }
.day-detail-badge-upcoming { background: var(--success); color: #fff; }
.day-detail-badge-done { background: var(--grey-light); color: var(--text-light); }

/* \u2500\u2500\u2500 Hearing Badge \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.hearing-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; background: var(--grey-bg); color: var(--text-light); }
.hearing-success { background: var(--green-25); color: var(--green); }
.hearing-danger { background: var(--red-25); color: var(--danger); }
.hearing-warning { background: var(--yellow-25); color: var(--warning); }

/* \u2500\u2500\u2500 Timeline dots for new event types \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.timeline-dot.hearing_scheduled { background: var(--primary); }
.timeline-dot.hearing_updated { background: var(--blue); }
.timeline-dot.hearing_deleted { background: var(--grey); }
.timeline-dot.cost_added { background: var(--orange); }
.timeline-dot.cost_removed { background: var(--grey); }

/* \u2500\u2500\u2500 Phase Action Cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.action-card { border-radius: var(--radius-lg); padding: 20px 24px; margin-top: 16px; border: 1px solid var(--border); }
.action-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.action-card-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; background: var(--primary); color: #fff; }
.action-card-header h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.action-card-header p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin: 0; }
.action-card-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.action-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.action-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--success); cursor: pointer; }
.action-check input[type="checkbox"]:checked + span, .action-check input:checked ~ * { color: var(--text-light); }
.action-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.action-card-note { font-size: 12px; color: var(--text-light); font-style: italic; }

/* Phase-specific action card colors */
.action-card-intake { background: var(--purple-25); border-color: #d4cbea; }
.action-card-notice { background: var(--yellow-25); border-color: #ffe6a0; }
.action-card-complaint { background: #fff3e0; border-color: #ffd699; }
.action-card-service { background: var(--blue-25); border-color: #b3cbff; }
.action-card-response { background: #e8f0fe; border-color: #a8c4ff; }
.action-card-judgment { background: var(--green-25); border-color: #b5deb5; }
.action-card-writ { background: #e0f7f5; border-color: #a0ddd5; }
.action-card-closed { background: var(--grey-bg); border-color: var(--border); }

/* \u2500\u2500\u2500 Countdown Timer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.countdown { padding: 10px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; margin-bottom: 16px; text-align: center; }
.countdown-active { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.countdown-today { background: var(--yellow-25); color: #a17e12; border: 1px solid #ffe082; }
.countdown-expired { background: var(--red-25); color: var(--danger); border: 1px solid #ef9a9a; }
.countdown-pending { background: var(--grey-bg); color: var(--text-light); border: 1px solid var(--border); }

/* \u2500\u2500\u2500 Sheriff Tracking \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.sheriff-tracking { margin-top: 16px; padding: 16px; background: rgba(255,255,255,0.5); border-radius: var(--radius); border: 1px solid var(--border); }

/* \u2500\u2500\u2500 Stat card attention state \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.stat-card-attention { border-color: var(--danger); background: var(--red-25); }
.stat-card-attention .value { color: var(--danger); }

/* \u2500\u2500\u2500 Welcome Tour \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.tour-backdrop { position: fixed; inset: 0; background: rgba(20,20,36,0.55); z-index: 9000; }
.tour-card { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--white); border-radius: var(--radius-lg); max-width: 520px; width: 90%; z-index: 9010; box-shadow: 0 20px 60px rgba(20,20,36,0.3); overflow: hidden; animation: tourSlideIn 0.3s ease; }
@keyframes tourSlideIn { from { opacity: 0; transform: translate(-50%,-50%) scale(0.95); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.tour-progress { display: flex; justify-content: center; gap: 6px; padding: 20px 24px 0; }
.tour-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-super-light); transition: all 0.2s; }
.tour-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.tour-dot.done { background: var(--success); }
.tour-icon { font-size: 40px; text-align: center; margin: 16px 0 8px; }
.tour-title { font-size: 20px; font-weight: 700; text-align: center; color: var(--navy); padding: 0 24px; margin-bottom: 12px; }
.tour-body { font-size: 14px; line-height: 1.7; color: var(--text-muted); padding: 0 24px; text-align: center; }
.tour-counter { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 12px; }
.tour-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); margin-top: 20px; }
.tour-highlight { position: relative; z-index: 9002; box-shadow: 0 0 0 4px var(--primary), 0 0 0 8px rgba(51,102,255,0.2); border-radius: var(--radius); transition: box-shadow 0.3s; }

/* \u2500\u2500\u2500 Print styles for calendar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
@media print {
  .header, .btn, .nav-link, .firm-badge, #dayDetail { display: none !important; }
  .container { padding: 0; max-width: 100%; }
  .panel { border: 1px solid #ddd; box-shadow: none; }
  .cal-day { min-height: 60px; padding: 4px; }
  .cal-day:hover { background: transparent; }
  .cal-dot { width: 6px; height: 6px; }
  .week-day:hover { background: transparent; }
}

/* \u2500\u2500\u2500 Attorney Status \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.attorney-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.attorney-pending { background: var(--yellow-25); color: #856404; }
.attorney-accepted { background: var(--green-25); color: #155724; }
.attorney-declined { background: var(--red-25); color: #721c24; }
.attorney-none { background: var(--grey-bg); color: var(--text-light); }
.timeline-dot.attorney_action { background: var(--purple); }
.timeline-dot.attorney_assigned { background: var(--blue); }

/* \u2500\u2500\u2500 Responsive \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .phase-stepper { flex-wrap: wrap; }
  .phase-flow { flex-direction: column; }
  .phase-flow-arrow { transform: rotate(90deg); }
  .header { padding: 0 16px; flex-direction: column; height: auto; padding: 12px 16px; gap: 8px; }
  .container { padding: 16px; }
  .overview-hero { padding: 32px 0; }
  .overview-hero h1 { font-size: 24px; }
}
