/* Income Tax Calculator Styles - Calculator Archive Exact Clone */
:root {
  --tax-navy: #1b365d;
  --tax-blue-header: #2f5c94;
  --tax-blue-subhdr: #2f5c94;
  --tax-blue-link: #0844a4;
  --tax-blue-link-hover: #002277;
  --tax-green-btn: #2f8027;
  --tax-green-btn-hover: #266b20;
  --tax-gray-btn: #cbd5e1;
  --tax-gray-btn-hover: #94a3b8;
  --tax-border: #cbd5e1;
  --tax-border-card: #b0c4de;
  --tax-bg-light: #f8fafc;
  --tax-bg-alt: #f1f5f9;
  --tax-text: #333333;
  --tax-text-dark: #0f172a;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--tax-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: 24px !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;
}

/* ==========================================================================
   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(--tax-blue-link);
}

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

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

.k-breadcrumbs span {
  color: #777777;
  margin: 0 4px;
}

.k-breadcrumbs .crumb-current {
  color: #333333;
}

/* Top Actions */
.k-top-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.k-top-link-btn {
  background: none;
  border: none;
  color: var(--tax-blue-link);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.k-top-link-btn:hover {
  color: var(--tax-blue-link-hover);
}

/* Page Title & Intro */
.k-page-title {
  color: var(--tax-blue-link);
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  line-height: 1.25;
}

.k-page-intro {
  font-size: 13px;
  line-height: 1.5;
  color: #222222;
  margin: 0;
  max-width: 960px;
}

/* 2-Column Main Grid */
.k-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

/* ==========================================================================
   LEFT COLUMN: CALCULATOR FORM & RESULTS
   ========================================================================== */
.k-calc-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card Form Container matching Image 2 */
.k-form-card {
  border: 1px solid var(--tax-border-card);
  border-radius: 4px;
  background-color: #f6f8fb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Section Header Bars matching Image 2 */
.k-section-bar {
  background-color: var(--tax-blue-header);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 12px;
  letter-spacing: 0.2px;
  border-top: 1px solid #1f4270;
  border-bottom: 1px solid #1f4270;
}

.k-form-card .k-section-bar:first-child {
  border-top: none;
}

/* Form Section Padding */
.k-form-section {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Form Rows matching Image 2 */
.k-form-row {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  min-height: 27px;
}

.k-form-row.align-start {
  align-items: flex-start;
}

.k-label-col {
  width: 250px;
  flex-shrink: 0;
  color: #222222;
  font-weight: normal;
  padding-right: 8px;
  box-sizing: border-box;
}

.k-input-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Input Fields matching Image 2 */
.k-input-text,
.k-input-number {
  height: 24px;
  padding: 1px 6px;
  font-size: 12.5px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  background-color: #ffffff;
  color: #000000;
  box-sizing: border-box;
  font-family: inherit;
  width: 110px;
}

.k-input-text:focus,
.k-input-number:focus,
.k-select:focus {
  outline: none;
  border-color: #2f5c94;
  box-shadow: 0 0 0 1px #2f5c94;
}

.k-select {
  height: 24px;
  padding: 1px 4px;
  font-size: 12.5px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  background-color: #ffffff;
  color: #000000;
  box-sizing: border-box;
  font-family: inherit;
  width: 170px;
}

.k-input-narrow {
  width: 70px;
}

.k-input-unit {
  font-size: 12px;
  color: #444444;
}

/* Helper Notes matching Image 2 */
.k-note {
  font-size: 11.5px;
  color: #333333;
  white-space: nowrap;
}

/* Radio Group */
.k-radio-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.k-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #222222;
  cursor: pointer;
}

.k-radio-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Action Buttons Container matching Image 2 */
.k-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  background-color: #eef2f7;
  border-top: 1px solid #dce4ee;
  justify-content: center;
}

.k-btn-calc {
  background-color: var(--tax-green-btn);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s;
}

.k-btn-calc:hover {
  background-color: var(--tax-green-btn-hover);
}

.k-btn-clear {
  background-color: var(--tax-gray-btn);
  color: #1e293b;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.k-btn-clear:hover {
  background-color: var(--tax-gray-btn-hover);
}

/* ==========================================================================
   RESULTS SECTION
   ========================================================================== */
.k-results-card {
  border: 1px solid #b0c4de;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.k-results-header {
  background-color: var(--tax-blue-header);
  color: #ffffff;
  padding: 7px 14px;
  font-size: 14.5px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.k-results-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Highlight Refund or Due Banner */
.k-outcome-banner {
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.k-outcome-banner.refund {
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.k-outcome-banner.owed {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  color: #b71c1c;
}

.k-outcome-title {
  font-size: 15px;
  font-weight: bold;
}

.k-outcome-amount {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

/* Results Metrics Grid */
.k-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.k-metric-label {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 4px;
}

.k-metric-val {
  font-size: 16px;
  font-weight: bold;
  color: #0f172a;
}

/* Detailed Results Table */
.k-tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 4px;
}

.k-tax-table th,
.k-tax-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.k-tax-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: bold;
  text-align: left;
}

.k-tax-table td.amount-col {
  text-align: right;
  font-family: monospace, Arial, sans-serif;
  font-weight: 600;
}

.k-tax-table tr.total-row td {
  font-weight: bold;
  background-color: #f8fafc;
  border-top: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
}

/* Charts Wrapper */
.k-charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

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

.k-chart-title {
  font-size: 13px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 8px;
  align-self: flex-start;
}

.k-chart-svg-wrap {
  width: 100%;
  max-width: 280px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.k-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 11.5px;
  justify-content: center;
}

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

.k-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   FRACTION ARITHMETIC & RATIO TOOL (Requirement 1 & 5)
   ========================================================================== */
.k-fraction-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px;
  margin-top: 10px;
}

.k-fraction-header {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--tax-blue-header);
  margin-bottom: 6px;
}

.k-fraction-desc {
  font-size: 12px;
  color: #475569;
  margin-bottom: 12px;
}

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

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

.k-fraction-num,
.k-fraction-den {
  width: 50px;
  height: 24px;
  text-align: center;
  font-size: 12.5px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  padding: 0 2px;
}

.k-fraction-divider {
  width: 44px;
  height: 1.5px;
  background-color: #334155;
}

.k-op-select {
  height: 28px;
  font-size: 14px;
  font-weight: bold;
  padding: 0 4px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
}

.k-fraction-equal {
  font-size: 16px;
  font-weight: bold;
}

.k-fraction-result-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
  min-width: 90px;
}

