/* swizzle-cycle.css -- Ciclo del modulo Swizzle, racks Bandar (2026-11-04). */

/* Barra del ciclo, arriba de la fila Swizzle */
.swz-cycle { border: 1px solid #e3e6ea; background: #fbfbfc; border-radius: 8px; padding: 7px 9px; margin: 0 0 6px; }
.swz-head { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: #888; margin-bottom: 6px; }
.swz-head b { color: #555; }
.swz-head b.full { color: #15803d; }
.swz-track { display: flex; align-items: center; gap: 4px; }
.swz-ph { flex: 1; text-align: center; font-size: 10px; font-weight: 700; padding: 3px 2px; border-radius: 999px;
    border: 1px solid #d5d9df; color: #9aa0a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swz-ph.ok { border-color: #16a34a; color: #15803d; background: rgba(22,163,74,.08); }
.swz-ph.now { border-color: #d97706; color: #b45309; background: rgba(245,158,11,.10); }
.swz-ar { color: #b8bec6; font-size: 10px; }

/* Acciones, debajo de la fila Swizzle */
.swz-actions { margin: -2px 0 8px; padding: 0 2px; }
.swz-btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.swz-actions .ps-create-btn.swz-btn { font-size: 10.5px; padding: 4px 10px; border-radius: 999px; line-height: 1.3; white-space: nowrap; background: transparent; border-width: 1px; }
.swz-actions .swz-btn.swz-lock { border-color: #d5d9df; color: #9aa0a8; cursor: not-allowed; opacity: 1; }
.swz-actions .swz-btn.swz-reboot { border-color: #d97706; color: #b45309; }
.swz-actions .swz-btn.swz-reboot:hover { background: rgba(245,158,11,.10); }
.swz-actions .swz-btn.swz-working { border-color: #16a34a; color: #15803d; }
.swz-actions .swz-btn.swz-failing { border-color: #dc2626; color: #b91c1c; }
.swz-actions .swz-btn.swz-module { border-color: #6366F1; color: #3730A3; background: rgba(99,102,241,.08); }
.swz-hint { font-size: 10.5px; color: #888; margin-top: 4px; }
.swz-info { border-radius: 7px; padding: 6px 8px; margin-top: 5px; font-size: 11.5px; border: 1px solid #e3e6ea; background: #fbfbfc; }
.swz-info-t { font-weight: 600; color: #333; }
.swz-info-m { font-size: 10.5px; color: #888; margin-top: 2px; }
.swz-info-working { border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.06); }
.swz-info-failing { border-color: rgba(220,38,38,.30); background: rgba(220,38,38,.05); }
.swz-info-later { border-color: rgba(245,158,11,.40); background: rgba(245,158,11,.07); }
.swz-info-module { border-color: #6366F1; }

/* Modal */
.swz-modal { background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.3); width: 360px; max-width: 92vw;
    padding: 16px 18px; text-align: left; }
.swz-m-title { font-size: 15px; font-weight: 700; color: #222; }
.swz-m-sub { font-size: 11.5px; color: #888; margin: 2px 0 10px; }
.swz-m-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #888; margin: 10px 0 6px; }
.swz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.swz-opt { border: 1px solid #d5d9df; border-radius: 8px; padding: 7px 4px; background: #fff; cursor: pointer; text-align: center;
    width: auto !important; margin: 0 !important; color: #444; }
.swz-opt-t { display: block; font-size: 11.5px; font-weight: 700; }
.swz-opt-s { display: block; font-size: 9.5px; color: #888; margin-top: 2px; line-height: 1.25; }
.swz-opt-working.on { border-color: #16a34a; background: rgba(22,163,74,.08); color: #15803d; }
.swz-opt-failing.on { border-color: #dc2626; background: rgba(220,38,38,.06); color: #b91c1c; }
.swz-opt-later.on { border-color: #d97706; background: rgba(245,158,11,.10); color: #b45309; }
.swz-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.swz-chip { font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid #d5d9df; background: transparent;
    color: #555; cursor: pointer; width: auto !important; margin: 0 !important; }
.swz-chip.on { border-color: #d97706; color: #b45309; background: rgba(245,158,11,.10); }
.swz-m-comment { width: 100%; box-sizing: border-box; border: 1px solid #d5d9df; border-radius: 6px; padding: 7px; font: inherit; font-size: 12px; resize: vertical; }
.swz-m-err { color: #c62828; font-size: 11.5px; margin-top: 6px; }
.swz-m-err[hidden] { display: none !important; }
.swz-m-act { display: flex; gap: 8px; margin-top: 12px; }
.swz-m-act .ps-notice-btn:disabled { opacity: .5; cursor: default; }

/* Tarjeta de stock (Inventory) */
.swz-card-head { background: #4338CA; display: flex; align-items: center; }
.swz-card-more { width: 20px; height: 20px; padding: 0; margin-left: auto; flex-shrink: 0; border: none; background: transparent; cursor: pointer; color: rgba(255,255,255,0.7); }
.swz-card-body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.swz-card-qty { font-size: 28px; font-weight: 500; color: var(--color-text-primary, #333); }
.swz-card-actions { width: 100%; background: #f8f9fa; border-radius: 6px; padding: 8px; margin-top: 10px; font-size: 11px; }
.swz-card-input { width: 100%; height: 26px; font-size: 11px; margin-bottom: 6px; box-sizing: border-box; }
.swz-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.swz-card-grid button { font-size: 10px; padding: 4px 2px; }

/* ===== Modo oscuro ===== */
body.dark-mode .swz-cycle { background: #1a1e26; border-color: #2d323c; }
body.dark-mode .swz-head { color: #6b7080; }
body.dark-mode .swz-head b { color: #a0a4ab; }
body.dark-mode .swz-head b.full { color: #86efac; }
body.dark-mode .swz-ph { border-color: #3a4150; color: #6b7080; }
body.dark-mode .swz-ph.ok { border-color: #16a34a; color: #86efac; background: rgba(22,163,74,.10); }
body.dark-mode .swz-ph.now { border-color: #f59e0b; color: #fcd34d; background: rgba(245,158,11,.10); }
body.dark-mode .swz-ar { color: #4a5263; }
body.dark-mode .swz-actions .ps-create-btn.swz-btn { background: transparent; }
body.dark-mode .swz-actions .swz-btn.swz-lock { border-color: #3a4150; color: #6b7080; }
body.dark-mode .swz-actions .swz-btn.swz-reboot { border-color: #f59e0b; color: #fcd34d; }
body.dark-mode .swz-actions .swz-btn.swz-working { border-color: #22c55e; color: #86efac; }
body.dark-mode .swz-actions .swz-btn.swz-failing { border-color: #f87171; color: #fca5a5; }
body.dark-mode .swz-actions .swz-btn.swz-module { border-color: #818CF8; color: #C7D2FE; background: rgba(99,102,241,.12); }
body.dark-mode .swz-hint, body.dark-mode .swz-info-m { color: #8a909c; }
body.dark-mode .swz-info { background: #1a1e26; border-color: #2d323c; }
body.dark-mode .swz-info-t { color: #e2e4e8; }
body.dark-mode .swz-info-working { border-color: rgba(22,163,74,.40); background: rgba(22,163,74,.08); }
body.dark-mode .swz-info-failing { border-color: rgba(248,113,113,.40); background: rgba(248,113,113,.06); }
body.dark-mode .swz-info-later { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.08); }
body.dark-mode .swz-info-module { border-color: #818CF8; }
body.dark-mode .swz-modal { background: #1e222a; }
body.dark-mode .swz-m-title { color: #fff; }
body.dark-mode .swz-m-sub, body.dark-mode .swz-m-lbl, body.dark-mode .swz-opt-s { color: #8a909c; }
body.dark-mode .swz-opt { background: #1e222a; border-color: #3a4150; color: #c3c6cc; }
body.dark-mode .swz-opt-working.on { border-color: #16a34a; background: rgba(22,163,74,.10); color: #86efac; }
body.dark-mode .swz-opt-failing.on { border-color: #f87171; background: rgba(248,113,113,.08); color: #fca5a5; }
body.dark-mode .swz-opt-later.on { border-color: #f59e0b; background: rgba(245,158,11,.10); color: #fcd34d; }
body.dark-mode .swz-chip { border-color: #3a4150; color: #c3c6cc; }
body.dark-mode .swz-chip.on { border-color: #f59e0b; color: #fcd34d; background: rgba(245,158,11,.10); }
body.dark-mode .swz-m-comment { background: #14171c; border-color: #3a4150; color: #e2e4e8; }
body.dark-mode .swz-m-err { color: #fca5a5; }
body.dark-mode .swz-card-actions { background: #252a33; }

/* Reports > Bandar: botones Cycle / Modules (solo con Bandar) */
#az-reports-dimension .az-bd-swz-sep { display: inline-block; width: 1px; height: 18px; background: #d5d9df; margin: 0 3px; vertical-align: middle; align-self: center; }
#az-reports-dimension .az-bd-swz-sep[hidden], #az-reports-dimension .az-bd-swz[hidden] { display: none !important; }
#az-reports-dimension .az-reports-pill.az-bd-swz { border-color: #e34948; color: #c62828; }
#az-reports-dimension .az-reports-pill.az-bd-swz.active { background: #e34948 !important; border-color: #e34948; color: #fff !important; }
body.dark-mode #az-reports-dimension .az-bd-swz-sep { background: #3a4150; }
body.dark-mode #az-reports-dimension .az-reports-pill.az-bd-swz { border-color: #e66767; color: #fca5a5; }
body.dark-mode #az-reports-dimension .az-reports-pill.az-bd-swz.active { background: #c23b3a !important; border-color: #c23b3a; color: #fff !important; }
