.estimates-shell-page { max-width: 1500px; }
.estimates-page-shell {
  border: 1px solid rgba(85,124,164,.38);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg,rgba(8,26,45,.96),rgba(6,20,35,.98));
}
.estimates-titlebar,.estimates-title-group,.estimates-actions,.estimates-empty-actions,
.estimates-table-footer,.estimate-form-actions,.estimate-panel-title {
  display:flex;align-items:center;
}
.estimates-titlebar { justify-content:space-between;gap:16px;margin-bottom:14px; }
.estimates-title-group,.estimates-actions,.estimates-empty-actions { gap:10px; }
.estimates-title-group h1,.estimates-title-group p { margin:0; }
.estimates-title-group h1 { font-size:1.08rem;letter-spacing:.03em;text-transform:uppercase; }
.estimates-page-icon {
  display:grid;place-items:center;width:36px;height:36px;border-radius:9px;
  border:1px solid rgba(138,190,255,.55);
  background:linear-gradient(180deg,#2c79ee,#1555ba);color:#fff;font-weight:800;
}
.estimates-summary-grid {
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px;
  border:1px solid rgba(91,128,166,.22);border-radius:9px;background:rgba(9,29,49,.82);
}
.estimates-summary-grid article {
  min-height:92px;padding:14px 18px;border-right:1px solid rgba(91,128,166,.2);
}
.estimates-summary-grid article:last-child { border-right:0; }
.estimates-summary-grid small,.estimates-summary-grid strong,.estimates-summary-grid span { display:block; }
.estimates-summary-grid small,.estimates-summary-grid span,.estimate-panel-empty,.estimate-detail-hero p {
  color:var(--muted-text,#8fa6bd);font-size:.72rem;
}
.estimates-summary-grid strong { margin:8px 0 4px;font-size:1.3rem; }
.estimates-filterbar {
  display:grid;grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(145px,.65fr)) auto;
  gap:10px;margin-bottom:12px;
}
.estimates-filterbar input,.estimates-filterbar select,.estimate-panel input,
.estimate-panel select,.estimate-panel textarea { width:100%;min-height:38px; }
.estimates-table-shell,.estimate-panel,.estimate-detail-hero {
  border:1px solid rgba(91,128,166,.22);border-radius:9px;background:rgba(9,29,49,.82);
}
.estimates-table-header {
  display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr .75fr .75fr .65fr .45fr;
  gap:12px;padding:12px 14px;border-bottom:1px solid rgba(91,128,166,.2);
  color:#9fb4ca;font-size:.68rem;text-transform:uppercase;
}
.estimates-empty-state {
  min-height:300px;display:grid;place-items:center;align-content:center;gap:9px;padding:28px;text-align:center;
}
.estimates-empty-state h2,.estimates-empty-state p { margin:0; }
.estimates-empty-icon {
  display:grid;place-items:center;width:58px;height:58px;border-radius:50%;
  border:1px dashed rgba(112,148,186,.34);background:rgba(17,44,72,.45);color:#7193b7;
}
.estimates-table-footer { justify-content:space-between;padding:12px 2px 0;color:#8fa6bd;font-size:.72rem; }
.estimate-stepper { display:flex;justify-content:center;gap:36px;list-style:none;margin:8px 0 18px;padding:0; }
.estimate-stepper li { display:flex;align-items:center;gap:8px;color:#8fa6bd;font-size:.8rem; }
.estimate-stepper span {
  display:grid;place-items:center;width:25px;height:25px;border:1px solid rgba(112,148,186,.5);border-radius:50%;
}
.estimate-stepper .active { color:inherit; }
.estimate-stepper .active span { color:#fff;background:#1e6be0; }
.estimate-builder-grid { display:grid;grid-template-columns:.9fr 1.5fr .65fr;gap:14px; }
.estimate-panel { padding:16px; }
.estimate-panel h2 { margin:0 0 14px;font-size:.86rem; }
.estimate-panel label { display:grid;gap:6px;margin-bottom:13px;font-size:.74rem; }
.estimate-two-column { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.estimate-panel-title { justify-content:space-between;gap:10px; }
.estimate-line-header {
  display:grid;grid-template-columns:1.8fr .65fr .65fr .75fr;gap:10px;padding:10px 0;
  border-bottom:1px solid rgba(91,128,166,.2);color:#9fb4ca;font-size:.66rem;text-transform:uppercase;
}
.estimate-panel-empty { min-height:120px;display:grid;place-items:center;padding:14px;text-align:center; }
.estimate-summary-list { display:grid;gap:11px;margin:0; }
.estimate-summary-list div { display:grid;grid-template-columns:1fr auto;gap:12px; }
.estimate-summary-list dt { color:#8fa6bd;font-size:.74rem; }
.estimate-summary-list dd { margin:0;font-size:.78rem; }
.estimate-total { padding-top:11px;border-top:1px solid rgba(91,128,166,.2);font-weight:800; }
.estimate-notes-panel { margin-top:14px; }
.estimate-notes-panel textarea { min-height:88px;resize:vertical; }
.estimate-form-actions { justify-content:flex-end;gap:10px;margin-top:14px; }
.estimate-detail-hero {
  display:grid;grid-template-columns:minmax(250px,1.3fr) repeat(5,minmax(110px,.55fr));
  align-items:center;gap:14px;padding:16px;
}
.estimate-detail-hero h2,.estimate-detail-hero p { margin:0; }
.estimate-detail-hero p { margin-top:5px; }
.estimate-detail-hero small,.estimate-detail-hero strong { display:block; }
.estimate-detail-hero small { color:#8fa6bd;font-size:.7rem; }
.estimate-detail-hero strong { margin-top:7px;font-size:.9rem; }
.estimate-detail-tabs { display:flex;gap:8px;margin:14px 0;border-bottom:1px solid rgba(91,128,166,.2); }
.estimate-detail-tabs button {
  border:0;border-bottom:2px solid transparent;padding:10px 14px;background:transparent;color:#8fa6bd;
}
.estimate-detail-tabs .active { border-bottom-color:#2d7df2;color:#65a4ff; }
.estimate-detail-grid { display:grid;grid-template-columns:.75fr 1.1fr 1fr;gap:14px; }
@media (max-width:1150px) {
  .estimates-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .estimates-filterbar,.estimate-builder-grid,.estimate-detail-grid { grid-template-columns:1fr; }
  .estimate-detail-hero { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .estimates-table-header { display:none; }
}
@media (max-width:720px) {
  .estimates-titlebar,.estimates-actions,.estimates-empty-actions,.estimates-table-footer,
  .estimate-form-actions,.estimate-stepper,.estimate-detail-tabs { align-items:stretch;flex-direction:column; }
  .estimates-summary-grid,.estimate-detail-hero,.estimate-two-column { grid-template-columns:1fr; }
  .estimates-summary-grid article { border-right:0;border-bottom:1px solid rgba(91,128,166,.2); }
}
