/* Salary & Hourly Pay Calculator Styles - Exact Clone & Design System */
:root {
  --sal-navy: #1b365d;
  --sal-blue-header: #24588e;
  --sal-blue-subhdr: #23497c;
  --sal-blue-link: #0844a4;
  --sal-blue-link-hover: #002277;
  --sal-green-header: #38761d;
  --sal-green-btn: #2f8027;
  --sal-green-btn-hover: #266b20;
  --sal-gray-btn: #888888;
  --sal-gray-btn-hover: #666666;
  --sal-border: #cbd5e1;
  --sal-border-card: #d1d5db;
  --sal-bg-form: #f4f4f4;
  --sal-bg-light: #f8fafc;
  --sal-bg-alt: #f1f5f9;
  --sal-text: #333333;
  --sal-text-dark: #0f172a;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--sal-text);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */
.site-header {
  background-color: var(--header-bg, #003366) !important;
  height: 48px;
  width: 100%;
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.site-header .header-container {
  max-width: 1040px;
  height: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.site-header .header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .logo {
  text-decoration: none !important;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  line-height: 1;
}

.site-header .logo-white {
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header .logo-green {
  color: var(--logo-green, #82c341) !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Top Search in Header */
.k-top-search-wrap {
  position: relative;
}

.k-top-search-input {
  width: 220px;
  height: 26px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #ffffff;
  border-radius: 3px;
  outline: none;
}

.k-top-search-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.5);
}

/* Search Dropdown */
.k-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 5000;
  display: none;
}

.k-search-dropdown.show {
  display: block;
}

.k-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.k-search-item:hover {
  background-color: #f1f5f9;
  color: #0844a4;
}

/* ==========================================================================
   MAIN PAGE LAYOUT
   ========================================================================== */
.k-page-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

/* Breadcrumbs Row */
.k-breadcrumbs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.k-breadcrumbs {
  font-size: 13px;
  color: var(--sal-blue-link);
}

.k-breadcrumbs a {
  color: var(--sal-blue-link);
  text-decoration: none;
}

.k-breadcrumbs a:hover {
  text-decoration: underline;
}

.k-breadcrumbs span {
  color: #64748b;
  margin: 0 3px;
}

.k-breadcrumbs .crumb-current {
  color: #334155;
  font-weight: 600;
}

.k-top-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.k-top-link-btn {
  background: none;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--sal-blue-link);
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.k-top-link-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--sal-blue-link-hover);
}

/* Page Header & Intro matching Image 2 */
.k-page-title {
  font-size: 26px;
  font-weight: bold;
  color: #1b365d;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.k-page-intro {
  font-size: 13px;
  line-height: 1.55;
  color: #333333;
  margin: 0 0 14px 0;
}

/* Main 2-Column Grid (Left: Calculator & Content, Right: Sidebar) */
.k-main-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
}

.k-calc-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   SECTION BAR matching Image 2
   ========================================================================== */
.k-section-bar {
  background-color: #24588e;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
  user-select: none;
}

.k-circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #24588e;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
}

/* ==========================================================================
   CALCULATOR INTERACTIVE ROW (Form Card + Results Card side by side)
   ========================================================================== */
.k-calculator-interactive-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

/* Form Card */
.k-form-card {
  background-color: var(--sal-bg-form);
  border: 1px solid var(--sal-border-card);
  padding: 12px;
  border-radius: 3px;
  font-size: 12.5px;
}

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

.k-form-table tr {
  margin-bottom: 8px;
}

.k-form-table td {
  padding: 5px 3px;
  vertical-align: middle;
}

.k-form-table td.label-col {
  color: #222222;
  white-space: nowrap;
  font-size: 12.5px;
}

.k-form-table td.input-col {
  text-align: right;
}

.k-input-money-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.k-input-money-wrap span {
  font-size: 13px;
  font-weight: bold;
  color: #333333;
}

.k-input-text {
  width: 60px;
  height: 24px;
  padding: 2px 4px;
  font-size: 12.5px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  text-align: left;
  box-sizing: border-box;
  background-color: #ffffff;
}

.k-input-sm {
  width: 54px;
  height: 24px;
  padding: 2px 4px;
  font-size: 12.5px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  text-align: left;
  box-sizing: border-box;
  background-color: #ffffff;
}

.k-select-sm {
  height: 24px;
  padding: 1px 3px;
  font-size: 12px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  background-color: #ffffff;
}

/* Button Row */
.k-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-left: 2px;
}

.k-btn-calculate {
  background-color: #2d6930;
  color: #ffffff;
  border: 1px solid #1e4b21;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.k-btn-calculate:hover {
  background-color: #245827;
}

.k-btn-calculate .play-icon {
  font-size: 9px;
  display: inline-block;
}

.k-btn-clear {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #94a3b8;
  padding: 4px 14px;
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
}

.k-btn-clear:hover {
  background-color: #e2e8f0;
}

/* ==========================================================================
   RESULTS CARD matching Image 2
   ========================================================================== */
