.old-calcopolis-page .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem; }

.old-calcopolis-page h1, .old-calcopolis-page .h2 {
  margin-bottom: 1rem; }

.old-calc-grid .old-calc-card,
.old-calc-grid .old-calc-category-card,
.old-calc-categories .old-calc-card,
.old-calc-categories .old-calc-category-card {
  display: block;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow 0.2s; }
  .old-calc-grid .old-calc-card:hover,
  .old-calc-grid .old-calc-category-card:hover,
  .old-calc-categories .old-calc-card:hover,
  .old-calc-categories .old-calc-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit; }
  .old-calc-grid .old-calc-card strong,
  .old-calc-grid .old-calc-category-card strong,
  .old-calc-categories .old-calc-card strong,
  .old-calc-categories .old-calc-category-card strong {
    display: block;
    margin-top: 0.5rem; }
  .old-calc-grid .old-calc-card small,
  .old-calc-grid .old-calc-category-card small,
  .old-calc-categories .old-calc-card small,
  .old-calc-categories .old-calc-category-card small {
    display: block;
    color: #6b7280;
    margin-top: 0.25rem; }

.old-calc-icon {
  width: 48px;
  height: 48px; }

#content {
  width: 100%; }
  #content::after {
    content: "";
    display: table;
    clear: both; }
  #content .row-fluid::after {
    content: "";
    display: table;
    clear: both; }
  #content .span7.result {
    float: left;
    width: 58%; }
  #content .form-section {
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.25rem; }
  #content .calculator .control-group > .control-label {
    float: left;
    text-align: right;
    padding-right: 10px;
    box-sizing: border-box; }
  #content .calculator .control-group > .controls {
    float: left;
    box-sizing: border-box; }
  #content .calculator .table-form {
    width: 100%;
    margin-bottom: 0; }
    #content .calculator .table-form th {
      text-align: center;
      font-weight: bold;
      font-size: 13px;
      border: none; }
    #content .calculator .table-form td.controls {
      display: table-cell;
      float: none;
      width: auto;
      vertical-align: middle; }
    #content .calculator .table-form td.td-label {
      text-align: right;
      padding-right: 10px; }
    #content .calculator .table-form td.controls input {
      width: 49%;
      float: left; }
    #content .calculator .table-form td.controls .add-on {
      float: left;
      margin-left: 2px; }

.calculator-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem; }
  .calculator-box .span8 {
    flex: 1 1 60%;
    min-width: 280px; }
  .calculator-box .span4, .calculator-box .old-calc-sidebar {
    flex: 0 0 360px; }

.calculators-menu-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; }
  .calculators-menu-vertical a {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit; }
    .calculators-menu-vertical a.selected {
      background: #fff3cd; }
    .calculators-menu-vertical a img {
      width: 32px;
      height: 32px; }
    .calculators-menu-vertical a strong {
      display: block;
      font-size: 0.9rem; }
    .calculators-menu-vertical a small {
      color: #6b7280;
      font-size: 0.8rem; }

.old-calc-django-form .control-group {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem; }
  .old-calc-django-form .control-group .control-label,
  .old-calc-django-form .control-group label {
    min-width: 140px;
    margin-bottom: 0; }
  .old-calc-django-form .control-group .controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1; }
  .old-calc-django-form .control-group input[type="number"],
  .old-calc-django-form .control-group input[type="text"],
  .old-calc-django-form .control-group select,
  .old-calc-django-form .control-group textarea {
    max-width: 200px; }
  .old-calc-django-form .control-group .add-on {
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.875rem; }

.old-calc-django-form .form-section {
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  width: 100%; }

.old-calc-django-form fieldset.js-is-result {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0; }

.old-calc-django-form.yellow-bg {
  background: #fff3cd;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem; }

.js-visibility {
  display: none; }
  .js-visibility.visible-percent, .js-visibility.visible-net, .js-visibility.visible-gross, .js-visibility.visible-fixed, .js-visibility.visible-ebit1, .js-visibility.visible-ebit2 {
    display: flex; }

.old-calc-article {
  max-width: 960px; }

.old-calc-content,
.old-calc-article .content {
  line-height: 1.7; }
  .old-calc-content img,
  .old-calc-article .content img {
    max-width: 100%;
    height: auto; }
  .old-calc-content table,
  .old-calc-article .content table {
    width: 100%;
    margin: 1rem 0; }

#report {
  margin-top: 2rem; }
  #report .summary table {
    width: 100%; }
  #report tr.strong td {
    font-weight: 700; }
  #report tr.bottom-border td {
    border-bottom: 1px solid #dee2e6; }

@media (max-width: 768px) {
  .hidden-phone {
    display: none !important; }
  .calculator-box .span8,
  .calculator-box .span4 {
    flex: 1 1 100%; } }
