/*
 * style.css — Momentos
 * Brand-aligned with estandar.org: elegant dark theme, clean typography
 */

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Design Tokens ─── */
:root {
  --bg-dark: #1c1c1c;
  --bg-panel: #242424;
  --bg-input: #2e2e2e;
  --bg-hover: #333;

  --text-primary: #fafafa;
  --text-secondary: #999;
  --text-muted: #666;

  --accent: #dcdcdc;
  --accent-hover: #c8c8c8;
  --accent-text: #000;

  --cta: #fafafa;
  --cta-hover: #e0e0e0;

  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;

  --border: #333;
  --border-light: #3a3a3a;

  --radius: 8px;
  --radius-sm: 6px;

  --sidebar-width: 300px;
  --header-height: 56px;
}

/* ─── Base ─── */
html, body {
  height: 100%;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ─── App Layout ─── */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ─── Header ─── */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

#header h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

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

/* ─── Main Layout ─── */
#main {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

#calendar-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

#event-list-panel {
  width: var(--sidebar-width);
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* ─── Calendar Navigation ─── */
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

#monthLabel {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  min-width: 200px;
  text-align: center;
}

/* ─── Calendar Grid ─── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
  min-height: 0;
  max-width: 100%;
}

.calendar-header-cell {
  background: var(--bg-dark);
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.calendar-cell {
  background: var(--bg-panel);
  min-height: 72px;
  padding: 6px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
  display: flex;
  flex-direction: column;
}

.calendar-cell:hover {
  background: var(--bg-hover);
}

.calendar-cell.empty {
  background: var(--bg-dark);
  cursor: default;
}

.calendar-cell.other-month {
  opacity: 0.3;
}

.day-number {
  font-size: 13px;
  font-weight: 500;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

.calendar-cell.today .day-number {
  background: var(--cta);
  color: var(--accent-text);
  font-weight: 700;
}

.event-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-label {
  font-size: 10px;
  line-height: 1.2;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 2px;
  color: var(--accent-text);
  font-weight: 500;
}

.event-more {
  font-size: 9px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
  font-size: 14px;
}

/* ─── Event List Panel ─── */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
}

.event-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.event-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
}

.event-list-item:hover {
  background: var(--bg-hover);
}

.event-list-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

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

.event-list-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-list-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.event-list-location {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recurrence-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--warning);
  margin-left: 4px;
}

.panel-actions {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Form Panel (slide-in) ─── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  transition: opacity 0.2s;
}

.form-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.form-panel.open {
  transform: translateX(0);
}

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

.form-panel-header h3 {
  font-size: 16px;
  font-weight: 600;
}

#event-form {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Form Elements ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group.half {
  flex: 1;
}

input[type="text"],
input[type="date"],
input[type="time"],
textarea,
select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

select {
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cta);
}

.input-with-btn {
  display: flex;
  gap: 6px;
}

.input-with-btn input {
  flex: 1;
}

.field-error {
  font-size: 12px;
  color: var(--error);
}

.form-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

/* ─── Mini Map ─── */
.mini-map {
  height: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 6px;
}

/* ─── Buttons ─── */
.btn-primary {
  background: var(--cta);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

.btn-icon {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-icon:hover {
  background: var(--bg-hover);
}

.btn-nav {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s;
}

.btn-nav:hover {
  background: var(--bg-hover);
}

.btn-small {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-small:hover {
  background: var(--bg-hover);
}

.btn-full {
  width: 100%;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-panel);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Footer ─── */
#footer {
  padding: 8px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  flex-shrink: 0;
}

#footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

#footer a:hover {
  color: var(--text-primary);
}

/* ─── Utility ─── */
.hidden {
  display: none !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  #header {
    padding: 0 12px;
  }

  .header-left .brand {
    display: none;
  }

  #header h1 {
    font-size: 14px;
  }

  #main {
    flex-direction: column;
    overflow-y: auto;
  }

  .main-content {
    flex: none;
    overflow: visible;
  }

  #calendar-section {
    padding: 12px;
    flex: none;
    min-width: 0;
    overflow-x: hidden;
  }

  #event-list-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .calendar-cell {
    min-height: 52px;
    padding: 4px;
  }

  .day-number {
    font-size: 12px;
    width: 22px;
    height: 22px;
  }

  .event-label {
    display: none;
  }

  .calendar-nav {
    gap: 8px;
  }

  #monthLabel {
    font-size: 16px;
    min-width: 0;
    flex: 1;
  }

  .form-panel {
    width: 100%;
  }

  .btn-secondary[data-i18n="btn_print"] {
    display: none;
  }
}

