:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Colors */
  --primary-base: #2b414f;
  --modal-base: #30404e;
  --primary-400: #466a81;
  --primary-600: #22343f;
  --secondary-base: #c6b98b;
  --tertiary-base: #99d6ff;
  --neutral-base: #8e8f8f;
  --neutral-300: #c0c1c1;
  --neutral-400: #afafb0;
  --neutral-600: #68696a;
  --base-white: #ffffff;
  --base-black: #030712;
  --info-base: #295bff;
  --Danger-base: #f2415a;
  --primary-100: #cddbe4;
  --white: #ffffff;
  --success: #e7f8f2;

  /* Text */
  --text-primary: #333f4c;

  --base-white: #ffffff;
  --positive-base: #62fd76;
  --neutral-base: #8e8f8f;
  --space-xs: 4px;
  --date-span-color: #cdd0d4;
  --space-sm: 8px;
  --space-md: 10px;
  --space-lg: 12px;
  --space-xl: 20px;
  --radius-sm: 4px;
  --radius-lg: 8px;

  /* Table */
  --secondary-heading: #565b66;

  /* Icon */
  --icon-secondary: #737780;
}

* {
  box-sizing: border-box;
  /* margin-bottom: 15px; */
}
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  /* min-height: 1024px; */
  font-family: 'Inter', sans-serif !important;;
}

body {
  background-color: #ffffff;
  margin: 0;
  /* display: flex;
  place-items: center; */
  min-width: 320px;
  min-height: 100vh;
  /* overflow: hidden; */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ========== Utility / Common Classes ========== */
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.col {
  flex-direction: column;
}
.row {
  flex-direction: row;
}
.justify-start {
  justify-content: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.gap-4 {
  gap: 4px;
}
.gap-8 {
  gap: 8px;
}
.gap-10 {
  gap: 10px;
}
.gap-12 {
  gap: 12px;
}
.gap-24 {
  gap: 24px;
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--base-white);
}
.text-neutral-300 {
  color: var(--neutral-300);
}

.bg-white {
  background-color: var(--base-white);
}

/* Isolate AnnualPlanView baselineTable from OS theme changes */
[class*="baselineTable"] td {
  color: var(--base-white) !important;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
  color: #000000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000000;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
    --date-span-color: #68696a;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

@media print {
  body {
    -webkit-print-color-adjust: exact !important; /* Chrome, Safari */
    print-color-adjust: exact !important; /* Modern browsers */
    color-adjust: exact !important; /* Older syntax */
  }

  /* Hide sidebar and navigation elements during print */
  .print-hide {
    display: none !important;
  }

  /* Hide left panel containers */
  .panelContainer,
  .slimPanelContainer {
    display: none !important;
  }

  /* Adjust right panel to use full width */
  .rightPanel {
    margin-left: 0 !important;
    padding: 20px !important;
    width: 100% !important;
  }

  /* Ensure container uses full width */
  .container {
    width: 100% !important;
  }

  /* Hide buttons and interactive elements */
  button:not(.print-keep) {
    display: none !important;
  }

  /* Optimize page breaks */
  .quarter-card,
  .annual-plan-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Ensure proper font sizes and colors for print */
  * {
    color: #000 !important;
    background-color: white !important;
  }

  /* Keep essential text colors */
  .print-title,
  .quarter-title,
  .metric-label {
    color: #2b414f !important;
  }

  /* Annual Plan specific print styles */
  .quarterCard {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 20px;
  }

  .quarterCardTitle {
    color: #2b414f !important;
    font-weight: bold !important;
  }

  .quarterMetricsTable {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .quarterMetricsTable th,
  .quarterMetricsTable td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
  }

  .quarterMetricsTable th {
    background-color: #f5f5f5 !important;
  }

  /* Add print title */
  .annualPlanHeaderTop::before {
    content: "Annual Plan Report";
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2b414f !important;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2b414f;
  }
}

/* Quill Editor Styles */
.ql-editor {
  color: #000000 !important;
}

.ql-container .ql-snow {
  border: none !important;
}
