@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 2em;

  --main-fill-color: #eb5757;
  --main-fill-color-bg: #ffe6e6;
  --main-lite-color: #e76e6e;
  --main-lite-color-bg: #f8fafc;

  --white: #fff;
}

.wrapper {
  max-width: 1100px;
  margin: auto;
}

.drop-area {
  width: 500px;
  height: 300px;
  border: 3px dashed var(--main-lite-color);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--main-lite-color-bg);
  color: var(--main-lite-color);
  font-family: sans-serif;
  font-size: 1.2rem;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
  margin: 40px auto;
  position: relative;
}

.drop-area.dragover {
  border-color: var(--main-fill-color);
  background: var(--main-fill-color-bg);
}

.drop-area input[type="file"] {
  display: none;
}

.drop-area svg {
  width: 128px;
  height: 128px;
  transform: translateX(14px);
  margin-bottom: 16px;
}

.drop-text {
  margin-bottom: 8px;
}

.drop-area:active, .drop-area:focus {
  outline: none;
  border-color: var(--main-fill-color);
}

.btn {
  border: none;
  background: var(--main-fill-color);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
}

#output {
  margin-top: 2em;
}

.resultTable {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(32, 35, 53, 0.04);
  margin-bottom: 2em;
}

.resultTable th,
.resultTable td {
  padding: 14px 18px;
}

.resultTable th {
  background: var(--main-fill-color-bg);
  font-weight: 600;
  color: #4a3328;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #e9ecef;
}

.resultTable td {
  border-bottom: 1px solid #ecedf0;
  color: #816253;
  font-size: 1rem;
  font-weight: 400;
}

.resultTable tr:last-child td {
  border-bottom: none;
}

.resultTable tr:nth-of-type(2n+1) td {
  background: var(--main-lite-color-bg);
}

.resultTable tr:hover td {
  background: var(--main-fill-color-bg);
  transition: background 0.15s;
}

.resultTable.summary tr:last-of-type td {
  border-top: 2px solid var(--main-fill-color);
}

table.resultTable td.totalPriceLabel,
table.resultTable.centered td.totalPriceLabel {
  text-align: right;
  padding-right: 3em;
}

table.centered td,
table.centered th {
  text-align: center;
}

table caption {
  caption-side: top;
  font-weight: bold;
  padding: 1em;
  font-size: 130%;
}
