/* Interns (Staff -> Interns): styles of the optional HR module (interns.js). Delete together with the module. */

/* The label in the staff list and the strip on the employee card */
.intern-badge { display: inline-flex; align-items: center; gap: 3px; background: #fff3dc; color: #a86200; margin-left: 6px; vertical-align: 1px; }
.intern-strip { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px 16px; margin-bottom: 16px; }
.intern-strip.is-active { background: #fffaf0; box-shadow: inset 3px 0 0 #f0a020, var(--shadow); }
.intern-strip .spacer { flex: 1; }

/* Colours of marks, conclusions and statuses */
.sc-high { background: #e3f5ea; color: #1f7a45; } .sc-mid { background: #fff3dc; color: #a86200; }
.sc-low { background: #fdeeee; color: #c3343c; } .sc-none { background: var(--surface-2); color: var(--muted); }
.in-v-good { background: #e3f5ea; color: #1f7a45; } .in-v-doubt { background: #fff3dc; color: #a86200; } .in-v-reject { background: #fdeeee; color: #c3343c; }
.in-s-active { background: #e6efff; color: #2860d8; } .in-s-hired { background: #e3f5ea; color: #1f7a45; } .in-s-rejected { background: #eef0f4; color: #4b5468; }
.badge.in-verdict, .badge.in-status { font-size: 12px; }
.in-plus { color: #1f7a45; font-weight: 600; } .in-minus { color: #c3343c; font-weight: 600; }
.in-late { color: #c3343c; font-weight: 600; } .in-soon { color: #a86200; font-weight: 600; } .in-ok { color: #1f7a45; }
.in-up { color: #1f7a45; font-size: 12px; font-weight: 600; } .in-down { color: #c3343c; font-size: 12px; font-weight: 600; }
.in-score { display: inline-block; min-width: 36px; padding: 2px 7px; border-radius: 7px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.in-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.in-btn-hire { color: #1f7a45; border-color: #bfe5cd; font-weight: 600; }
.in-btn-hire:hover { background: #e3f5ea; }

/* The list: figures as tiles (they also filter), then one row per intern */
.in-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.in-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 12px 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font: inherit; color: var(--text); cursor: pointer; }
.in-tile:hover { border-color: #b9c8f5; }
.in-tile.active { border-color: var(--primary); background: #f3f6ff; box-shadow: inset 0 0 0 1px var(--primary); }
.in-tile-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.in-tile-num { font-size: 24px; font-weight: 800; line-height: 1.2; }
.in-tile-review .in-tile-num { color: #a86200; } .in-tile-risk .in-tile-num { color: #c3343c; }
.in-tile-hired .in-tile-num { color: #1f7a45; } .in-tile-rejected .in-tile-num { color: #4b5468; }
.in-tile-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.in-hint { margin: 4px 0 12px; }
.in-list { padding: 0; overflow: hidden; }
.in-row { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(220px, 1.4fr) minmax(150px, 1fr) 160px minmax(120px, .9fr);
  gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.in-row.clickable { cursor: pointer; }
.in-row.clickable:hover { background: #f7f9ff; }
.in-head { border-top: 0; padding-block: 10px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.in-c-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.in-who { min-width: 0; }
.in-name { font-weight: 700; color: var(--text); }
.in-c-term { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.in-c-score { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* The internship as a line of months */
.in-bar { position: relative; display: flex; gap: 4px; height: 8px; }
.in-seg { position: relative; flex: 1 1 0; min-width: 0; background: #e6e9f1; border-radius: 4px; }
.in-seg-fill { height: 100%; width: 0; background: #8aa6ff; border-radius: 4px; }
.in-dot { position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; z-index: 1;
  background: #c5cad6; border: 2px solid var(--surface); }
.in-dot-good { background: #1f9d55; } .in-dot-doubt { background: #f0a020; } .in-dot-reject { background: #e5484d; }
.in-dot-overdue { background: var(--surface); border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d; }
.in-dot-due { background: var(--surface); border-color: #f0a020; box-shadow: 0 0 0 1px #f0a020; }
.in-today { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; z-index: 2; }
.in-bar-big { height: 12px; margin: 14px 8px 46px 0; }
.in-bar-big .in-seg-fill { background: var(--primary); }
.in-bar-big .in-dot { width: 16px; height: 16px; margin-top: -8px; right: -8px; }
.in-seg-label { position: absolute; top: 22px; left: 0; right: 10px; display: flex; flex-direction: column; font-size: 12px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-seg-label span { overflow: hidden; text-overflow: ellipsis; }

/* One intern */
.in-head-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.in-card-link { margin-left: 10px; font-size: 13px; }
.in-timeline, .in-work { margin-bottom: 16px; }
.in-timeline .section-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.in-timeline .section-head h2 { flex: 1; }
.in-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.in-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.in-col .section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.in-col .section-head h2 { flex: 1; }
.in-decision h2, .in-work h2, .in-settings h2 { margin-bottom: 8px; }
.in-decision { display: flex; flex-direction: column; gap: 8px; }
.in-decision.in-s-hired, .in-decision.in-s-rejected { color: var(--text); }
.in-decision.in-s-hired { background: #f3fbf6; } .in-decision.in-s-rejected { background: #f6f7f9; }

.in-sub { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.in-matrix { border-collapse: collapse; width: 100%; font-size: 13px; margin-bottom: 8px; }
.in-matrix th, .in-matrix td { padding: 5px 8px; border-bottom: 1px solid var(--border); }
.in-matrix thead th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; white-space: nowrap; }
.in-matrix tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
.in-matrix td { text-align: center; }
.in-cell { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.in-avg-row th { font-weight: 700 !important; }
.in-cell-avg { min-width: 38px; }
.in-matrix .in-verdict { white-space: nowrap; font-size: 11px; margin: 0; }

.in-review { border-top: 1px solid var(--border); padding: 12px 0 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.in-v-line-good { box-shadow: inset 3px 0 0 #1f9d55; } .in-v-line-doubt { box-shadow: inset 3px 0 0 #f0a020; } .in-v-line-reject { box-shadow: inset 3px 0 0 #e5484d; }
.in-review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.in-review-head .spacer { flex: 1; }
.in-review-scores { display: flex; flex-wrap: wrap; gap: 4px; }
.in-chip { font-size: 12px; background: var(--surface-2); border-radius: 99px; padding: 2px 4px 2px 9px; }
.in-chip b { display: inline-block; min-width: 20px; text-align: center; border-radius: 99px; padding: 0 5px; }
.in-review-text { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* The review window */
.in-crit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.in-crits { display: flex; flex-direction: column; }
.in-crit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.in-picks { display: flex; gap: 4px; flex: none; }
.in-pick { width: 36px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; color: var(--text); }
.in-pick:hover { border-color: var(--primary); }
.in-pick.on { border-color: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.in-vpicks { display: flex; gap: 8px; flex-wrap: wrap; }
.in-vpick { flex: 1 1 140px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.in-vpick:hover { border-color: var(--primary); }
.in-vpick.on { border-color: transparent; box-shadow: inset 0 0 0 2px currentColor; }

/* HR notes */
.in-note-form { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.in-note-kinds { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.in-note-kinds input[type=date] { width: auto; margin-left: auto; }
.in-kpick { padding: 5px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.in-kpick.on.in-k-plus { background: #e3f5ea; border-color: #bfe5cd; color: #1f7a45; font-weight: 600; }
.in-kpick.on.in-k-minus { background: #fdeeee; border-color: #f0c4c6; color: #c3343c; font-weight: 600; }
.in-kpick.on.in-k-note { background: #e6efff; border-color: #c9d8fb; color: #2860d8; font-weight: 600; }
.in-notes { list-style: none; margin: 0; padding: 0; }
.in-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0 10px 10px; border-top: 1px solid var(--border); }
.in-k-line-plus { box-shadow: inset 3px 0 0 #1f9d55; } .in-k-line-minus { box-shadow: inset 3px 0 0 #e5484d; } .in-k-line-note { box-shadow: inset 3px 0 0 #c5cad6; }
.in-note-icon { font-size: 16px; line-height: 1.4; }
.in-note-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.in-work-table { width: auto; min-width: min(100%, 680px); }
.in-work-table th, .in-work-table td { white-space: nowrap; }
.in-work-table td.in-bad { color: #c3343c; font-weight: 600; }

@media (max-width: 1100px) {
  .in-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .in-row { grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 1.3fr) minmax(140px, 1fr) 150px; }
  .in-c-marks { display: none; }
  .in-head .in-c-marks { display: none; }
}
@media (max-width: 1000px) {
  .in-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .in-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-row { grid-template-columns: 1fr; gap: 8px; }
  .in-head { display: none; }
  .in-c-marks { display: block; }
  .in-crit { flex-direction: column; align-items: stretch; }
  .in-picks .in-pick { flex: 1; }
  .in-bar-big { margin-bottom: 52px; }
  .in-seg-label span { display: none; }
}

/* A chosen mark / conclusion in the review window takes the colour of its value. */
.in-pick.on.sc-high, .in-vpick.on.in-v-good { background: #e3f5ea; color: #1f7a45; }
.in-pick.on.sc-mid, .in-vpick.on.in-v-doubt { background: #fff3dc; color: #a86200; }
.in-pick.on.sc-low, .in-vpick.on.in-v-reject { background: #fdeeee; color: #c3343c; }