/* ─── Print Styles ─── */
@media print {
  body {
    background: white;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #app > *:not(#print-view) {
    display: none !important;
  }

  #print-view {
    display: block !important;
    padding: 0;
  }

  .print-view {
    font-family: 'Inter Tight', -apple-system, sans-serif;
  }

  .print-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #111;
    margin-bottom: 16px;
  }

  .print-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  .print-header .print-date-range {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
  }

  .print-event {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 16px;
  }

  .print-event-date {
    font-size: 12px;
    font-weight: 600;
    min-width: 100px;
    color: #333;
  }

  .print-event-time {
    font-size: 12px;
    min-width: 90px;
    color: #666;
  }

  .print-event-details {
    flex: 1;
  }

  .print-event-title {
    font-size: 13px;
    font-weight: 600;
  }

  .print-event-location {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
  }

  .print-event-recurrence {
    font-size: 10px;
    color: #999;
    font-style: italic;
  }

  .print-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    margin-top: 16px;
    font-size: 10px;
    color: #999;
  }

  /* Dynamic sizing — JS adds data-event-count to print-view */
  .print-view[data-event-count="large"] .print-event {
    padding: 4px 0;
  }

  .print-view[data-event-count="large"] .print-event-title {
    font-size: 11px;
  }
}

/* ─── Print view (hidden on screen) ─── */
.print-view {
  display: none;
}

/* ═══════════════════════════════════════════
   PM FEATURES: Status, Dependencies, Milestones, Gantt
   ═══════════════════════════════════════════ */

/* ─── View Switcher ─── */
.view-switcher {
  display: flex;
  gap: 0;
  padding: 12px 20px 0;
  flex-shrink: 0;
}

.view-tab {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 6px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-tab:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}

.view-tab:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.view-tab.active {
  background: var(--cta);
  color: var(--accent-text);
  border-color: var(--cta);
  font-weight: 600;
}

/* ─── Status Icons on Calendar ─── */
.event-status-icon {
  font-size: 9px;
  margin-right: 2px;
  vertical-align: middle;
}

.event-status-icon.status-done {
  color: var(--success);
}

.event-status-icon.status-in-progress {
  color: var(--warning);
}

.event-status-icon.status-pending {
  color: var(--text-muted);
}

.event-dep-icon {
  font-size: 8px;
  margin-left: 2px;
  opacity: 0.7;
}

/* ─── Event List Status ─── */
.event-list-status {
  font-size: 11px;
  margin-right: 4px;
}

.event-list-status.status-done {
  color: var(--success);
}

.event-list-status.status-in-progress {
  color: var(--warning);
}

.status-done-dot {
  box-shadow: 0 0 0 2px var(--success);
}

.dep-badge {
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ─── Form Divider ─── */
.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

/* ─── Form Section Header ─── */
.form-section-header {
  margin: 8px 0 4px;
}

.form-section-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 8px;
}

.form-section-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 4px;
}

/* ─── Field & Panel Hints ─── */
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.3;
}

.panel-hint,
.section-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.3;
}

/* ─── Dependency Picker ─── */
.dependency-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.dep-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.dep-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.dep-event-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dep-type-label {
  font-size: 10px;
  color: var(--text-secondary);
  padding: 1px 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  white-space: nowrap;
}

