#inventario-proveedores-panel > header h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.04em; margin-bottom: 8px; }
#inventario-proveedores-panel > header .brand { margin-bottom: 12px; }
#inventario-proveedores-panel .sc-subtitle { color: #62736b; font-size: .94rem; line-height: 1.5; margin: 0; max-width: 680px; }
.sc-catalog, .sc-dialog { --sc-green: #177554; --sc-border: #dce7e0; --sc-muted: #61736b; color: #21352b; }
.sc-catalog { background: #fff; border: 1px solid var(--sc-border); border-radius: 18px; padding: 24px; margin-bottom: 24px; }
.sc-catalog *, .sc-dialog * { box-sizing: border-box; }
.sc-catalog [hidden], .sc-dialog [hidden] { display: none !important; }
.sc-toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.sc-search-field { flex: 1 1 320px; }
.sc-status-field { flex: 0 1 155px; }
.sc-catalog label, .sc-dialog label { display: block; font-size: .8rem; font-weight: 750; margin-bottom: 7px; line-height: 1.4; }
.sc-catalog input, .sc-catalog select, .sc-dialog input, .sc-dialog select, .sc-dialog textarea { display: block; width: 100%; border: 1px solid #bdcfc4; border-radius: 8px; min-height: 44px; padding: 10px 12px; color: #243a2d; background: #fff; font: inherit; font-size: .9rem; }
.sc-dialog textarea { min-height: 82px; resize: vertical; }
.sc-catalog input:focus, .sc-catalog select:focus, .sc-dialog input:focus, .sc-dialog textarea:focus { outline: 3px solid #b9dfce; outline-offset: 1px; border-color: var(--sc-green); }
.sc-catalog button, .sc-dialog button { font: inherit; }
.sc-button { border: 1px solid #bdd4c8; border-radius: 8px; min-height: 44px; padding: 10px 15px; background: #fff; color: #176344; font-weight: 750 !important; font-size: .87rem !important; cursor: pointer; }
.sc-button:hover { background: #f0f7f2; }
.sc-button.sc-primary { background: var(--sc-green); color: #fff; border-color: var(--sc-green); }
.sc-button.sc-primary:hover { background: #115d42; }
.sc-button.sc-danger { color: #9b4535; border-color: #e1bbae; }
.sc-button:disabled { opacity: .48; cursor: default; }
.sc-button:focus-visible, .sc-temporary-inventory summary:focus-visible { outline: 3px solid #9fd0b9; outline-offset: 3px; }
.sc-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--sc-muted); font-size: .82rem; padding: 19px 0 15px; }
.sc-summary p { margin: 0; color: #314c3d; font-weight: 750; }
.sc-results { display: grid; gap: 0; }
.sc-card { display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(170px, 1fr) auto; gap: 18px; align-items: center; border-top: 1px solid #e5ede8; padding: 18px 0; }
.sc-card:first-child { border-top-color: var(--sc-border); }
.sc-card h3 { font: inherit; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 5px; overflow-wrap: anywhere; }
.sc-card p { margin: 3px 0; font-size: .84rem; color: var(--sc-muted); overflow-wrap: anywhere; line-height: 1.45; }
.sc-card small { display: inline-block; margin-right: 8px; margin-top: 5px; font-size: .72rem; color: #597063; }
.sc-badge { display: inline-flex; width: fit-content; background: #eaf5ee; color: #1c714f; border-radius: 20px; padding: 4px 9px; font-size: .71rem; font-weight: 750; }
.sc-badge.sc-archived { background: #eff0ef; color: #6a726c; }
.sc-empty { padding: 35px 18px; border: 1px dashed #d2dfd6; border-radius: 12px; text-align: center; color: var(--sc-muted); font-size: .92rem; line-height: 1.6; }
.sc-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 9px; padding: 12px 14px; margin: 0 0 16px; background: #edf7f0; color: #225b3d; font-size: .87rem; line-height: 1.5; }
.sc-feedback.sc-error { background: #fff2ee; color: #943f2d; }
.sc-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 17px; border-top: 1px solid var(--sc-border); color: var(--sc-muted); font-size: .82rem; }
#inventario-proveedores-panel .sc-temporary-inventory { border: 1px solid #d9e5de; border-radius: 14px; background: #fff; padding: 20px 24px; }
.sc-temporary-inventory > summary { cursor: pointer; font-weight: 800; color: #31583f; }
.sc-temporary-intro { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 16px 0; }
.sc-temporary-intro p { color: #63756a; line-height: 1.5; margin: 0; font-size: .87rem; }
.sc-temporary-intro button { flex-shrink: 0; }
.sc-dialog { border: 0; padding: 0; border-radius: 18px; width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); background: #fff; box-shadow: 0 24px 90px #14342340; overflow: auto; }
.sc-dialog::backdrop { background: #142d24a6; backdrop-filter: blur(2px); }
.sc-dialog .sc-dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 24px 26px 18px; border-bottom: 1px solid var(--sc-border); background: #f8fbf9; }
.sc-dialog .sc-dialog-header h2 { font: inherit; font-size: 1.5rem; font-weight: 850; margin: 5px 0 7px; letter-spacing: -.03em; }
.sc-dialog .sc-dialog-header p { font-size: .82rem; color: var(--sc-muted); margin: 0; overflow-wrap: anywhere; }
.sc-dialog .sc-close { background: #fff; border: 1px solid var(--sc-border); border-radius: 50%; padding: 0; height: 36px; width: 36px; flex: 0 0 36px; cursor: pointer; color: #31543f; font-size: 1.5rem; line-height: 1; }
.sc-dialog-body { padding: 22px 26px; }
.sc-dialog fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sc-field-section + .sc-field-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sc-border); }
.sc-field-section h3, .sc-history h3 { font-size: .97rem; font-weight: 850; margin: 0 0 17px; }
.sc-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.sc-field { min-width: 0; }
.sc-field.sc-full { grid-column: 1 / -1; }
.sc-field.sc-checkbox { display: flex; align-items: center; gap: 8px; }
.sc-field.sc-checkbox input { flex: 0 0 18px; width: 18px; min-height: 18px; margin: 0; accent-color: var(--sc-green); }
.sc-field.sc-checkbox label { margin: 0; }
.sc-dialog fieldset:disabled input, .sc-dialog fieldset:disabled textarea { background: #f7faf8; color: #324d3d; opacity: 1; border-color: #e2eae5; -webkit-text-fill-color: #324d3d; }
.sc-help { font-size: .78rem; color: var(--sc-muted); line-height: 1.55; margin: 0 0 16px; }
.sc-provenance { padding: 12px 14px; background: #f1f7f3; border-radius: 8px; margin-top: 22px; font-size: .81rem; line-height: 1.5; color: #486451; overflow-wrap: anywhere; }
.sc-history { border-top: 1px solid var(--sc-border); padding-top: 22px; margin-top: 22px; }
.sc-history p { font-size: .83rem; color: var(--sc-muted); line-height: 1.6; }
.sc-history ol { margin: 0; padding-left: 20px; font-size: .82rem; line-height: 1.6; color: #4e6657; }
.sc-history li { padding: 4px 0; overflow-wrap: anywhere; }
.sc-dialog-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 17px 26px; border-top: 1px solid var(--sc-border); background: #fff; position: sticky; bottom: 0; }
.sc-dialog-footer .sc-archive { margin-right: auto; }
.sc-dialog .sc-dirty { color: #916b23; font-size: .8rem; margin: 12px 0 0; }
@media(max-width: 700px) {
  .sc-catalog { padding: 16px; }
  .sc-search-field { flex-basis: 100%; }
  .sc-status-field { flex: 1 1 100px; }
  .sc-card { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .sc-card .sc-card-contact { grid-column: 1; grid-row: 2; }
  .sc-card > .sc-button { grid-column: 2; grid-row: 1 / 3; }
  .sc-field-grid { grid-template-columns: minmax(0, 1fr); }
  .sc-dialog-body, .sc-dialog .sc-dialog-header { padding: 18px; }
  .sc-dialog-footer { padding: 14px 18px; }
  .sc-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .sc-temporary-intro { flex-direction: column; align-items: flex-start; }
  #inventario-proveedores-panel .sc-temporary-inventory { padding: 18px; }
}