.k-results-card {
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.k-results-header {
  background-color: #38761d;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.k-save-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.k-save-icon-btn:hover {
  opacity: 1;
}

/* Results Table matching Image 2 */
.k-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.k-results-table th {
  background-color: #24588e;
  color: #ffffff;
  padding: 6px 10px;
  font-weight: bold;
  border: 1px solid #1b4570;
  text-align: right;
  font-size: 12px;
}

.k-results-table th:first-child {
  text-align: left;
  background-color: #24588e;
  width: 100px;
}

.k-results-table td {
  padding: 5px 10px;
  border: 1px solid #d1d5db;
  text-align: right;
  color: #222222;
}

.k-results-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #334155;
  background-color: #f8fafc;
}

.k-results-table tr:nth-child(even) td {
  background-color: #f9fbfd;
}

.k-results-table tr:nth-child(even) td:first-child {
  background-color: #f1f5f9;
}

.k-results-table tr.highlight-annual td {
  font-weight: bold;
  background-color: #f0fdf4;
}

.k-results-table tr.highlight-annual td:first-child {
  color: #166534;
  background-color: #dcfce7;
}

/* Additional Analysis / Visualizations Container */
.k-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.k-chart-card {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.k-chart-title {
  font-size: 12.5px;
  font-weight: bold;
  color: #1b365d;
  margin-bottom: 6px;
  text-align: center;
}

.k-chart-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0;
}

.k-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 11px;
  color: #475569;
  margin-top: 4px;
}

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

.k-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* Quick Metrics Row */
.k-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.k-metric-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 10px;
  text-align: center;
}

.k-metric-pill-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.k-metric-pill-val {
  font-size: 14px;
  font-weight: bold;
  color: #1b365d;
}

/* ==========================================================================
   FRACTION ARITHMETIC SOLVER (Requirement 1 & 5)
   ========================================================================== */
.k-fraction-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.k-fraction-header {
  font-size: 14px;
  font-weight: bold;
  color: var(--sal-navy);
  margin-bottom: 4px;
}

.k-fraction-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.k-fraction-calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.k-fraction-input-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.k-fraction-num,
.k-fraction-den {
  width: 44px;
  height: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  box-sizing: border-box;
}

.k-fraction-divider {
  width: 44px;
  height: 2px;
  background-color: #1e293b;
}

.k-op-select {
  font-size: 16px;
  font-weight: bold;
  height: 30px;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  padding: 0 6px;
  background: #ffffff;
  color: #1e293b;
}

.k-fraction-equal {
  font-size: 18px;
  font-weight: bold;
  color: #334155;
}

.k-fraction-result-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #2f8027;
  border-radius: 4px;
  padding: 4px 12px;
  min-width: 70px;
}

.k-fraction-res-display {
  font-size: 16px;
  font-weight: bold;
  color: #2f8027;
}

