    :root {
      --blue: #1a73e8;
      --red: #c62828;
      --green-bg: #d9fdd3;
      --red-bg: #ffd7d7;
      --yellow-bg: #fff0c2;
      --gray-bg: #f4f4f4;
      --card-bg: #ffffff;
      --scan-green: #63ff3a;
      --scan-outline-black-1: rgba(0, 0, 0, 0.8);
      --scan-outline-black-2: rgba(0, 0, 0, 0.45);
    }

    body {
      margin: 0;
      padding: 14px;
      font-family: Arial, sans-serif;
      background: var(--gray-bg);
      color: #222;
    }

    .wrap {
      max-width: 540px;
      margin: 0 auto;
    }

   @media (min-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .wrap.summary-wide {
    max-width: none;
    width: 100%;
  }

  .wrap.summary-wide .card {
    padding: 10px;
  }

  .wrap.summary-wide .table-scroll {
    overflow-x: auto;
  }

  .wrap.summary-wide .summary-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 14px;
  }

  .wrap.summary-wide .summary-table th,
  .wrap.summary-wide .summary-table td {
    padding: 5px 6px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .wrap.summary-wide .summary-table th.sortable::after {
    font-size: 9px;
  }

     /* 1. Tracking - wrap cả mã dài không có khoảng trắng */
  .wrap.summary-wide .summary-table th:nth-child(1),
  .wrap.summary-wide .summary-table td:nth-child(1) {
    width: 11.5%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;

  }

  /* 2. Time */
  .wrap.summary-wide .summary-table th:nth-child(2),
  .wrap.summary-wide .summary-table td:nth-child(2) {
    width: 9%;
  }

  /* 3. Product - wrap giống Excel */
  .wrap.summary-wide .summary-table th:nth-child(3),
  .wrap.summary-wide .summary-table td:nth-child(3) {
    width: 14%;
    white-space: normal;
    word-break: break-word;
  }

  /* 4. Weight */
  .wrap.summary-wide .summary-table th:nth-child(4),
  .wrap.summary-wide .summary-table td:nth-child(4) {
    width: 5%;
  }

  /* 5. Customer ID */
  .wrap.summary-wide .summary-table th:nth-child(5),
  .wrap.summary-wide .summary-table td:nth-child(5) {
    width: 7%;
  }

  /* 6. Customer - wrap giống Excel */
  .wrap.summary-wide .summary-table th:nth-child(6),
  .wrap.summary-wide .summary-table td:nth-child(6) {
    width: 10.5%;
    white-space: normal;
    word-break: break-word;
  }

  /* 7. Group ID - wrap cả mã dài không có khoảng trắng */
.wrap.summary-wide .summary-table th:nth-child(7),
.wrap.summary-wide .summary-table td:nth-child(7) {
  width: 7%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

  /* 8. China - tăng nhẹ */
  .wrap.summary-wide .summary-table th:nth-child(8),
  .wrap.summary-wide .summary-table td:nth-child(8) {
    width: 9%;
  }

  /* 9. Mong Cai - tăng nhẹ */
  .wrap.summary-wide .summary-table th:nth-child(9),
  .wrap.summary-wide .summary-table td:nth-child(9) {
    width: 9%;
  }

  /* 10. Dispatched - wrap giống Excel */
  .wrap.summary-wide .summary-table th:nth-child(10),
  .wrap.summary-wide .summary-table td:nth-child(10) {
    width: 18%;
    white-space: normal;
    word-break: break-word;
  }
}

    .card {
      background: var(--card-bg);
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 12px;
      box-shadow: 0 1px 5px rgba(0,0,0,0.12);
    }

    label {
      display: block;
      font-weight: bold;
      margin-top: 8px;
      margin-bottom: 5px;
    }

    input, select, textarea, button {
      width: 100%;
      box-sizing: border-box;
      font-size: 18px;
      padding: 10px;
         margin-top: 6px;
      border-radius: 8px;
    }

    input, select, textarea {
      border: 1px solid #ccc;
      background: white;
    }

    textarea {
    resize: vertical;
    min-height: 45px;
    max-height: 385px;
    line-height: 1.35;
    font-family: inherit;
  }

    button {
      border: 0;
      background: var(--blue);
      color: white;
      font-weight: bold;
    }

    button:disabled {
      opacity: 0.55;
    }

    select:disabled {
      opacity: 0.55;
      background: #eee;
      cursor: not-allowed;
    }

    button.secondary {
      background: #555;
    }

    button.danger {
      background: var(--red);
    }

button.scan-btn {
  padding: 0;
  font-size: 28px;
  line-height: 1;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #777;       /* mặc định màu xám */
  color: white;
}

button.scan-active {
  background: #16a34a;    /* camera đang bật thì màu xanh */
  color: white;
}

button.scan-paused {
  background: #c62828;    /* đã scan xong, đang pause */
  color: white;
}

    .button-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin: 6px 0;
    }

    .button-row button {
      margin: 0;
    }

   .input-scan-row {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 5px;
    align-items: stretch;
    margin-top: 6px;
}
.input-scan-row input,
.input-scan-row button {
  margin: 0;
  height: 45px; /* chỉnh 54 / 56 / 58 tùy mắt */
      font-weight: lighter;
}

