.panel {
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  background: #fff;
}

.row-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.response-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.response-status-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.response-status-tile {
  display: grid;
  gap: 6px;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--ff-color-deep-purpur);
  background: #fff;
  text-decoration: none;
}

.response-status-tile.active {
  border-color: var(--ff-color-deep-purpur);
  background: var(--ff-color-soft-purple);
}

.response-status-tile span {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.response-status-tile strong {
  font-size: 24px;
  line-height: 1;
}

.response-status-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.response-status-filter-pills a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--ff-color-border);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ff-color-deep-purpur);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.response-status-filter-pills a.active {
  color: #fff;
  border-color: var(--ff-color-deep-purpur);
  background: var(--ff-color-deep-purpur);
}

.responses-table-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.responses-table-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ff-color-border);
}

.responses-table-header h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.responses-table-header p {
  margin: 0;
  color: var(--ff-color-text-muted);
  font-size: 14px;
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 3px;
  background: var(--ff-color-surface);
}

.view-switch-item {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--ff-color-text-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.view-switch-item.active {
  color: #fff;
  background: var(--ff-color-deep-purpur);
}

.responses-table-wrap {
  overflow-x: auto;
}

.responses-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.responses-table th,
.responses-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ff-color-border);
  text-align: left;
  vertical-align: top;
}

.responses-table th {
  color: var(--ff-color-text-muted);
  background: var(--ff-color-surface);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.responses-table td {
  color: var(--ff-color-text);
  font-size: 14px;
  line-height: 1.35;
}

.responses-table tr:last-child td {
  border-bottom: 0;
}

.responses-table td strong,
.responses-table td span {
  display: block;
}

.responses-table td strong {
  overflow-wrap: anywhere;
}

.responses-table td span {
  margin-top: 3px;
  color: var(--ff-color-text-muted);
  overflow-wrap: anywhere;
}

.responses-table .status-badge,
.responses-table .table-positive,
.responses-table .table-muted {
  display: inline-flex;
  margin-top: 0;
}

.table-positive {
  color: var(--ff-color-deep-purpur);
  font-weight: 800;
}

.table-muted {
  color: var(--ff-color-text-muted);
}

.table-detail-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--ff-color-deep-purpur);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.status-filter label {
  display: grid;
  gap: 6px;
}

.status-filter select {
  min-width: 180px;
}

.status-filter button {
  min-height: 44px;
}

.response-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.response-compact-card {
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.response-compact-card:hover {
  border-color: rgba(55, 11, 39, 0.34);
  box-shadow: 0 10px 26px rgba(55, 11, 39, 0.07);
}

.response-compact-card-header {
  display: grid;
  justify-items: start;
  padding: 18px 18px 14px;
}

.response-compact-card-header h3 {
  margin: 9px 0 4px;
  overflow-wrap: anywhere;
  color: var(--ff-color-deep-purpur);
  font-size: 20px;
}

.response-compact-card-header p {
  margin: 0;
  color: var(--ff-color-text-muted);
  font-size: 13px;
}

.response-compact-price {
  margin-top: 16px;
  color: var(--ff-color-text);
  font-size: 19px;
  line-height: 1.2;
}

.response-compact-card-header .response-date {
  margin-top: 5px;
  color: var(--ff-color-text-muted);
  font-size: 12px;
}

.response-compact-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ff-color-border);
  border-bottom: 1px solid var(--ff-color-border);
  background: var(--ff-color-surface);
}

.response-compact-card-facts div {
  min-width: 0;
  padding: 12px 14px;
}

.response-compact-card-facts div + div {
  border-left: 1px solid var(--ff-color-border);
}

.response-compact-card-facts span,
.response-compact-card-facts strong {
  display: block;
}

.response-compact-card-facts span {
  margin-bottom: 4px;
  color: var(--ff-color-text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.response-compact-card-facts strong {
  overflow: hidden;
  color: var(--ff-color-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-compact-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 14px 16px;
}

.response-compact-card-actions form {
  display: grid;
}

.response-compact-card-actions button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}

.response-detail-button {
  border-color: var(--ff-color-border);
  color: var(--ff-color-deep-purpur);
  background: #fff;
}

.response-reject-button {
  width: 40px;
  padding: 0;
  border-color: rgba(239, 140, 130, 0.42);
  color: #9b2c28;
  background: #fff5f3;
  font-size: 20px;
}

.response-compact-card-actions button:disabled,
.response-drawer-status-actions button:disabled {
  opacity: 0.48;
  cursor: default;
}

body.response-drawer-open {
  overflow: hidden;
}

.response-drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: rgba(45, 0, 31, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.response-drawer-open .response-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.response-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(540px, 92vw);
  height: 100vh;
  border-left: 1px solid var(--ff-color-border);
  background: #fff;
  box-shadow: -18px 0 48px rgba(54, 0, 36, 0.16);
  transform: translateX(102%);
  transition: transform 220ms ease;
  pointer-events: none;
}

.response-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.response-drawer-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.response-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ff-color-border);
  padding: 24px 28px 20px;
}