.k-fraction-dec-display {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* ==========================================================================
   ARTICLE & SEO / FAQ STYLING
   ========================================================================== */
.k-content-article {
  font-size: 13px;
  line-height: 1.6;
  color: #2d3748;
}

.k-content-article h2 {
  font-size: 18px;
  color: var(--sal-navy);
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.k-content-article h3 {
  font-size: 15px;
  color: var(--sal-navy);
  margin-top: 16px;
  margin-bottom: 6px;
}

.k-content-article p {
  margin: 8px 0;
}

.k-content-article ol,
.k-content-article ul {
  padding-left: 20px;
  margin: 8px 0;
}

.k-content-article li {
  margin-bottom: 6px;
}

/* FAQ Accordion */
.k-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.k-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.k-faq-question {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: bold;
  color: var(--sal-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.k-faq-question:hover {
  background: #f1f5f9;
}

.k-faq-icon {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.k-faq-item.open .k-faq-icon {
  transform: rotate(180deg);
}

.k-faq-answer {
  display: none;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.k-faq-item.open .k-faq-answer {
  display: block;
}

/* ==========================================================================
   SIDEBAR STYLES matching Image 2
   ========================================================================== */
.k-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sidebar Search Box */
.k-sidebar-search-box {
  display: flex;
  gap: 4px;
  position: relative;
}

.k-sidebar-search-input {
  flex: 1;
  height: 26px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 12px;
  outline: none;
}

.k-sidebar-search-input:focus {
  border-color: #24588e;
}

.k-sidebar-search-btn {
  background-color: #24588e;
  color: #ffffff;
  border: 1px solid #1b4570;
  border-radius: 2px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
  height: 26px;
}

.k-sidebar-search-btn:hover {
  background-color: #1b4570;
}

/* Financial Calculators Card */
.k-sidebar-card {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
}

.k-sidebar-header {
  background-color: #23497c;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 10px;
}

.k-sidebar-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
  gap: 4px 10px;
  list-style: none;
  margin: 0;
  font-size: 12px;
}

.k-sidebar-links-grid li {
  line-height: 1.4;
}

.k-sidebar-links-grid a {
  color: #0844a4;
  text-decoration: none;
}

.k-sidebar-links-grid a:hover {
  text-decoration: underline;
}

.k-sidebar-links-grid a.active-link {
  font-weight: bold;
  color: #0f172a;
}

.k-sidebar-categories-footer {
  border-top: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  padding: 6px 10px;
  font-size: 11.5px;
  text-align: center;
  color: #64748b;
}

.k-sidebar-categories-footer a {
  color: #0844a4;
  text-decoration: none;
}

.k-sidebar-categories-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODAL WINDOWS (Image 1 Instant Tool + Save History + Print)
   ========================================================================== */
.k-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  box-sizing: border-box;
}

.k-modal-overlay.open {
  display: flex;
}

/* Exact Clone of Image 1 */
.k-instant-modal-card {
  background: #ffffff;
  border-radius: 4px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #94a3b8;
}

.k-modal-header {
  background-color: #24588e;
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.k-modal-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.2px;
}

.k-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-weight: bold;
}

.k-instant-modal-body {
  padding: 18px 20px;
}

.k-instant-field {
  margin-bottom: 14px;
}

.k-instant-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #222222;
  margin-bottom: 6px;
}

.k-instant-input {
  width: 100%;
  height: 32px;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  box-sizing: border-box;
  background: #ffffff;
}

.k-instant-btn {
  width: auto;
  background-color: #23497c;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 18px;
  border: 1px solid #1b365d;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 6px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.k-instant-btn:hover {
  background-color: #1b365d;
}

.k-instant-result {
  margin-top: 16px;
  padding: 12px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  display: none;
}

.k-history-modal-card {
  background: #ffffff;
  border-radius: 4px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #94a3b8;
}

.k-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.k-history-table th {
  background: #f1f5f9;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
  color: #1e293b;
}

.k-history-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.k-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1b365d;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 3000;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.k-toast.show {
  display: block;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.footer-wrapper {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 24px 14px;
  margin-top: 30px;
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
}

.footer-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 10px 0;
}

.footer-links-row {
  font-size: 12px;
  color: #64748b;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-link {
  color: #0844a4;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11.5px;
}

/* ==========================================================================
   RTL SUPPORT FOR ARABIC
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .site-header .header-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .k-main-grid {
  direction: rtl;
}

[dir="rtl"] .k-form-table td.label-col {
  text-align: right;
}

[dir="rtl"] .k-form-table td.input-col {
  text-align: left;
}

[dir="rtl"] .k-results-table th:first-child,
[dir="rtl"] .k-results-table td:first-child {
  text-align: right;
}

[dir="rtl"] .k-results-table th,
[dir="rtl"] .k-results-table td {
  text-align: left;
}

[dir="rtl"] .footer-copyright {
  margin-left: 0;
  margin-right: auto;
}

/* ==========================================================================
   PRINT STYLESHEET (Requirement 3)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* When printing from print modal */
  body.sal-printing-modal .site-header,
  body.sal-printing-modal .k-top-bar,
  body.sal-printing-modal .k-breadcrumbs-row,
  body.sal-printing-modal .k-main-grid,
  body.sal-printing-modal .k-content-article,
  body.sal-printing-modal .k-toast,
  body.sal-printing-modal footer,
  body.sal-printing-modal .footer-wrapper,
  body.sal-printing-modal .k-modal-header,
  body.sal-printing-modal .k-modal-close,
  body.sal-printing-modal #instant_modal_overlay,
  body.sal-printing-modal #history_modal_overlay,
  body.sal-printing-modal #print_modal_overlay > div > div:last-child {
    display: none !important;
  }

  body.sal-printing-modal #print_modal_overlay {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  body.sal-printing-modal .k-instant-modal-card {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.sal-printing-modal .k-instant-modal-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  /* General print when user prints the entire page directly */
  body:not(.sal-printing-modal) .site-header,
  body:not(.sal-printing-modal) .k-top-bar,
  body:not(.sal-printing-modal) .k-breadcrumbs-row,
  body:not(.sal-printing-modal) .k-sidebar-col,
  body:not(.sal-printing-modal) .k-btn-row,
  body:not(.sal-printing-modal) .k-content-article,
  body:not(.sal-printing-modal) .k-modal-overlay,
  body:not(.sal-printing-modal) .k-toast,
  body:not(.sal-printing-modal) footer,
  body:not(.sal-printing-modal) .footer-wrapper {
    display: none !important;
  }

  body:not(.sal-printing-modal) .k-page-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body:not(.sal-printing-modal) .k-main-grid {
    display: block !important;
  }

  body:not(.sal-printing-modal) .k-form-card,
  body:not(.sal-printing-modal) .k-results-card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid;
  }

  body:not(.sal-printing-modal) .k-section-bar,
  body:not(.sal-printing-modal) .k-results-header {
    background-color: #24588e !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body:not(.sal-printing-modal) .k-results-table th {
    background-color: #24588e !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 680px) {
  .k-main-grid {
    grid-template-columns: 1fr;
  }

  .k-calculator-interactive-grid {
    grid-template-columns: 1fr;
  }

  .k-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .k-top-search-input {
    width: 140px;
  }

  .k-metrics-row {
    grid-template-columns: 1fr;
  }

  .k-results-table {
    font-size: 11px;
  }

  .k-results-table th,
  .k-results-table td {
    padding: 4px 6px;
  }
}