.text-input-wrap {
  position: relative;
  margin-top: 6px;
}

.text-input-wrap input,
.customer-combo-wrap input {
  width: 100%;
  display: block;
  padding-right: 36px;
}

.input-scan-row .text-input-wrap {
  min-width: 0;
  margin-top: 0;
}

.input-scan-row .text-input-wrap input {
  margin: 0;
  height: 45px;
}

.clear-input-btn {
  position: absolute;
  top: 50%;
  right: 7px;
  z-index: 4;

  width: 28px;
  min-width: 0;
  height: 28px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: #777;
  font-size: 18px;
  line-height: 1;
  font-weight: normal;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.clear-input-btn:hover,
.clear-input-btn:focus {
  background: transparent;
  color: #222;
  outline: none;
}


/* Dropdown lai input cho Mã Khách */
.customer-combo-wrap {
  position: relative;
  margin-top: 6px;
}

.customer-combo-wrap input {
  margin-top: 0;
}

.customer-combo-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.customer-combo-option,
.customer-combo-empty,
.customer-combo-loading {
  padding: 9px 10px;
  border-bottom: 1px solid #eee;
  background: #fff;
  line-height: 1.25;
}

.customer-combo-option:last-child,
.customer-combo-empty:last-child,
.customer-combo-loading:last-child {
  border-bottom: 0;
}

.customer-combo-option {
  cursor: pointer;
}

.customer-combo-option:hover,
.customer-combo-option.active {
  background: #e8f0fe;
}

.customer-combo-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.customer-combo-code {
  font-size: 16px;
  font-weight: bold;
  word-break: break-word;
}

.customer-combo-separator {
  color: #777;
  font-size: 14px;
}

.customer-combo-name {
  color: #444;
  font-size: 14px;
  word-break: break-word;
}

.customer-combo-meta,
.customer-combo-empty,
.customer-combo-loading {
  color: #666;
  font-size: 12px;
}

.customer-combo-meta {
  margin-top: 2px;
  word-break: break-word;
}

.camera-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: black;
  border-radius: 12px;
  margin-top: 10px;
  position: relative;
}

    .camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  border-radius: 0;
}
.torch-btn,
.camera-power-btn {
  position: absolute;
  top: 2px;
  z-index: 5;

  /* Vùng bấm lớn hơn, nhưng nút vẫn nhìn như icon nổi không nền. */
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  box-shadow: none;

  color: #999;
  font-size: 24px;
  line-height: 1;
  font-weight: normal;
  font-family: Arial, sans-serif;

  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.camera-power-btn {
  left: 2px;
  font-size: 0; /* Icon vẽ bằng CSS để tránh lỗi font trên Android. */
}

.camera-power-btn::before {
  content: '';
  display: block;
}

/* Camera tắt: hình tròn đặc = bấm để bật camera. */
.camera-power-btn::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: currentColor;
  box-sizing: border-box;
}

/* Camera bật: hình tròn rỗng = bấm để tắt camera. */
.camera-power-btn.camera-on::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  box-sizing: border-box;
}

.torch-btn {
  right: 2px;
}

.torch-btn.torch-on,
.camera-power-btn.camera-on {
  color: #fff;
}

.scan-box-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.scan-box-overlay.visible {
  opacity: 1;
}