.dep-remove {
  width: 20px;
  height: 20px;
  font-size: 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dep-remove:hover {
  color: var(--error);
}

.dep-add-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dep-event-select,
.dep-type-select {
  padding: 4px 6px;
  font-size: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.dep-event-select {
  flex: 1;
  min-width: 0;
}

.dep-type-select {
  width: 100px;
}

/* ─── Milestone Section ─── */
.milestone-section {
  border-top: 1px solid var(--border);
  padding: 8px;
}

.milestone-header {
  border-bottom: none;
  padding: 8px;
  cursor: pointer;
}

.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}

.milestone-item:hover {
  background: var(--bg-hover);
}

.milestone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.milestone-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  outline: none;
  cursor: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
  border-radius: 2px;
}

.milestone-name:focus {
  background: var(--bg-input);
}

.milestone-progress-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.milestone-progress-bar {
  width: 48px;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.milestone-progress-fill {
  height: 100%;
  background: var(--text-secondary);
  border-radius: 3px;
  transition: width 0.3s;
}

.milestone-progress-fill.complete {
  background: var(--success);
}

.milestone-progress-label {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.milestone-delete {
  width: 20px;
  height: 20px;
  font-size: 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.milestone-item:hover .milestone-delete {
  opacity: 1;
}

.milestone-delete:hover {
  color: var(--error);
}

/* ─── Gantt Chart ─── */
#gantt-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  overflow: hidden;
  min-height: 300px;
}

.gantt-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.gantt-container {
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.gantt-scroll-wrapper {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.gantt-svg {
  display: block;
}

/* SVG Gantt styles */
.gantt-weekend {
  fill: rgba(255, 255, 255, 0.02);
}

.gantt-grid-line {
  stroke: var(--border);
  stroke-width: 0.5;
}

.gantt-date-text {
  fill: var(--text-muted);
  font-size: 10px;
  font-family: 'Inter Tight', sans-serif;
}

.gantt-today-line {
  stroke: var(--error);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.gantt-row {
  cursor: pointer;
}

.gantt-row.even {
  fill: var(--bg-panel);
}

.gantt-row.odd {
  fill: rgba(255, 255, 255, 0.015);
}

.gantt-milestone-row {
  fill: var(--bg-dark);
}

.gantt-milestone-text {
  fill: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
}

.gantt-label-text {
  fill: var(--text-secondary);
  font-size: 11px;
  font-family: 'Inter Tight', sans-serif;
}

.gantt-bar {
  cursor: pointer;
  transition: opacity 0.15s;
}

.gantt-bar:hover {
  opacity: 1 !important;
  filter: brightness(1.15);
}

.gantt-bar-status {
  fill: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-weight: 700;
}

.gantt-arrow {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
}

.gantt-arrowhead {
  fill: var(--text-muted);
}

/* ─── Print Milestone/Status Extensions ─── */
@media print {
  .print-event-status {
    min-width: 20px;
    text-align: center;
    font-size: 12px;
  }

  .print-status-done {
    color: #22c55e;
  }

  .print-status-progress {
    color: #eab308;
  }

  .print-milestone-section {
    margin-bottom: 16px;
  }

  .print-milestone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 4px;
  }

  .print-milestone-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .print-milestone-percent {
    font-size: 11px;
    color: #666;
    margin-left: auto;
  }

  .print-event-deps {
    font-size: 10px;
    color: #888;
    font-style: italic;
    margin-top: 2px;
  }
}

/* ─── Responsive: Gantt + Milestones ─── */
@media (max-width: 768px) {
  .view-switcher {
    padding: 8px 12px 0;
  }

  #gantt-section {
    padding: 8px 12px;
  }

  .gantt-controls {
    gap: 4px;
  }

  .milestone-progress-bar {
    width: 36px;
  }
}