.response-drawer-header h2 {
  margin: 7px 0 6px;
  font-family: var(--ff-font-display);
  font-size: 32px;
  line-height: 1.05;
}

.response-drawer-header p {
  margin: 0;
  color: var(--ff-color-text-muted);
  font-size: 14px;
}

.response-drawer-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--ff-color-border);
  border-radius: 50%;
  padding: 0;
  color: var(--ff-color-deep-purpur);
  background: #fff;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.response-drawer-content {
  overflow-y: auto;
  padding: 24px 28px 32px;
}

.response-drawer-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ff-color-text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.response-drawer-price {
  display: block;
  margin-bottom: 24px;
  color: var(--ff-color-text);
  font-size: 26px;
}

.response-drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.response-drawer-facts div {
  min-width: 0;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--ff-color-surface);
}

.response-drawer-facts span,
.response-drawer-facts strong {
  display: block;
}

.response-drawer-facts span {
  margin-bottom: 4px;
  color: var(--ff-color-text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.response-drawer-facts strong {
  overflow-wrap: anywhere;
  color: var(--ff-color-text);
  font-size: 14px;
}

.response-drawer-facts a {
  color: var(--ff-color-deep-purpur);
}

.response-drawer-section {
  margin-top: 22px;
  border-top: 1px solid var(--ff-color-border);
  padding-top: 22px;
}

.response-drawer-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.response-drawer-section p {
  margin: 0;
  color: var(--ff-color-text-muted);
  line-height: 1.6;
}

.response-drawer-footer {
  border-top: 1px solid var(--ff-color-border);
  padding: 16px 28px;
  background: #fff;
}

.response-drawer-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.response-drawer-status-actions form {
  display: grid;
  flex: 1 1 100px;
}

.response-drawer-status-actions button {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.response-hide-form {
  flex-basis: 100% !important;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ff-color-deep-purpur);
  background: var(--ff-color-surface);
  font-size: 12px;
  font-weight: 800;
}

.status-new {
  background: var(--ff-color-soft-purple);
}

.status-seen {
  background: #e8f1ff;
}

.status-selected {
  background: #ddf6e8;
}

.status-rejected {
  background: var(--ff-color-coral-shade-1);
}

.status-in_progress {
  background: #e8f1ff;
}

.status-needs_details {
  background: var(--ff-color-coral-shade-1);
}

.status-tender_created {
  background: #ddf6e8;
}

.admin-client-request-card p {
  margin: 0;
  color: var(--ff-color-text-muted);
  line-height: 1.45;
}

.admin-client-request-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.admin-client-request-summary h2 {
  margin: 0 0 8px;
}

.admin-client-request-copy {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(55, 11, 39, 0.1);
  border-radius: 8px;
  background: var(--ff-color-surface);
}

.admin-client-request-copy strong,
.admin-client-request-files strong,
.admin-linked-request-tender span {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-client-request-phone {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--ff-color-soft-purple);
  color: var(--ff-color-deep-purpur);
  font-weight: 800;
  white-space: nowrap;
}

.admin-linked-request-tender {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--ff-color-border);
  padding-top: 14px;
}

.admin-linked-request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-client-request-card .admin-tender-card-bottom {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  border-top: 1px solid var(--ff-color-border);
  padding-top: 14px;
}

.response-details {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--ff-color-border);
  background: #fff;
}

.response-details p {
  color: var(--ff-color-text-muted);
  line-height: 1.6;
}

.response-details h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.response-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.response-detail-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  background: var(--ff-color-surface);
}

.response-detail-item span {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.response-detail-item strong {
  overflow-wrap: anywhere;
  color: var(--ff-color-text);
  font-size: 14px;
}

.response-detail-wide {
  grid-column: 1 / -1;
}

.response-text-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ff-color-border);
}

.manager-note-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ff-color-border);
}

.manager-note-form button {
  justify-self: start;
}

.file-list {
  margin: 10px 0 18px;
  padding-left: 20px;
}

.file-list a {
  color: var(--ff-color-deep-purpur);
  font-weight: 800;
}
.manager-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 160px));
  gap: 10px;
  margin: 10px 0;
}

.manager-image-preview {
  display: grid;
  gap: 6px;
  color: var(--ff-color-text);
  font-size: 12px;
  text-decoration: none;
}

.manager-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ff-color-border);
  border-radius: 7px;
  object-fit: cover;
}

.manager-image-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
