/* ===== BID DOCUMENT SHELF (PR504) ===== */
.bds-shelf {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Tab bar */
.bds-tab-bar {
  display: flex;
  border-bottom: 1px solid #D4D1CA;
  background: #fff;
  flex-shrink: 0;
  overflow-x: auto;
}
.bds-tab {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #7A7974;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.15s;
}
.bds-tab:hover { color: #28251D; }
.bds-tab-active {
  color: #FF6B00;
  border-bottom-color: #FF6B00;
}

/* File list area */
.bds-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  min-height: 0;
}

/* Upload row */
.bds-upload-row {
  margin-bottom: 12px;
}
.bds-upload-btn {
  display: inline-block;
  padding: 7px 14px;
  background: #F7F6F2;
  border: 1px dashed #D4D1CA;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #28251D;
  cursor: pointer;
  transition: background 0.15s;
}
.bds-upload-btn:hover { background: #F0EFEC; border-color: #FF6B00; }

/* File rows */
.bds-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F0EFEC;
  gap: 8px;
}
.bds-file-row:last-child { border-bottom: none; }
.bds-file-info { flex: 1; min-width: 0; }
.bds-file-name {
  font-size: 13px;
  color: #28251D;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bds-file-date {
  font-size: 11px;
  color: #7A7974;
  margin-top: 1px;
}
.bds-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bds-view-btn, .bds-dl-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #D4D1CA;
  background: #fff;
  color: #28251D;
  transition: background 0.15s;
}
.bds-view-btn:hover { background: #FF6B00; color: #fff; border-color: #FF6B00; }
.bds-dl-btn:hover   { background: #F0EFEC; }

/* States */
.bds-empty {
  color: #7A7974;
  font-size: 13px;
  padding: 16px 0;
}
.bds-error { color: #A12C7B; }
.bds-loading {
  color: #7A7974;
  font-size: 13px;
  padding: 16px 0;
}

/* Inline PDF viewer */
.bds-viewer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 10;
  display: flex;
  flex-direction: column;
}
.bds-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #D4D1CA;
  background: #fff;
  flex-shrink: 0;
}
.bds-viewer-title {
  font-size: 13px;
  font-weight: 700;
  color: #1A1A2E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.bds-viewer-close {
  background: none;
  border: 1px solid #D4D1CA;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  color: #28251D;
}
.bds-viewer-close:hover { background: #F0EFEC; }
.bds-viewer-iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.bds-sow-row {
  padding: 10px 12px;
  border-bottom: 1px solid #D4D1CA;
  background: #F7F6F2;
}
.bds-sow-btn {
  width: 100%;
  padding: 8px 0;
  background: #1A1A2E;
  color: #FF6B00;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.bds-sow-btn:hover { background: #0f0f1e; }
