/* Admin: security settings.
   Owned by public/js/settings.js and loaded after /styles.css. Class names here belong to this module;
   a look shared by several modules goes in /styles.css (npm run check-styles enforces this). */

/* ---------- security ---------- */
.sec-list { display: grid; gap: .1rem; }
.sec-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.sec-row:last-child { border-bottom: 0; }
.sec-mark { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-weight: 800; color: #fff; }
.sec-mark.ok { background: var(--ok); }
.sec-mark.warn { background: var(--copper); }
.sec-mark.bad { background: var(--danger); }

/* Settings › Import Excel: the steps and the figures that differ */
.import-steps, .import-diff { margin: .4rem 0; padding-left: 1.1rem; display: grid; gap: .15rem; }
.import-diff { max-height: 50dvh; overflow-y: auto; }

/* Settings › Company: the logo */
.co-logo-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.co-logo { width: 140px; max-height: 80px; object-fit: contain; background: #fff; border-radius: 8px; padding: .4rem; border: 1px solid var(--border); }

/* Import Excel › what Replace removes, kind by kind */
.removed-card { border-left: 4px solid var(--danger); }
.removed-part { border-top: 1px solid var(--border); padding: .6rem 0; }
.removed-part summary { cursor: pointer; }
.removed-part .table-wrap { margin-top: .5rem; max-height: 22rem; overflow: auto; }

/* Team: who gets notifications (GAKA 1.50.0): "Off" in red, the devices and when one last arrived under it */
.push-off { color: var(--danger); font-weight: 600; }
.push-devices { white-space: nowrap; }

/* What Claude has learnt (GAKA 1.69.0): rules and corrections */
.lesson-list { display: grid; gap: .55rem; }
.lesson { display: flex; gap: .8rem; justify-content: space-between; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.lesson.off { opacity: .55; }
.lesson-main { min-width: 0; display: grid; gap: .2rem; }
.lesson-main p { margin: 0; }
.lesson-tag { font-weight: 700; font-size: .85rem; }
.lesson-was { color: var(--muted); text-decoration: line-through; }
.lesson-better { font-weight: 600; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: .3rem; flex: none; }

/* Settings › Claude: chats where Claude is paused (GAKA 1.72.0), one card each */
.pause-list { display: grid; gap: .6rem; }
.pause-row { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pause-main { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.pause-customer { font-weight: 700; }
.pause-why { overflow-wrap: anywhere; }

/* GAKA health (GAKA 1.98.0): Settings › Security, for the CEO and IT */
.gh-verdict { border-radius: 12px; padding: .75rem .95rem; margin: .4rem 0 .9rem; border: 1px solid var(--border); border-left-width: 5px; display: grid; gap: .2rem; }
.gh-verdict.gh-ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.gh-verdict.gh-warn { border-left-color: #d08a12; background: color-mix(in srgb, #d08a12 12%, var(--surface)); }
.gh-verdict.gh-bad { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.gh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .6rem; margin-bottom: .4rem; }
.gh-tile { display: grid; gap: .15rem; padding: .65rem .8rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.gh-tile > small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.gh-tile > strong { font-size: 1.1rem; }
.gh-h { margin: 1rem 0 .35rem; font-size: .95rem; }
.gh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.gh-list > li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.gh-list > li > div { min-width: 0; overflow-wrap: anywhere; }
.gh-dot { flex: none; width: .65rem; height: .65rem; border-radius: 50%; margin-top: .35rem; background: var(--muted); }
.gh-dot.ok { background: var(--ok); }
.gh-dot.warn { background: #d08a12; }
.gh-dot.bad { background: var(--danger); }
.gh-slow { margin-top: .8rem; }
.gh-slow > summary { cursor: pointer; font-weight: 600; margin-bottom: .4rem; }
/* The nightly Google Drive copy inside the Backups card (GAKA 1.99.0) */
.drive-box { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--border); display: grid; gap: .45rem; justify-items: start; }
