/* slot-notes.css — notas por slot en PODs (2026-10-27) */
.sn-col { position: relative; }
.sn-ic {
    position: absolute; width: 15px; height: 15px; border-radius: 4px; z-index: 2;
    font: 800 9px/15px Arial, Helvetica, sans-serif; text-align: center; color: #fff; cursor: pointer;
    box-shadow: 0 0 0 1.5px #fafbfc; user-select: none;
}
.sn-ic.sn-left { left: -21px; }
.sn-ic.sn-right { right: -21px; }
.sn-ic.sn-corner { width: 13px; height: 13px; font-size: 8px; line-height: 13px; border-radius: 3px; }
.sn-ic:hover, .sn-ic:focus-visible { transform: scale(1.15); outline: none; box-shadow: 0 0 0 2px #1e5fae; }
.sn-ic.sn-many::after { content: ''; position: absolute; right: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #1b2430; box-shadow: 0 0 0 1px #fff; }
.sn-t-arista { background: #2a78d6; }
.sn-t-fs { background: #d97706; }
.sn-t-zpe { background: #7c3aed; }

.sn-chip { display: inline-block; width: 15px; height: 15px; border-radius: 4px; font: 800 9px/15px Arial, Helvetica, sans-serif; text-align: center; color: #fff; font-style: normal; vertical-align: -2px; flex-shrink: 0; }

/* Tooltip */
.sn-tip { position: fixed; z-index: 10070; display: none; width: 250px; background: #fff; color: #1b2430; border: 1px solid #e3e6eb; border-radius: 10px; padding: 9px 11px; box-shadow: 0 10px 28px rgba(0,0,0,.18); font-size: 12.5px; pointer-events: none; }
.sn-tip-n + .sn-tip-n { border-top: 1px solid #eef0f3; margin-top: 7px; padding-top: 7px; }
.sn-tip-h { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.sn-tip-c { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.sn-tip-m { color: #6b7280; font-size: 11px; margin-top: 3px; }

/* Menu (clic derecho) */
.sn-menu { position: fixed; z-index: 10060; width: 310px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; background: #fff; color: #1b2430; border: 1px solid #e3e6eb; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.22); font-size: 13px; }
.sn-menu button { width: auto; margin: 0; font-family: inherit; }
.sn-menu:focus { outline: none; }
.sn-mh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #eef0f3; font-weight: 800; font-size: 13.5px; }
.sn-mh small { color: #6b7280; font-weight: 600; font-size: 11.5px; text-align: right; }
.sn-mb { padding: 12px 14px; }
.sn-none { color: #9ca3af; font-size: 12.5px; margin-bottom: 10px; }
.sn-lbl { display: block; font-size: 11.5px; font-weight: 700; color: #374151; margin: 0 0 6px; }
.sn-req { color: #d93838; }
.sn-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.sn-opt { border: 1.5px solid #d1d5db !important; border-radius: 8px; padding: 8px 4px !important; background: #fff; color: #374151; font-size: 12px; font-weight: 700; display: flex !important; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; min-height: 56px; }
.sn-opt:hover { border-color: #9ca3af !important; }
.sn-opt.on { border-color: #d97706 !important; background: rgba(217,119,6,.08); color: #b45309; }
.sn-comment { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font: 13px Arial, Helvetica, sans-serif; resize: vertical; min-height: 64px; background: #fff; color: #111827; margin: 0; }
.sn-comment:focus { outline: 2px solid #1e5fae; outline-offset: 0; border-color: #1e5fae; }
.sn-err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 6px 9px; font-size: 12px; margin-top: 8px; }
.sn-err[hidden] { display: none; }
.sn-ft { display: flex; gap: 8px; margin-top: 10px; }
.sn-btn { flex: 1; padding: 9px; border-radius: 8px; font-weight: 800; font-size: 13px; cursor: pointer; min-height: 38px; }
.sn-cancel { border: 1px solid #d1d5db; background: #fff; color: #374151; }
.sn-save { border: none; background: #1e5fae; color: #fff; }
.sn-save:disabled { background: #c7ccd4; color: #4b5563; cursor: not-allowed; }
.sn-note { background: #f6f7f9; border: 1px solid #eef0f3; border-radius: 9px; padding: 9px 10px; margin-bottom: 8px; }
.sn-note.editing { background: #fff; border-color: #d1d5db; }
.sn-nh { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.sn-nc { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.sn-nm { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: #6b7280; font-size: 11px; margin-top: 5px; }
.sn-acts { display: inline-flex; gap: 10px; align-items: center; }
.sn-link { border: none; background: none; padding: 2px 0; color: #1e5fae; font-weight: 700; font-size: 11.5px; cursor: pointer; }
.sn-link.sn-del { color: #c62828; }
.sn-confirm { display: inline-flex; gap: 8px; align-items: center; color: #374151; font-weight: 600; }
.sn-ro { font-style: italic; }
.sn-add { width: 100% !important; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1.5px dashed #c5cad3; border-radius: 9px; padding: 8px; background: transparent; color: #1e5fae; font-weight: 700; font-size: 12.5px; cursor: pointer; min-height: 38px; }
.sn-add:hover { border-color: #1e5fae; }


/* ===== Dark mode ===== */
body.dark-mode .sn-ic { box-shadow: 0 0 0 1.5px #252a33; }
body.dark-mode .sn-ic.sn-many::after { background: #e5e7eb; box-shadow: 0 0 0 1px #252a33; }
body.dark-mode .sn-ic:hover, body.dark-mode .sn-ic:focus-visible { box-shadow: 0 0 0 2px #4da3ff; }
body.dark-mode .sn-tip, body.dark-mode .sn-menu { background: #181c23; color: #e5e7eb; border-color: #3a4458; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
body.dark-mode .sn-tip-n + .sn-tip-n, body.dark-mode .sn-mh { border-color: #2a2f38; }
body.dark-mode .sn-tip-m, body.dark-mode .sn-mh small, body.dark-mode .sn-nm { color: #8a8f98; }
body.dark-mode .sn-lbl, body.dark-mode .sn-confirm { color: #c3c6cc; }
body.dark-mode .sn-opt { background: #1e222a; border-color: #383d47 !important; color: #c3c6cc; }
body.dark-mode .sn-opt.on { border-color: #d97706 !important; background: rgba(217,119,6,.14); color: #fbbf24; }
body.dark-mode .sn-comment { background: #1e222a; border-color: #383d47; color: #e5e7eb; }
body.dark-mode .sn-cancel { background: transparent; border-color: #4a5263; color: #c3c6cc; }
body.dark-mode .sn-save { background: #2a78d6; }
body.dark-mode .sn-save:disabled { background: #2a2f38; color: #8a8f98; }
body.dark-mode .sn-note { background: #1e222a; border-color: #2a2f38; }
body.dark-mode .sn-note.editing { background: #181c23; border-color: #383d47; }
body.dark-mode .sn-link { color: #8fb8ff; }
body.dark-mode .sn-link.sn-del { color: #ff8a8a; }
body.dark-mode .sn-add { border-color: #4a5263; color: #8fb8ff; }
body.dark-mode .sn-err { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); color: #fca5a5; }
body.dark-mode .sn-none { color: #6b7280; }
