/* Private 8082 compact Cost Sheet Import review workspace. */
.csi-page {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 88px;
  color: #102f28;
  font-family: Arial, "Segoe UI", sans-serif;
}

.csi-page > .title,
.csi-page > .csi-wait,
.csi-page > .csi-review-grid,
.csi-page > .csi-components,
.csi-page > .csi-fob {
  width: 100%;
  box-sizing: border-box;
}

.csi-page > .csi-wait {
  margin: 10px 0;
  padding: 11px 14px;
  border: 1px solid #ead49a;
  border-radius: 14px;
  background: #fff8df;
}

.csi-page > .csi-wait p { margin: 4px 0 0; }

.csi-page .card,
.csi-page .csi-review-card,
.csi-page .csi-components,
.csi-page .csi-fob {
  border: 1px solid #d9e3df;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 47, 40, .055);
}

.csi-page .csi-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.csi-page .csi-review-card { padding: 0; overflow: hidden; }

.csi-page .csi-review-card h2,
.csi-page .csi-components h2 {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid #dce5e1;
  background: #fbfcfb;
  color: #102f28;
  font-size: 16px;
  line-height: 1.15;
}

.csi-page .csi-review-card dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  margin: 0;
  padding: 5px 14px 9px;
}

.csi-page .csi-review-card dt,
.csi-page .csi-review-card dd {
  min-height: 20px;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #e8eeeb;
  font-size: 12px;
  line-height: 1.2;
}

.csi-page .csi-review-card dt { color: #63766f; }
.csi-page .csi-review-card dd { color: #102f28; overflow-wrap: anywhere; }
.csi-page .csi-review-card dt:nth-last-of-type(1),
.csi-page .csi-review-card dd:last-child { border-bottom: 0; }

.csi-page .csi-picture {
  display: block;
  width: auto;
  max-width: 150px;
  height: 140px;
  margin: 6px auto 10px;
  border-radius: 10px;
  object-fit: contain;
  background: #f2f6f4;
}

.csi-page .csi-components {
  margin: 12px 0;
  overflow: hidden;
}

.csi-page .csi-components .table-wrap { overflow-x: auto; }
.csi-page .csi-components table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.csi-page .csi-components th,
.csi-page .csi-components td {
  height: 30px;
  box-sizing: border-box;
  padding: 6px 10px;
  border-bottom: 1px solid #e5ece9;
  font-size: 12px;
  line-height: 1.15;
  vertical-align: middle;
}
.csi-page .csi-components th {
  height: 28px;
  background: #edf4f1;
  color: #31564c;
  font-size: 10px;
  letter-spacing: .045em;
}
.csi-page .csi-components tbody tr:last-child td { border-bottom: 0; }
.csi-page .csi-components th:nth-child(1) { width: 17%; }
.csi-page .csi-components th:nth-child(2) { width: 33%; }
.csi-page .csi-components th:nth-child(3),
.csi-page .csi-components th:nth-child(4),
.csi-page .csi-components th:nth-child(5) { width: 16.66%; }

.csi-page .csi-fob {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 12px 0;
  overflow: hidden;
}
.csi-page .csi-fob > div {
  min-height: 52px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-right: 1px solid #e1e9e6;
  border-radius: 0;
  background: #f6f9f7;
}
.csi-page .csi-fob > div:nth-child(3) { border-right: 0; }
.csi-page .csi-fob span { font-size: 11px; }
.csi-page .csi-fob b { font-size: 16px; }
.csi-page .csi-fob p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 12px;
  border-top: 1px solid #e1e9e6;
  background: #fff;
  font-size: 11px;
}

.csi-page .csi-actions {
  position: fixed;
  z-index: 80;
  right: 50%;
  bottom: 14px;
  width: min(1088px, calc(100% - 64px));
  box-sizing: border-box;
  transform: translateX(50%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5e1dc;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(16, 47, 40, .16);
  backdrop-filter: blur(8px);
}
.csi-page .csi-actions button,
.csi-page .csi-actions a.button {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}
.csi-page .csi-actions .primary {
  border-color: #115a49;
  background: #115a49;
  color: #fff;
}

.csi-page #csiReviewError:not(:empty) {
  position: fixed;
  z-index: 81;
  right: 50%;
  bottom: 76px;
  width: min(1088px, calc(100% - 64px));
  box-sizing: border-box;
  transform: translateX(50%);
  padding: 9px 12px;
  border: 1px solid #e3aaa5;
  border-radius: 10px;
  background: #fff1f0;
}

@media (max-width: 760px) {
  .csi-page { width: calc(100% - 20px); }
  .csi-page .csi-review-grid,
  .csi-page .csi-fob { grid-template-columns: 1fr; }
  .csi-page .csi-fob > div { border-right: 0; border-bottom: 1px solid #e1e9e6; }
  .csi-page .csi-fob p { grid-column: 1; }
  .csi-page .csi-actions { width: calc(100% - 20px); overflow-x: auto; justify-content: flex-start; }
}