.k-fraction-res-display {
  font-size: 14px;
  font-weight: bold;
  color: #0f172a;
}

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

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

.k-sidebar-search {
  display: flex;
  position: relative;
  width: 100%;
}

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

.k-sidebar-search input:focus {
  border-color: #2f5c94;
}

.k-sidebar-search button {
  background-color: #2f5c94;
  color: #ffffff;
  border: none;
  border-radius: 0 2px 2px 0;
  padding: 0 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  height: 26px;
}

.k-sidebar-search button:hover {
  background-color: #1b365d;
}

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

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

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

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

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

.k-sidebar-header {
  background-color: var(--tax-blue-header);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
}

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

.k-sidebar-list li a {
  color: var(--tax-blue-link);
  text-decoration: none;
  font-size: 12px;
  display: block;
  padding: 2px 0;
}

.k-sidebar-list li a:hover {
  text-decoration: underline;
}

.k-sidebar-list li:last-child {
  grid-column: span 2;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  padding-top: 4px;
}

.k-sidebar-categories-footer {
  padding: 6px 12px 10px;
  border-top: 1px solid #cbd5e1;
  font-size: 11.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: #f8fafc;
}

.k-sidebar-categories-footer a {
  color: var(--tax-blue-link);
  text-decoration: underline;
}

/* ==========================================================================
   CONTENT / SEO / AEO / GEO ARTICLE & FAQ
   ========================================================================== */
.k-content-article {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #1e293b;
}

