/* =====================================================================
   Bira HQ — Acquisitions / Integration module styles
   Reuses the brand tokens from styles.css (:root --purple, --olive, etc.)
   All classes prefixed .int- to avoid clashing with the tracker.
   ===================================================================== */

/* area switching: hide tracker content when in an acquisitions area */
body[data-area="acq"] main > .hero,
body[data-area="acq"] main > .culture-band,
body[data-area="acq"] main > .view { display: none !important; }
#integrationRoot { display: none; }
body[data-area="acq"] #integrationRoot { display: block; }

.int-root { padding: 4px 0 40px; }
.int-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.int-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--olive-dark); font-weight: 700; margin: 0; }
.int-root h1 { font-size: 26px; margin: 4px 0 0; color: var(--purple-deep); }
.int-crumb { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.int-crumb a { color: var(--purple); cursor: pointer; font-weight: 600; }

.int-btn { background: var(--purple); color: #fff; border: 0; border-radius: 10px; padding: 10px 15px; font-weight: 650; font-size: 13px; cursor: pointer; font-family: inherit; }
.int-btn.ghost { background: var(--surface); color: var(--purple); border: 1px solid var(--line); }
.int-btn.sm { padding: 5px 11px; font-size: 12px; }

.int-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.int-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; cursor: pointer; transition: transform .12s; }
.int-card:hover { transform: translateY(-2px); }
.int-card .h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.int-card h3 { margin: 0; font-size: 17px; color: var(--purple-deep); }
.int-card .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.int-meta { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); align-items: center; }
.int-meta .m { font-size: 12px; color: var(--muted); }
.int-meta .m b { display: block; font-size: 20px; color: var(--ink); font-weight: 750; }

.int-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.int-p-stand { background: #eef2de; color: var(--olive-dark); }
.int-p-enh   { background: #fdf2dc; color: #c98a2b; }
.int-p-turn  { background: #f7e4e4; color: var(--red); }
.int-p-dual  { background: #f3dada; color: #8c2f2f; }

.int-ring { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.int-ring i { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; font-style: normal; }

.int-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.int-sectitle { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 12px; font-weight: 700; cursor: default; }
.int-sectitle .toggle { float: right; color: var(--purple); font-weight: 700; cursor: pointer; }

.int-typebanner { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; color: #fff; }
.int-typebanner h2 { margin: 0; font-size: 22px; }
.int-typebanner p { margin: 6px 0 0; font-size: 13px; opacity: .95; max-width: 640px; }
.int-typebanner .score b { font-size: 34px; display: block; line-height: 1; }

.int-drow { display: grid; grid-template-columns: 1.4fr 60px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.int-drow:last-child { border-bottom: 0; }
.int-bar { height: 9px; border-radius: 6px; background: #efe7e0; overflow: hidden; }
.int-bar > i { display: block; height: 100%; }
.int-drow input { width: 56px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 13px; text-align: center; font-weight: 700; }

.int-mgr { background: #f7e4e4; border-left: 4px solid var(--red); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #7a2a2a; }
.int-mgr.ok { background: #eef2de; border-left-color: var(--olive); color: var(--olive-dark); }
.int-mgr.warn { background: #fdf2dc; border-left-color: #c98a2b; color: #8a5a18; }

.int-sug { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.int-sug:last-child { border-bottom: 0; }
.int-pri { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; }
.int-tag { font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; margin-left: 5px; background: #eef0f6; color: var(--blue); }
.int-tag.ff { background: #fdf2dc; color: #c98a2b; }
.int-sug .t { flex: 1; font-size: 13px; }
.int-sug .meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

.int-prow { display: grid; grid-template-columns: 16px 16px 34px 1fr 128px 110px 18px; gap: 7px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.int-prow:last-child { border-bottom: 0; }
.int-prow.done .txt { text-decoration: line-through; opacity: .55; }
.int-prow .h { cursor: grab; color: var(--muted); text-align: center; }
.int-prow input, .int-prow select { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; font-size: 12px; width: 100%; font-family: inherit; }
.int-prow .x { cursor: pointer; color: var(--red); text-align: center; font-weight: 700; }
.int-due { font-size: 11px; color: var(--muted); margin-top: 2px; }
.int-pbar { display: flex; justify-content: space-between; align-items: center; padding: 0 0 10px; font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.int-pbar .g { width: 150px; height: 9px; background: #efe7e0; border-radius: 6px; overflow: hidden; }
.int-pbar .g > i { display: block; height: 100%; background: var(--olive); }
.int-addbar { display: grid; grid-template-columns: 1fr 128px 110px auto; gap: 8px; padding-top: 10px; }
.int-addbar input, .int-addbar select { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; font-size: 13px; font-family: inherit; }
.int-empty { padding: 14px; color: var(--muted); font-style: italic; }
.int-note { background: #f5f0e4; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); }
.int-hidden { display: none !important; }

/* create/edit modal + card controls */
.int-overlay { position: fixed; inset: 0; background: rgba(50, 22, 68, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.int-modal { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; width: 100%; max-width: 440px; }
.int-modal h3 { margin: 0 0 14px; color: var(--purple-deep); font-size: 18px; }
.int-modal label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 11px; }
.int-modal input, .int-modal select { width: 100%; margin-top: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); font-family: inherit; font-size: 13px; color: var(--ink); }
.int-modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.int-cardbtns { display: flex; gap: 6px; margin-top: 10px; }
.int-iconbtn { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; cursor: pointer; font-size: 12px; color: var(--muted); font-family: inherit; }
.int-iconbtn:hover { color: var(--purple); border-color: var(--purple); }
.int-iconbtn.del:hover { color: var(--red); border-color: var(--red); }
.int-emptybox { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 30px; text-align: center; color: var(--muted); }
.int-emptybox b { color: var(--purple-deep); display: block; font-size: 16px; margin-bottom: 4px; }

/* domain cards (Phase 2) */
.int-cardhead { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; cursor: pointer; }
.int-cardhead b { color: var(--purple-deep); }
.int-cardnote { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.int-scorechip { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; border-radius: 7px; color: #fff; font-weight: 800; font-size: 13px; padding: 0 8px; }
.int-cardbody label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.int-cardbody input, .int-cardbody select { width: 100%; margin-top: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--cream); font-family: inherit; font-size: 13px; color: var(--ink); }
