:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #20242a;
  background: #eef1f3;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; }

.workspace {
  height: 100vh;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.product-panel {
  min-width: 0;
  min-height: 0;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #d9dde1;
}

.search-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.search-box { position: relative; }
.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #697078;
  stroke-width: 2;
}
.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 38px;
  border: 1px solid #b9c0c7;
  border-radius: 4px;
  font: inherit;
  outline: none;
}
.search-box input:focus { border-color: #1674a5; box-shadow: 0 0 0 2px #d8eef8; }
.product-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid #e4e7e9;
}
.product-item {
  width: 100%;
  min-height: 43px;
  padding: 10px 9px;
  border: 0;
  border-bottom: 1px solid #edf0f1;
  background: transparent;
  color: #292d32;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.product-item:hover { background: #f2f6f8; }
.product-item.active { background: #e5f2f8; color: #075d87; font-weight: 650; }

.viewer-panel { position: relative; min-width: 0; display: flex; flex-direction: column; background: #e6e9eb; }
.viewer-toolbar {
  min-height: 52px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #d5dadd;
}
.viewer-toolbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-button { color: #086892; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.open-button:hover { text-decoration: underline; }
#pdf-viewer { width: 100%; flex: 1; border: 0; background: #fff; }

.empty-state { margin: auto; padding: 28px; text-align: center; color: #626970; }
.empty-state h1 { margin: 16px 0 6px; color: #30353a; font-size: 24px; }
.empty-state p { margin: 0; }
.document-icon {
  width: 76px;
  height: 92px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 2px solid #9ba3aa;
  color: #c4161c;
  font-weight: 800;
  font-size: 18px;
}
.message { padding: 12px; font-size: 14px; }
.error { color: #a30d12; background: #fff0f0; }

@media (max-width: 760px) {
  .workspace { height: 100vh; min-height: 0; grid-template-columns: 1fr; grid-template-rows: minmax(220px, 42vh) minmax(0, 1fr); }
  .product-panel { padding: 14px; border-right: 0; border-bottom: 1px solid #d9dde1; }
  .viewer-toolbar { min-height: 46px; }
}