.k-content-article h2 {
  font-size: 18px;
  color: var(--tax-blue-link);
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.k-content-article h3 {
  font-size: 15px;
  color: #0f172a;
  margin-top: 16px;
  margin-bottom: 8px;
}

.k-content-article p {
  margin-top: 0;
  margin-bottom: 12px;
}

.k-content-article ul,
.k-content-article ol {
  margin-top: 0;
  margin-bottom: 14px;
  padding-left: 22px;
}

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

.k-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

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

.k-faq-q {
  padding: 10px 14px;
  background-color: #f8fafc;
  font-weight: bold;
  font-size: 13.5px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.k-faq-a {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  border-top: 1px solid #e2e8f0;
  display: none;
  background-color: #ffffff;
}

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

/* ==========================================================================
   MODALS: INSTANT TOOL (IMAGE 1) & HISTORY
   ========================================================================== */
.k-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 16px;
  box-sizing: border-box;
}

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

/* Modal Window matching Image 1 exactly */
.k-instant-modal-card {
  background: #ffffff;
  border: 1px solid #2f5c94;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: kFadeIn 0.15s ease-out;
}

@keyframes kFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.k-modal-title {
  font-size: 14.5px;
  font-weight: bold;
  margin: 0;
}

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

.k-instant-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #ffffff;
}

.k-instant-subtitle {
  font-size: 13.5px;
  color: #555555;
  margin: 0 0 4px 0;
}

.k-instant-subtitle strong {
  color: #222222;
}

.k-instant-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.k-instant-label {
  font-size: 13px;
  font-weight: bold;
  color: #333333;
}

.k-instant-input {
  height: 32px;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  padding: 0 8px;
  font-size: 13.5px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  color: #0f172a;
}

.k-instant-input:focus {
  outline: none;
  border-color: #2f5c94;
  box-shadow: 0 0 0 1px #2f5c94;
}

.k-instant-btn {
  background-color: #1b365d;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 6px;
  transition: background-color 0.15s;
}

.k-instant-btn:hover {
  background-color: #0844a4;
}

.k-instant-result {
  margin-top: 12px;
  padding: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-size: 13px;
  color: #0f172a;
  display: none;
}

.k-instant-result.show {
  display: block;
}

/* History Modal */
.k-history-modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.k-history-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 14px;
}

.k-history-item {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
}

/* ==========================================================================
   RTL SUPPORT (ARABIC)
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .k-label-col {
  padding-right: 0;
  padding-left: 8px;
  text-align: right;
}

[dir="rtl"] .k-tax-table th {
  text-align: right;
}

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

[dir="rtl"] .k-sidebar-search input {
  border-radius: 0 2px 2px 0;
  border-right: 1px solid #7f9db9;
  border-left: none;
  text-align: right;
}

[dir="rtl"] .k-sidebar-search button {
  border-radius: 2px 0 0 2px;
}

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

@media (max-width: 600px) {
  .k-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
  }
  .k-label-col {
    width: 100%;
    padding-right: 0;
  }
  .k-charts-container {
    grid-template-columns: 1fr;
  }
  .k-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   PRINT STYLESHEET (Clean Underwriting & Modal Statement Isolation)
   ========================================================================== */
@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.tax-printing-modal .site-header,
  body.tax-printing-modal .k-top-bar,
  body.tax-printing-modal .k-breadcrumbs-row,
  body.tax-printing-modal .k-main-grid,
  body.tax-printing-modal .k-content-article,
  body.tax-printing-modal .k-toast,
  body.tax-printing-modal footer,
  body.tax-printing-modal .footer-wrapper,
  body.tax-printing-modal .k-modal-header,
  body.tax-printing-modal .k-modal-close,
  body.tax-printing-modal #instant_modal_overlay,
  body.tax-printing-modal #history_modal_overlay,
  body.tax-printing-modal #print_modal_overlay > div > div:last-child {
    display: none !important;
  }

  body.tax-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.tax-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.tax-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(.tax-printing-modal) .site-header,
  body:not(.tax-printing-modal) .k-top-bar,
  body:not(.tax-printing-modal) .k-breadcrumbs-row,
  body:not(.tax-printing-modal) .k-sidebar-col,
  body:not(.tax-printing-modal) .k-btn-row,
  body:not(.tax-printing-modal) .k-content-article,
  body:not(.tax-printing-modal) .k-modal-overlay,
  body:not(.tax-printing-modal) .k-toast,
  body:not(.tax-printing-modal) footer,
  body:not(.tax-printing-modal) .footer-wrapper {
    display: none !important;
  }

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

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

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

  body:not(.tax-printing-modal) .k-results-card {
    display: block !important;
  }

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