/* ==========================================================================
   CONCRETE CALCULATOR - STYLES
   Exact replica of reference image & Calculator Archive design system
   ========================================================================== */

.concrete-page-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
}

/* Top Bar & Breadcrumbs */
.concrete-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.concrete-breadcrumbs {
  font-size: 13px;
  color: #555555;
  margin-bottom: 4px;
}

.concrete-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}

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

.concrete-breadcrumbs .sep {
  margin: 0 4px;
  color: #888888;
}

.concrete-breadcrumbs .current {
  color: #333333;
  font-weight: normal;
}

/* Quick Action Buttons (Top) */
.concrete-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Top Search Bar matching Requirement 2 */
.concrete-top-search-wrap {
  flex: 1;
  max-width: 380px;
  margin: 0 16px;
}

.concrete-top-search-wrap .concrete-search-dropdown-wrap {
  display: flex;
  position: relative;
  width: 100%;
}

.concrete-top-search-input {
  width: 100%;
  height: 28px;
  padding: 3px 30px 3px 8px;
  font-size: 12px;
  border: 1px solid #c4cbd3;
  border-radius: 3px;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.concrete-top-search-input:focus {
  outline: none;
  border-color: #0844a4;
  box-shadow: 0 0 0 2px rgba(8, 68, 164, 0.15);
}

.concrete-top-search-btn {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.concrete-top-search-btn:hover {
  color: #0844a4;
}

.concrete-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #0844a4;
  background-color: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.concrete-top-btn:hover {
  background-color: #e9eef4;
  border-color: #0844a4;
}

/* Header & Intro */
.concrete-title {
  font-size: 24px;
  font-weight: bold;
  color: #0844a4;
  margin: 6px 0 10px;
  line-height: 1.25;
}

.concrete-intro {
  font-size: 13.5px;
  line-height: 1.55;
  color: #333333;
  margin-bottom: 22px;
  max-width: 820px;
}

/* Layout Grid */
.concrete-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.concrete-main-col {
  flex: 1;
  min-width: 0;
}

.concrete-sidebar-col {
  width: 260px;
  flex-shrink: 0;
}

/* Section Title */
.concrete-sec-title {
  font-size: 17px;
  font-weight: bold;
  color: #0844a4;
  margin: 22px 0 10px;
  line-height: 1.3;
}

.concrete-sec-title:first-of-type {
  margin-top: 0;
}

/* Calculator Section Wrapper */
.concrete-calc-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed #d5d9de;
}

.concrete-calc-section:last-of-type {
  border-bottom: none;
}

/* Form Card with Layout matching image */
.concrete-form-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}

/* Soft Grey Form Box */
.concrete-form-box {
  background-color: #eef0f2;
  border: 1px solid #d5d9de;
  border-radius: 2px;
  padding: 14px 18px;
  width: 320px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.concrete-form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 7px;
  gap: 6px;
}

.concrete-form-row:last-child {
  margin-bottom: 0;
}

.concrete-label {
  font-size: 13px;
  color: #333333;
  text-align: right;
  flex: 1;
  white-space: nowrap;
}

.concrete-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.concrete-input {
  width: 75px;
  height: 25px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background-color: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 1px;
  box-sizing: border-box;
  text-align: left;
}

.concrete-input:focus {
  outline: none;
  border-color: #0844a4;
  box-shadow: 0 0 0 2px rgba(8, 68, 164, 0.15);
}

.concrete-select {
  width: 105px;
  height: 25px;
  padding: 2px 4px;
  font-size: 12.5px;
  font-family: inherit;
  color: #111;
  background-color: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 1px;
  box-sizing: border-box;
  cursor: pointer;
}

.concrete-select:focus {
  outline: none;
  border-color: #0844a4;
}

/* Quantity row: full width or no select */
.concrete-input-qty {
  width: 75px;
}

/* Buttons Row */
.concrete-btn-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
  padding-left: 90px;
  gap: 6px;
}

.concrete-calc-btn {
  background-color: #337722;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.15s ease;
}

.concrete-calc-btn:hover {
  background-color: #27611a;
}

.concrete-calc-btn .calc-arrow {
  font-size: 9px;
  line-height: 1;
}

.concrete-clear-btn {
  background-color: #8e9aa8;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.concrete-clear-btn:hover {
  background-color: #798694;
}

