@charset "UTF-8";
@font-face {
  font-family: 'Vazir';
  src: url("Vazir.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url("Vazirmatn-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 16px;
}

:root {
  direction: rtl;
}

body {
  font-family: 'Vazir', Tahoma, sans-serif;
  background: #f7f7fa;
  margin: 0;
  padding: 0;
}

section {
  max-width: 98vw;
  margin: 0 auto;
  padding: 1.5rem 0.5rem;
}

h2 {
  text-align: center;
  color: #2d3a4b;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

label {
  font-size: 1rem;
  margin-left: 1rem;
  color: #444;
}

label input {
  margin-right: 0.5rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
  background: #fff;
  -webkit-transition: border 0.2s;
  transition: border 0.2s;
}

label input:focus {
  border: 1.5px solid #0077ff;
  outline: none;
}

label select.criterion, label select.criterion1 {
  width: 100%;
  max-width: 120px;
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 0.85rem;
  background: #f9f9f9;
  text-align: center;
  direction: rtl;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 8px center;
  background-size: 12px;
}

label select.criterion:focus, label select.criterion1:focus {
  border: 1.5px solid #0077ff;
  background-color: #fff;
  outline: none;
}

@media (max-width: 600px) {
  label select.criterion, label select.criterion1 {
    max-width: 90%;
    margin: auto;
  }
}

table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 12px #0001;
          box-shadow: 0 2px 12px #0001;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1.2rem;
}

th, td {
  padding: 0.7rem 0.3rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

th {
  background: #f3e9c7;
  color: #2d3a4b;
  font-weight: 700;
  font-size: 0.95rem;
}

td {
  background: #fff;
  color: #333;
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  td input {
    width: 100% !important;
  }
}

td select.criterion, td select.criterion1 {
  width: 100%;
  max-width: 120px;
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 0.85rem;
  background: #f9f9f9;
  text-align: center;
  direction: rtl;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 8px center;
  background-size: 12px;
}

td select.criterion:focus, td select.criterion1:focus {
  border: 1.5px solid #0077ff;
  background-color: #fff;
  outline: none;
}

@media (max-width: 600px) {
  td select.criterion, td select.criterion1 {
    max-width: 100%;
    margin-right: -40px;
  }
}

input[type="number"], input[type="text"] {
  width: 90px;
  max-width: 90%;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
  font-family: 'Vazir', Tahoma, sans-serif;
  background: #f9f9f9;
  -webkit-transition: border 0.2s;
  transition: border 0.2s;
}

input[type="number"]:focus, input[type="text"]:focus {
  border: 1.5px solid #0077ff;
  background: #fff;
  outline: none;
}

tfoot th {
  background: #f3e9c7;
  color: #2d3a4b;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (min-width: 600px) {
  tfoot th input {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  section {
    padding: 0.8rem 0.5rem;
    max-width: 100%;
  }
  div[style="margin-bottom: 10px;"] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.2rem !important;
  }
  div[style="margin-bottom: 10px;"] label {
    width: 90%;
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background: #ffffff;
    padding: 0.8rem;
    border-radius: 10px;
    -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }
  div[style="margin-bottom: 10px;"] label input {
    width: 60% !important;
    padding: 0.5rem;
    font-size: 1rem;
  }
  table, thead, tbody, tfoot, tr {
    display: block;
    width: 100%;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tbody tr {
    margin-bottom: 1.2rem;
    background: #fff;
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    padding: 0;
    border-bottom: 3px solid #f3e9c7;
  }
  td, th {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    position: relative;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    min-height: 2.5rem;
    text-align: right;
    font-size: 0.9rem;
  }
  td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
    width: 35%;
    padding-left: 0.5rem;
    white-space: nowrap;
  }
  td input, td select {
    width: 60% !important;
    margin-right: 0;
    font-size: 0.9rem !important;
    padding: 0.5rem !important;
  }
  tfoot tr {
    margin-bottom: 0.8rem;
    background: #fff;
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  }
  tfoot th {
    background: #f8f3e2;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0.8rem;
  }
  tfoot tr:last-child th {
    background: #f3e9c7;
    color: #000;
    font-weight: bold;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  #esfahanTransport {
    width: 60% !important;
    margin-right: 0;
    background-color: #fff;
    font-weight: normal;
  }
  td[data-label="شرح"] {
    background-color: #f9f9f9;
    font-weight: bold;
  }
  td[data-label="معادل (تومان/تن)"],
  td[data-label="معادل ارزی (دلار)"] {
    direction: ltr;
    text-align: right;
  }
  td[data-label="معادل (تومان/تن)"]:before,
  td[data-label="معادل ارزی (دلار)"]:before {
    text-align: right;
    direction: rtl;
  }
}

::-webkit-scrollbar {
  width: 7px;
  background: #f3e9c7;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 6px;
}

select {
  font-family: 'Vazir', Tahoma, sans-serif;
}

.dollar-btn {
  background-color: #0077ff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-size: 0.9rem;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
  margin-inline: 1rem;
}

.dollar-btn:hover {
  background-color: #0056b3;
}

.dollar-btn:active {
  background-color: #004494;
}

@media (max-width: 600px) {
  .dollar-btn {
    width: 90%;
    margin: 0.5rem auto;
    padding: 0.8rem;
    font-size: 1rem;
  }
}

@media (min-width: 600px) {
  .criterion1 {
    margin-right: 1rem;
  }
}

.print-btn {
  background-color: #0077ff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-size: 0.9rem;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
  margin-right: 1rem;
}

.print-btn:hover {
  background-color: #0056b3;
}

.print-btn:active {
  background-color: #004494;
}

@media (max-width: 600px) {
  .print-btn {
    width: 90%;
    margin: 0.5rem auto;
    padding: 0.8rem;
    font-size: 1rem;
  }
}

.recalculate-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Vazir', Tahoma, sans-serif;
  font-size: 0.9rem;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
  margin-right: 1rem;
}

.recalculate-btn:hover {
  background-color: #218838;
}

.recalculate-btn:active {
  background-color: #1e7e34;
}

@media (max-width: 600px) {
  .recalculate-btn {
    width: 90%;
    margin: 0.5rem auto;
    padding: 0.8rem;
    font-size: 1rem;
  }
}

@media print {
  body {
    background: white;
    padding: 0;
    margin: 0;
  }
  section {
    max-width: 100%;
    padding: 0;
  }
  .dollar-btn,
  .print-btn,
  .recalculate-btn,
  select,
  input[type="number"] {
    display: none !important;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  th, td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center;
    background: white !important;
    color: black !important;
  }
  th {
    background-color: #f3e9c7 !important;
    color: #000 !important;
  }
  tfoot {
    display: table-footer-group;
  }
  tfoot th {
    background-color: #f3e9c7 !important;
    color: #000 !important;
  }
  @page {
    size: landscape;
    margin: 1cm;
  }
  thead {
    display: table-header-group;
  }
  tbody {
    display: table-row-group;
  }
  tr {
    page-break-inside: avoid;
  }
  td, th {
    display: table-cell !important;
  }
  td:before {
    display: none !important;
  }
  tfoot {
    position: running(footer);
  }
  @page {
    @bottom-center {
      content: -moz-element(footer);
      content: element(footer);
    }
  }
  tfoot tr {
    -webkit-column-break-inside: avoid;
            break-inside: avoid;
  }
  tfoot tr:last-child {
    -webkit-column-break-after: avoid;
            break-after: avoid;
  }
}
/*# sourceMappingURL=style.css.map */