.delete {
  background: #fff0ef;
  border: 1px solid #efb8b4;
  color: #9b342f;
}

.delete:hover {
  background: #f9d8d5;
  color: #7e251f;
}

.template-workbench { margin-bottom: 18px; padding: 25px; }
.template-state { color: #67382f; font-size: 12px; font-weight: 700; }
.template-grid { display: grid; grid-template-columns: minmax(290px, .9fr) minmax(360px, 1.1fr); gap: 26px; padding-top: 22px; }
.template-guide > p { color: #5f5c58; font-size: 13px; line-height: 1.55; }
.marker-links,.template-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 18px; }
.template-preview-wrap { min-width: 0; border: 1px dashed #d7cec3; border-radius: 14px; background: #faf8f4; padding: 13px; }
.preview-title { color: #67382f; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
#template-preview { display: block; width: 100%; height: auto; min-height: 170px; border-radius: 7px; background: repeating-conic-gradient(#ece7df 0 25%, #f9f7f3 0 50%) 50% / 20px 20px; }
.template-list { display: grid; gap: 9px; margin-top: 20px; }
.template-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #ece6dd; padding-top: 12px; }
.template-row img { width: 88px; height: 44px; object-fit: contain; background: #f6f3ed; border: 1px solid #e3dcd3; border-radius: 7px; }
.template-row h3 { margin: 0 0 3px; }
.template-row p { color: #72706c; font-size: 12px; margin: 0; }
.template-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.error-message { color: #a62e28 !important; }

.admin-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.admin-tools .local-badge { margin-left: 0; }
.logout-button { padding: 7px 9px; color: #67382f; background: #f1e9e2; }
.logout-button:hover { background: #e5d7cd; }
.lock { background: #6f561c; }
.lock:hover { background: #523e0f; }
.permanent { background: #9d2d2d; }
.permanent:hover { background: #762020; }
.pdf-parts { position: relative; }
.pdf-parts summary { cursor: pointer; padding: 9px 11px; border: 1px solid #d9d2c9; border-radius: 9px; color: #67382f; font-weight: 700; background: #f7f2ec; list-style: none; }
.pdf-parts summary::-webkit-details-marker { display: none; }
.pdf-parts summary::after { content: '⌄'; margin-left: 7px; }
.pdf-parts[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pdf-parts > div { position: absolute; z-index: 2; right: 0; top: 100%; display: grid; grid-template-columns: repeat(2, minmax(86px, 1fr)); gap: 6px; width: 220px; max-height: 250px; overflow: auto; padding: 9px; border: 1px solid #d9d2c9; border-radius: 0 0 9px 9px; background: #fffdf9; box-shadow: 0 12px 24px rgba(37, 27, 20, .14); }
.pdf-parts .button-link { padding: 7px 8px; text-align: center; font-size: 12px; }
.status.locked { background: #fff0c8; color: #775700; }
.status.cancelled { background: #f5dddd; color: #953b37; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at top, #f5e4db, #f5f2ed 55%); }
.login-card { width: min(100%, 430px); padding: 32px; text-align: center; }
.login-card form { text-align: left; margin-top: 22px; }
.login-card button { width: 100%; margin-top: 8px; }
.login-logo { width: 70px; height: 70px; object-fit: contain; border-radius: 18px; margin-bottom: 14px; }
.login-copy { color: #707075; font-size: 14px; line-height: 1.55; }

.batch-filters { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; padding: 18px 0 2px; }
.batch-filters label { margin: 0; }
.batch-filters select { display: block; width: 100%; margin-top: 7px; border: 1px solid #d9d2c9; border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff; }
.batch-filters select:focus { outline: 2px solid #ebc9bf; border-color: var(--accent); }
.label-size-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; padding: 0; border: 0; }
.label-size-fields legend { font-size: 13px; font-weight: 700; padding: 0; }
.label-size-fields label { margin: 0; }
.warranty-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(32, 32, 34, .48); }
.warranty-modal[hidden] { display: none; }
.warranty-dialog { width: min(100%, 440px); padding: 26px; border-radius: 18px; background: #fffdf9; box-shadow: 0 24px 60px rgba(0, 0, 0, .24); }
.warranty-dialog h2 { margin-bottom: 8px; }
.warranty-dialog > p { color: #707075; font-size: 14px; line-height: 1.55; }
.warranty-dialog form { text-align: left; }
.warranty-dialog button { width: 100%; margin-top: 10px; }
.consent-line { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; line-height: 1.45; }
.consent-line input { width: auto; margin: 3px 0 0; }
.privacy-note { color: #707075; font-size: 12px; line-height: 1.5; }
.privacy-note a { color: #67382f; font-weight: 700; }
.privacy-card { text-align: left; }
.privacy-card h2 { margin-top: 22px; }
.privacy-card h2:first-child { margin-top: 0; }
.warranties { padding: 25px; margin-top: 18px; }
.warranty-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid #ece6dd; padding: 15px 0; }
.warranty-row:last-child { border-bottom: 0; }
.warranty-row h3 { margin: 0 0 4px; }
.warranty-row p, .warranty-row time { color: #707075; font-size: 12px; margin: 0; }
.warranty-row time { white-space: nowrap; }

@media (max-width: 760px) {
  .template-grid { grid-template-columns: 1fr; }
  .template-workbench { padding: 18px; }
  .admin-tools { margin-left: 0; flex-wrap: wrap; }
  .brand-bar { align-items: flex-start; flex-wrap: wrap; }
  .batch-filters { grid-template-columns: 1fr; }
  .label-size-fields { grid-template-columns: 1fr; }
  .warranty-row { display: block; }
  .warranty-row time { display: block; margin-top: 8px; }
}