/* Diagram Box */
.concrete-diagram-box {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.concrete-diagram-box svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Results Panel */
.concrete-results-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 3px solid #337722;
  border-radius: 2px;
  padding: 16px 20px;
  margin-top: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.concrete-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.concrete-results-title {
  font-size: 15px;
  font-weight: bold;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.concrete-results-badge {
  font-size: 11px;
  padding: 2px 7px;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-weight: bold;
}

.concrete-results-actions {
  display: flex;
  gap: 6px;
}

.concrete-res-btn {
  font-size: 11px;
  padding: 3px 8px;
  color: #334155;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.concrete-res-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Metrics Grid */
.concrete-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.concrete-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 10px 14px;
}

.concrete-metric-card.highlight {
  background: #f0fdf4;
  border-color: #86efac;
}

.concrete-metric-label {
  font-size: 11.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: bold;
  margin-bottom: 4px;
}

.concrete-metric-value {
  font-size: 20px;
  font-weight: bold;
  color: #0f172a;
  line-height: 1.2;
}

.concrete-metric-card.highlight .concrete-metric-value {
  color: #166534;
}

.concrete-metric-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

/* Bags Breakdown Table */
.concrete-bags-box {
  background-color: #fafbfc;
  border: 1px solid #e1e4e8;
  border-radius: 2px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.concrete-bags-title {
  font-size: 13px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 8px;
}

.concrete-bags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.concrete-bag-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 6px 10px;
  text-align: center;
}

.concrete-bag-count {
  font-size: 16px;
  font-weight: bold;
  color: #1e3a8a;
}

.concrete-bag-name {
  font-size: 11px;
  color: #64748b;
}

/* Recommendation & Waste Box */
.concrete-recom-box {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3px solid #d97706;
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #92400e;
  margin-bottom: 14px;
  line-height: 1.45;
}

.concrete-recom-box strong {
  color: #78350f;
}

/* Step-by-Step Breakdown */
.concrete-steps-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
}

.concrete-steps-box summary {
  font-weight: bold;
  color: #0844a4;
  cursor: pointer;
  margin-bottom: 6px;
}

.concrete-formula-code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: monospace;
  font-size: 11.5px;
  color: #0f172a;
}

/* Chart Canvas Container */
.concrete-chart-wrap {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 12px 14px;
}

.concrete-chart-title {
  font-size: 12px;
  font-weight: bold;
  color: #475569;
  margin-bottom: 8px;
}

.concrete-chart-svg {
  width: 100%;
  height: 140px;
}

/* ==========================================================================
   CONSTRUCTION FRACTIONS TOOL CARD (Core Requirement 1)
   ========================================================================== */
.concrete-fraction-tool {
  background: #fdfdfd;
  border: 1px solid #cbd5e1;
  border-top: 3px solid #0844a4;
  border-radius: 2px;
  padding: 18px 22px;
  margin: 32px 0 24px;
}

.concrete-fraction-title {
  font-size: 16px;
  font-weight: bold;
  color: #0844a4;
  margin-bottom: 6px;
}

.concrete-fraction-desc {
  font-size: 12.5px;
  color: #555555;
  margin-bottom: 16px;
  line-height: 1.45;
}

.concrete-fraction-calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.concrete-fraction-input-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.concrete-fraction-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 45px;
}

.concrete-fraction-stack input {
  width: 100%;
  height: 22px;
  text-align: center;
  font-size: 12px;
  border: 1px solid #7f9db9;
  border-radius: 1px;
}

.concrete-fraction-divider {
  height: 1px;
  background-color: #333;
  width: 100%;
}

.concrete-fraction-op-select {
  height: 28px;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid #7f9db9;
  padding: 2px 6px;
  background: #fff;
}

.concrete-fraction-result {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 13px;
  color: #166534;
  margin-top: 10px;
}

/* ==========================================================================
   RIGHT SIDEBAR STYLES (Matching Image 2 exactly)
   ========================================================================== */
.concrete-sidebar-search {
  margin-bottom: 18px;
}

.concrete-sidebar-search-box {
  display: flex;
  align-items: center;
}

.concrete-sidebar-search-input {
  flex: 1;
  height: 26px;
  padding: 2px 6px;
  font-size: 12.5px;
  border: 1px solid #7f9db9;
  border-right: none;
  border-radius: 0;
  box-sizing: border-box;
}

.concrete-sidebar-search-input:focus {
  outline: none;
  border-color: #0844a4;
}

.concrete-sidebar-search-btn {
  background-color: #2b5b84;
  color: #ffffff;
  border: 1px solid #1a4263;
  font-size: 12px;
  font-weight: bold;
  height: 26px;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 0;
}

.concrete-sidebar-search-btn:hover {
  background-color: #1a4263;
}

.concrete-search-dropdown-wrap {
  position: relative;
}

.concrete-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: none;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: none;
}

.concrete-search-item {
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
}

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

/* Sidebar "Other Calculators" Card */
.concrete-side-card {
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
}

.concrete-side-card-title {
  background-color: #2b5b84;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: bold;
}

.concrete-side-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
  gap: 4px 8px;
}