.scan-box-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  filter:
    drop-shadow(0 0 1px var(--scan-outline-black-1))
    drop-shadow(0 0 1.5px var(--scan-outline-black-2));
}

/* Vẽ khung bao bằng background giống crosshair, không dùng border.
   Như vậy màu/alpha render đồng nhất hơn trên mobile browser. */
.scan-box-corner::before,
.scan-box-corner::after {
  content: '';
  position: absolute;
  background: var(--scan-green);
}

.scan-box-corner.tl {
  left: 0;
  top: 0;
}

.scan-box-corner.tl::before {
  left: 0;
  top: 0;
  width: 20px;
  height: 2px;
}

.scan-box-corner.tl::after {
  left: 0;
  top: 0;
  width: 2px;
  height: 20px;
}

.scan-box-corner.tr {
  right: 0;
  top: 0;
}

.scan-box-corner.tr::before {
  right: 0;
  top: 0;
  width: 20px;
  height: 2px;
}

.scan-box-corner.tr::after {
  right: 0;
  top: 0;
  width: 2px;
  height: 20px;
}

.scan-box-corner.bl {
  left: 0;
  bottom: 0;
}

.scan-box-corner.bl::before {
  left: 0;
  bottom: 0;
  width: 20px;
  height: 2px;
}

.scan-box-corner.bl::after {
  left: 0;
  bottom: 0;
  width: 2px;
  height: 20px;
}

.scan-box-corner.br {
  right: 0;
  bottom: 0;
}

.scan-box-corner.br::before {
  right: 0;
  bottom: 0;
  width: 20px;
  height: 2px;
}

.scan-box-corner.br::after {
  right: 0;
  bottom: 0;
  width: 2px;
  height: 20px;
}

    .scan-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;              /* vùng bấm, không phải kích thước nhìn thấy */
  height: 92px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 3;
}

.scan-guide::before,
.scan-guide::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  filter:
    drop-shadow(0 0 1px var(--scan-outline-black-1))
    drop-shadow(0 0 1.5px var(--scan-outline-black-2));
}

/* Nét ngang */
.scan-guide::before {
  width: 40px;
  height: 2px;
  background-image: linear-gradient(
    to right,
    var(--scan-green) 0 14px,
    transparent 14px 26px,
    var(--scan-green) 26px 40px
  );
}

/* Nét dọc */
.scan-guide::after {
  width: 2px;
  height: 40px;
  background-image: linear-gradient(
    to bottom,
    var(--scan-green) 0 14px,
    transparent 14px 26px,
    var(--scan-green) 26px 40px
  );
}

/* Pause màu đỏ cũng sửa giống vậy */
.scan-guide.paused::before {
  background-image: linear-gradient(
    to right,
    var(--red) 0 14px,
    transparent 14px 26px,
    var(--red) 26px 40px
  );
}

