/* aac-estimate-mgr.css - Estimate Manager V110 (2026-06-08) */

/* ---- Job list rows ---- */
.aac-est-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #e8e3d9;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aac-est-row:hover {
  border-color: #C9A84C;
  box-shadow: 0 2px 12px rgba(201,168,76,0.12);
}
.aac-est-info {
  flex: 1;
  min-width: 0;
}
.aac-est-addr {
  font-size: 14px;
  font-weight: 700;
  color: #19195F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Montserrat', sans-serif;
}
.aac-est-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}
.aac-est-doc-num {
  font-size: 11px;
  font-weight: 700;
  color: #C9A84C;
  letter-spacing: 0.4px;
  font-family: 'Montserrat', sans-serif;
}
.aac-est-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.aac-est-total {
  font-size: 15px;
  font-weight: 700;
  color: #19195F;
  font-family: 'Playfair Display', serif;
}
.aac-est-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

/* ---- New estimate button ---- */
.aac-new-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #C9A84C;
  background: #C9A84C;
  color: #19195F;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  transition: opacity 0.15s;
}
.aac-new-btn:hover { opacity: 0.85; }

/* ---- Trade groups ---- */
.aac-trade-group {
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e8e3d9;
}
.aac-tg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f5f2ec;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.aac-tg-header:hover { background: #ede9df; }
.aac-tg-chev {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #6b7280;
  transition: transform 0.2s;
}
.aac-trade-group.aac-tg-collapsed .aac-tg-chev { transform: rotate(-90deg); }
.aac-tg-name {
  font-size: 12px;
  font-weight: 700;
  color: #19195F;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: 'Montserrat', sans-serif;
  flex: 1;
}
.aac-tg-count {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  font-family: 'Montserrat', sans-serif;
}
.aac-tg-sub {
  font-size: 13px;
  font-weight: 700;
  color: #19195F;
  font-family: 'Playfair Display', serif;
  margin-left: 6px;
}
.aac-tg-items {
  background: #fff;
  display: block;
}
.aac-trade-group.aac-tg-collapsed .aac-tg-items { display: none; }

/* ---- Grouped item rows ---- */
.aac-gi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #f0ece4;
}
.aac-gi-row:first-child { border-top: none; }
.aac-gi-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  font-family: 'Montserrat', sans-serif;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aac-gi-detail {
  font-size: 11px;
  color: #9ca3af;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}
.aac-gi-total {
  font-size: 13px;
  font-weight: 700;
  color: #19195F;
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Client view hides internals ---- */
body.aac-client-view-active .aac-gi-detail { display: none; }
body.aac-client-view-active [data-internal="true"] { display: none !important; }

/* ---- Pinned action bar ---- */
.aac-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #19195F;
  border-radius: 0 0 14px 14px;
  margin: 8px -16px -16px;
}
.aac-action-doc {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  font-family: 'Montserrat', sans-serif;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.aac-act-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(201,168,76,0.5);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.aac-act-btn:hover { opacity: 0.85; }
.aac-act-preview {
  background: transparent;
  color: #C9A84C;
}
.aac-act-send {
  background: #C9A84C;
  color: #19195F;
  border-color: #C9A84C;
}

/* ---- Status dropdown options hover ---- */
.aac-s-opt:hover { background: #f5f2ec !important; }

/* ---- Balance row color states ---- */
.aac-balance-row { transition: background 0.2s; }

/* ---- Mobile adjustments ---- */
@media (max-width: 820px) {
  .aac-action-bar { border-radius: 0; margin: 8px -12px -12px; }
  .aac-act-preview { display: none; }
}

/* ---- Totals divider ---- */
.results-row .aac-totals-divider {
  border: none;
  border-top: 1px solid #ece8e0;
  margin: 10px 0;
}