.concrete-side-card-grid a {
  font-size: 12px;
  color: #0844a4;
  text-decoration: none;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concrete-side-card-grid a:hover {
  text-decoration: underline;
}

.concrete-side-card-grid a.active-calc {
  color: #b91c1c;
  font-weight: bold;
}

.concrete-side-card-footer {
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 6px 10px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.concrete-side-card-footer a {
  color: #0844a4;
  text-decoration: none;
  margin: 0 2px;
}

.concrete-side-card-footer a:hover {
  text-decoration: underline;
}

.concrete-side-card-footer a.active-cat {
  color: #333333;
  font-weight: bold;
}

/* ==========================================================================
   SEO / AEO / GEO CONTENT SECTION (500+ Words)
   ========================================================================== */
.concrete-content-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.concrete-content-title {
  font-size: 20px;
  font-weight: bold;
  color: #0844a4;
  margin-bottom: 12px;
}

.concrete-content-section h3 {
  font-size: 15.5px;
  font-weight: bold;
  color: #1e3a8a;
  margin: 20px 0 8px;
}

.concrete-content-section p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 14px;
}

.concrete-content-section ul,
.concrete-content-section ol {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 16px 22px;
  padding: 0;
}

.concrete-content-section li {
  margin-bottom: 6px;
}

.concrete-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
}

.concrete-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.concrete-table th {
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: bold;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
}

.concrete-table td {
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.concrete-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* FAQ Accordion */
.concrete-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  margin-bottom: 10px;
  background-color: #ffffff;
}

.concrete-faq-question {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  color: #0844a4;
  cursor: pointer;
  background-color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.concrete-faq-answer {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  border-top: 1px solid #e2e8f0;
}

/* History Modal */
.concrete-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.concrete-modal-backdrop.open {
  display: flex;
}

.concrete-modal-dialog {
  background: #ffffff;
  border-radius: 3px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.concrete-modal-header {
  padding: 12px 16px;
  background-color: #2b5b84;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.concrete-modal-title {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
}

.concrete-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.concrete-modal-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
}

.concrete-modal-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Printable Report Sheet Styling */
.concrete-print-sheet {
  color: #1e293b;
  font-size: 13px;
  line-height: 1.5;
}

.concrete-print-header {
  border-bottom: 2px solid #2b5b84;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.concrete-print-brand {
  font-size: 16px;
  font-weight: 700;
  color: #0844a4;
  margin: 0 0 2px;
}

.concrete-print-sub {
  font-size: 11.5px;
  color: #64748b;
}

.concrete-print-badge {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.concrete-print-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.concrete-print-highlight-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 3px;
  text-align: center;
}

.concrete-print-highlight-card.recommended {
  border-color: #2e7d32;
  background: #f1f8e9;
}

.concrete-print-hl-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.concrete-print-hl-val {
  font-size: 16px;
  font-weight: 700;
  color: #0844a4;
}

.concrete-print-highlight-card.recommended .concrete-print-hl-val {
  color: #2e7d32;
}

.concrete-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.concrete-print-table th,
.concrete-print-table td {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  text-align: left;
}

.concrete-print-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
}

.concrete-print-table tr:nth-child(even) td {
  background: #f8fafc;
}

.concrete-print-notes {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3px solid #d97706;
  padding: 8px 12px;
  font-size: 12px;
  color: #92400e;
  border-radius: 2px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.concrete-print-footer-tag {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  margin-top: 12px;
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Dedicated Report Modal Print Mode */
  body.concrete-printing-modal * {
    visibility: hidden;
  }
  body.concrete-printing-modal #concrete-print-modal,
  body.concrete-printing-modal #concrete-print-modal * {
    visibility: visible;
  }
  body.concrete-printing-modal #concrete-print-modal {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 999999 !important;
  }
  body.concrete-printing-modal .concrete-modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-height: none !important;
  }
  body.concrete-printing-modal .concrete-modal-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  body.concrete-printing-modal .concrete-modal-header,
  body.concrete-printing-modal .concrete-modal-footer,
  body.concrete-printing-modal .concrete-modal-close {
    display: none !important;
  }

  /* History Modal Print Mode */
  body.concrete-printing-history * {
    visibility: hidden;
  }
  body.concrete-printing-history #concrete-history-modal,
  body.concrete-printing-history #concrete-history-modal * {
    visibility: visible;
  }
  body.concrete-printing-history #concrete-history-modal {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 999999 !important;
  }
  body.concrete-printing-history .concrete-modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-height: none !important;
  }
  body.concrete-printing-history .concrete-modal-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  body.concrete-printing-history .concrete-modal-header .concrete-modal-close,
  body.concrete-printing-history .concrete-modal-footer {
    display: none !important;
  }

  /* Regular page print when not in modal print mode */
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .site-header,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-top-actions,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-sidebar-col,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .site-footer,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-clear-btn,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-calc-btn,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-res-btn,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-fraction-tool,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-modal-backdrop,
  body:not(.concrete-printing-modal):not(.concrete-printing-history) .concrete-search-dropdown {
    display: none !important;
  }
  .concrete-layout {
    display: block !important;
  }
  .concrete-main-col {
    width: 100% !important;
  }
  .concrete-form-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .concrete-results-panel {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Responsive Media Queries */
@media (max-width: 860px) {
  .concrete-layout {
    flex-direction: column;
  }
  .concrete-sidebar-col {
    width: 100%;
    margin-left: 0;
    margin-top: 24px;
  }
  .concrete-form-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .concrete-form-box {
    width: 100%;
  }
  .concrete-diagram-box {
    margin: 10px auto 0;
    max-width: 220px;
  }
}