.scan-guide.paused::after {
  background-image: linear-gradient(
    to bottom,
    var(--red) 0 14px,
    transparent 14px 26px,
    var(--red) 26px 40px
  );
}

    .hidden {
      display: none;
    }

    .status {
  padding: 12px;
  border-radius: 10px;
  background: #e8e8e8;
  word-break: break-word;
  line-height: 1.45;
  margin-top: 8px;
  white-space: pre-line;
}

    .ok {
      background: var(--green-bg);
    }

    .err {
      background: var(--red-bg);
    }

    .warn {
      background: var(--yellow-bg);
    }

    .small {
      font-size: 13px;
      color: #666;
      line-height: 1.4;
	  margin: 0px;
    }

    .last-code {
      font-size: 18px;
      font-weight: bold;
      word-break: break-all;
      margin-top: 10px;
	  display: none;
    }

    .search-row {
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 8px;
    align-items: start;
  }

    .search-row.with-scan {
    grid-template-columns: 1fr 58px 58px;
  }

    .search-row textarea,
    .search-row button {
      margin-top: 0;
    }

    .search-row button {
    width: 58px;
    height: 45px;
    padding: 0px;
    font-size: 30px;
    font-weight: lighter;
    border-radius: 10px;
}

    .page-header {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-bottom: 8px;
    }

    .page-header button {
      width: auto;
      min-width: 72px;
      margin-top: 0;
      padding: 8px 10px;
      background: #555;
      font-size: 16px;
    }

    .page-title {
      font-size: 16px;
      font-weight: bold;
      line-height: 1.2;
      color: #555;
    }

    .result-search-box {
      margin-bottom: 12px;
    }

    .result-summary {
  font-size: 14px;
  color: #555;
  margin: 8px 0 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

    .tracking-card {
      position: relative;
      border: 1px solid #ddd;
      border-radius: 14px;
      padding: 12px;
      margin: 10px 0;
      background: #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

    .result-index-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      min-width: 28px;
      height: 28px;
      padding: 0 8px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #333;
      color: #fff;
      font-size: 14px;
      font-weight: bold;
      line-height: 1;
      box-sizing: border-box;
    }

    .tracking-code {
      font-size: 18px;
      font-weight: bold;
      word-break: break-all;
      margin-bottom: 4px;
      padding-right: 48px;
    }

    .tracking-subtitle {
      font-size: 14px;
      color: #555;
      word-break: break-word;
      margin-bottom: 10px;
    }

    .info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 10px;
    }

    .info-item {
      background: #f5f5f5;
      border-radius: 10px;
      padding: 8px;
      min-width: 0;
    }

    .info-label {
      font-size: 12px;
      color: #666;
      margin-bottom: 3px;
    }

    .info-value {
      font-size: 14px;
      font-weight: bold;
      word-break: break-word;
    }

    .timeline {
      margin-top: 10px;
      border-left: 3px solid #ddd;
      padding-left: 11px;
    }

    .timeline-item {
      position: relative;
      padding: 3px 0 9px;
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: -18px;
      top: 6px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #bbb;
    }

    .timeline-item.done::before {
      background: #16a34a;
    }

    .timeline-label {
      font-size: 13px;
      color: #555;
    }

    .timeline-date {
      font-size: 14px;
      font-weight: bold;
      word-break: break-word;
    }

    .table-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border: 1px solid #ddd;
      border-radius: 10px;
      background: #fff;
    }

    .summary-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
  width: 100%;
  font-size: 13px;
}

    .summary-table th,
    .summary-table td {
      border-bottom: 1px solid #e5e5e5;
      padding: 8px;
      text-align: left;
      vertical-align: top;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere;
    }

    .summary-table th {
      background: #f1f1f1;
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .summary-table th.sortable {
      cursor: pointer;
      user-select: none;
    }

    .summary-table th.sortable::after {
      content: ' ⇅';
      color: #888;
      font-size: 11px;
    }

    .summary-table th.sortable.sort-asc::after {
      content: ' ↑';
      color: #222;
    }

    .summary-table th.sortable.sort-desc::after {
      content: ' ↓';
      color: #222;
    }

    @media (max-width: 480px) {
      body {
        padding: 8px;
      }

      .card {
        padding: 12px;
      }

      .search-row {
      grid-template-columns: 1fr 52px;
      gap: 6px;
    }

      .search-row.with-scan {
      grid-template-columns: 1fr 52px 52px;
    }

    .search-row button {
      width: 52px;
      height: 45px;
      padding: 0;
      font-size: 25px;
    }

      .info-grid {
        grid-template-columns: 1fr;
      }

      .page-header button {
        min-width: 66px;
        padding: 8px;
        font-size: 15px;
      }

      .page-title {
        font-size: 15px;
      }
    }

/* Mobile only: freeze Tracking + compact columns */
@media (max-width: 899px) {
  .summary-table {
    table-layout: fixed;
    min-width: 900px;
    font-size: 12.5px;
  }

  .summary-table th,
  .summary-table td {
    padding: 5px 4px;
    line-height: 1.22;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 1. Tracking number - freeze, giữ nguyên độ rộng hiện tại */
  .summary-table th:nth-child(1),
  .summary-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 4;

    width: 91px;
    min-width: 91px;
    max-width: 91px;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;

    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.12);
  }

  .summary-table th:nth-child(1) {
    z-index: 8;
    background: #f1f1f1;
  }

  /* 2. Time */
  .summary-table th:nth-child(2),
  .summary-table td:nth-child(2) {
    width: 92px;
  }

  /* 3. Product name - wrap */
  .summary-table th:nth-child(3),
  .summary-table td:nth-child(3) {
    width: 105px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 4. Weight */
  .summary-table th:nth-child(4),
  .summary-table td:nth-child(4) {
    width: 48px;
  }

  /* 5. Customer ID */
  .summary-table th:nth-child(5),
  .summary-table td:nth-child(5) {
    width: 68px;
  }

  /* 6. Customer name - wrap */
  .summary-table th:nth-child(6),
  .summary-table td:nth-child(6) {
    width: 95px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 7. Group ID - wrap */
  .summary-table th:nth-child(7),
  .summary-table td:nth-child(7) {
    width: 75px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 8. China */
  .summary-table th:nth-child(8),
  .summary-table td:nth-child(8) {
    width: 88px;
  }

  /* 9. Mong Cai */
  .summary-table th:nth-child(9),
  .summary-table td:nth-child(9) {
    width: 88px;
  }

  /* 10. Dispatched - wrap */
  .summary-table th:nth-child(10),
  .summary-table td:nth-child(10) {
    width: 95px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

}

/* Zebra rows - áp dụng cả mobile và PC */
.summary-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.summary-table tbody tr:nth-child(even) td {
  background: #f7f9fc;
}

/* Giữ màu nền đúng cho cột Tracking khi sticky trên mobile */
.summary-table tbody tr:nth-child(odd) td:first-child {
  background: #ffffff;
}

.summary-table tbody tr:nth-child(even) td:first-child {
  background: #f7f9fc;
}

textarea.save-log-loaded {
  border-color: #16a34a !important;
  outline: 0.5px solid rgba(22, 163, 74, 0.85);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18);
}

/* Highlight ô hiện đang là đích scan */
input.active-scan-target,
textarea.active-scan-target {
  border-color: #16a34a !important;
  outline: 0.5px solid rgba(22, 163, 74, 0.85);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18);
}

/* Clear button inside Summary search textarea */
.search-input-wrap {
  position: relative;
  min-width: 0;
}

.search-input-wrap textarea {
  width: 100%;
  display: block;
  padding-right: 34px;
}

.search-input-wrap .clear-search-btn {
  position: absolute;
  top: 7px;
  right: 4px;
  z-index: 3;

  width: 28px;
  min-width: 0;
  height: 28px;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: #777;
  font-size: 18px;
  line-height: 1;
  font-weight: normal;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.search-input-wrap .clear-search-btn:hover,
.search-input-wrap .clear-search-btn:focus {
  background: transparent;
  color: #222;
  outline: none;
}

/* Desktop only: làm thanh cuộn trong ô Search mảnh và sạch hơn.
   Mobile gần như không bị ảnh hưởng vì dùng pointer/hover khác PC. */
@media (hover: hover) and (pointer: fine) {
  textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.55) transparent;
    scrollbar-gutter: stable;
  }

  textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  textarea::-webkit-scrollbar-track {
    background: transparent;
  }

  textarea::-webkit-scrollbar-thumb {
    background-color: rgba(120, 120, 120, 0.48);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
  }

  textarea::-webkit-scrollbar-thumb:hover {
    background-color: rgba(80, 80, 80, 0.65);
  }

  textarea::-webkit-scrollbar-corner {
    background: transparent;
  }

  .search-input-wrap textarea {
    padding-right: 40px;
  }

  .search-input-wrap .clear-search-btn {
    right: 8px;
  }
}


  
/* Bottom save logs */
.save-log-wrap {
  position: relative;
  margin-top: 0px;
}

.save-log-wrap textarea {
  width: 100%;
  min-height: 300px;
  max-height: 500px;
  padding-top: 6px;
  padding-right: 9px;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  background: #fff;
  color: #333;
}

.save-log-all-btn {
  position: absolute;
  top: 3px;
  right: -7px;
  z-index: 3;

  width: 36px;
  height: 36px;
  min-width: 36px;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;

  color: #555;
  font-size: 18px;
  line-height: 1;
  font-weight: bolder;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  touch-action: manipulation;
}

.save-log-all-btn:hover,
.save-log-all-btn:focus,
.save-log-all-btn:active {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  color: #111;
}

.save-log-all-btn:hover,
.save-log-all-btn:focus {
  background: transparent;
  color: #111;
  outline: none;
}
