/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f5f5f5; color: #111; }
a { color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
.card { background: white; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.project-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.project-progress-card {
  min-width: 240px;
  max-width: 320px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3e7eb;
  border-radius: 12px;
  background: #fff;
}
.project-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.project-progress-label {
  font-size: 13px;
  color: #5d6670;
}
.project-progress-value {
  font-size: 24px;
  line-height: 1;
}
.project-progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebef;
}
.project-progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s ease;
}
.project-progress-fill-low { background: #98a2ad; }
.project-progress-fill-mid { background: #2f6fec; }
.project-progress-fill-high { background: #1e8e5a; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid #ddd; padding: 8px; text-align: left; }
.highlight-ai { background: #fff4cf; }
input, textarea, select, button { padding: 8px; margin: 4px 0; }
button { cursor: pointer; }
.nav-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.nav-tabs span { padding: 6px 10px; background: #eee; border-radius: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.error { color: #b00020; margin: 0; }
.ghost { background: #f0f0f0; border: 1px solid #ddd; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-gap: 12px; gap: 12px; margin-top: 12px; }
.media-thumb { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; background: #f2f2f2; }
.video-player { width: 100%; max-width: 520px; border-radius: 8px; background: #000; }
.video-card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px; background: #fcfcfc; }
.video-card-header { justify-content: space-between; }
.inspection-block { border-top: 1px solid #ececec; padding-top: 10px; }
.inspection-status-row { justify-content: flex-start; }
.transcript-editor { width: 100%; min-height: 160px; border: 1px solid #d8d8d8; border-radius: 8px; background: #fff; padding: 10px; resize: vertical; line-height: 1.5; font: inherit; }
.transcript-source { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.transcript-source-local { background: #e8f7ec; color: #186033; }
.transcript-source-openai { background: #e6f0ff; color: #1f4fa3; }
.transcript-source-mock { background: #fff0d9; color: #9a5a00; }
.transcript-provider { font-size: 12px; color: #555; text-transform: uppercase; }
.transcript-hint { font-size: 13px; color: #555; }
.mock-warning { margin: 0; color: #9a5a00; font-weight: 600; }
.inspection-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.inspection-steps span { padding: 4px 10px; border-radius: 999px; background: #efefef; color: #666; font-size: 12px; font-weight: 600; }
.inspection-steps span.active { background: #fff0d9; color: #8a5b00; }
.inspection-steps span.done { background: #e8f7ec; color: #186033; }
.match-card { border: 1px solid #e3e3e3; border-radius: 8px; padding: 10px; background: #fff; }
.chat-box { max-height: 240px; overflow: auto; border: 1px solid #ddd; border-radius: 8px; padding: 8px; background: #fafafa; }

.estimate-stack { gap: 10px; }
.estimate-toolbar { justify-content: space-between; }
.estimate-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #d9d9d9; border-radius: 8px; }
.estimate-table { table-layout: auto; }
.estimate-col-number { width: 56px; }
.estimate-col-name { width: auto; }
.estimate-col-room { width: 12%; }
.estimate-col-qty { width: 84px; }
.estimate-col-unit { width: 76px; }
.estimate-col-rate,
.estimate-col-cost { width: 112px; }
.estimate-col-progress { width: 110px; }
.estimate-col-actions { width: 138px; }
.estimate-table th,
.estimate-table td {
  padding: 6px 8px;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
  vertical-align: top;
}
.estimate-table th:last-child,
.estimate-table td:last-child { border-right: none; }
.estimate-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f8f8;
  font-weight: 600;
}
.estimate-table .num { text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.estimate-name-cell,
.estimate-room-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}
.estimate-name-layout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 220px;
}
.estimate-name-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.estimate-toggle {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1;
}
.estimate-toggle-spacer {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.estimate-inline-note {
  font-size: 12px;
  color: #5b6470;
}
.estimate-progress-cell {
  white-space: nowrap;
}
.estimate-progress-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.estimate-progress-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.estimate-progress-muted {
  background: #eef1f4;
  color: #4a5560;
}
.estimate-progress-pending {
  background: #fff1d8;
  color: #8a5b00;
}
.estimate-progress-approved {
  background: #e6f6eb;
  color: #13603c;
}
.estimate-progress-caption {
  font-size: 11px;
  color: #666;
}
.estimate-actions { gap: 4px; }
.estimate-actions button { padding: 4px 6px; font-size: 12px; }
.estimate-form { border: 1px solid #e5e5e5; border-radius: 8px; padding: 10px; background: #fcfcfc; }
.estimate-calc-preview { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #333; }
.hidden-file { display: none; }
.estimate-row-section td {
  background: #eef3fa;
  color: #1f3a5f;
  font-weight: 700;
}
.estimate-row-subtotal td {
  background: #edf8ef;
  color: #21552a;
  font-weight: 700;
  border-top: 1px solid #b8d8bf;
}
.estimate-row-total td {
  background: #dff0e3;
  color: #12461f;
  font-weight: 800;
  border-top: 2px solid #86b892;
  border-bottom: 2px solid #86b892;
}
.estimate-row-section td:nth-child(2),
.estimate-row-subtotal td:nth-child(2),
.estimate-row-total td:nth-child(2) {
  white-space: normal;
}
.estimate-row-subtotal td.num:last-child,
.estimate-row-total td.num:last-child {
  color: #0d5b2a;
}
.inspection-results-summary {
  margin: 0;
  color: #555;
}
.inspection-match-list {
  gap: 6px;
}
.inspection-match-row {
  justify-content: space-between;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.inspection-match-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}
.inspection-match-meta {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #555;
}

@media (max-width: 768px) {
  .container { padding: 12px; }
  .card { padding: 12px; }
  .project-header {
    align-items: stretch;
    flex-direction: column;
  }
  .project-progress-card {
    max-width: none;
  }
  .estimate-table th,
  .estimate-table td { padding: 6px; }
  .estimate-name-layout { min-width: 180px; }
  .estimate-col-room,
  .estimate-col-rate,
  .estimate-col-cost,
  .estimate-col-actions { width: auto; }
  .estimate-actions { flex-direction: column; align-items: flex-start; }
  .inspection-match-row { align-items: flex-start; }
}


