* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  background: #f0f2f5;
  color: #222;
}

/* ─── LOGIN ─────────────────────────────────────────────────────────────── */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-box {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 36px 40px;
  width: 320px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

.login-box h1 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: #1a5276;
}

.login-box label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
  margin-top: 14px;
}

.login-box input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}

.login-box input:focus { border-color: #1a5276; }

.login-box button[type=submit] {
  width: 100%;
  margin-top: 20px;
  padding: 9px;
  background: #1a5276;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.login-box button[type=submit]:hover { background: #154360; }
.login-box button[type=submit]:disabled { background: #7f8c8d; cursor: default; }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a5276;
  color: #fff;
  padding: 0 16px;
  height: 42px;
  position: sticky;
  top: 0;
  z-index: 100;
}

#header-title { font-weight: 600; font-size: 14px; }

.header-right { display: flex; align-items: center; gap: 12px; }

#header-user { font-size: 12px; opacity: .85; }

#btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}
#btn-logout:hover { background: rgba(255,255,255,.15); }

/* ─── UTILS ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

.error-msg {
  color: #c0392b;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}


/* ─── TOOLBAR ────────────────────────────────────────────────────────────── */
#toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

#toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

#toolbar select {
  padding: 5px 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 12px;
  min-width: 140px;
  max-width: 220px;
  outline: none;
}
#toolbar select:focus { border-color: #1a5276; }

/* ─── TIMETABLE WRAP ─────────────────────────────────────────────────────── */
#timetable-wrap {
  overflow: auto;
  padding: 14px;
  height: calc(100vh - 42px - 52px);
}

.tt-empty, .loading {
  text-align: center;
  margin-top: 60px;
  color: #888;
  font-size: 14px;
}

/* ─── TIMETABLE ──────────────────────────────────────────────────────────── */
.timetable {
  border-collapse: collapse;
  min-width: 700px;
  width: 100%;
}

.timetable th, .timetable td {
  border: 1px solid #d5d8dc;
}

.timetable thead th {
  background: #1a5276;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  text-align: center;
  white-space: nowrap;
}

.timetable .th-ora { width: 72px; }

.timetable .td-ora {
  background: #eaf0f6;
  text-align: center;
  padding: 4px 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.ora-start { display: block; font-weight: 600; font-size: 12px; color: #1a5276; }
.ora-end   { display: block; font-size: 10px; color: #7f8c8d; }

.timetable .td-cell {
  padding: 3px;
  vertical-align: top;
  min-width: 110px;
  min-height: 40px;
}

/* ─── RUBRICA CARD ───────────────────────────────────────────────────────── */
.rubrica-card {
  border-radius: 4px;
  padding: 4px 6px;
  margin: 2px 0;
  border-left: 3px solid #aaa;
  background: #f8f9fa;
  cursor: default;
  font-size: 11px;
  line-height: 1.4;
}

.card-act  { font-weight: 700; font-size: 10px; text-transform: uppercase; opacity: .7; }
.card-disc { font-weight: 600; }
.card-cadru { color: #555; }
.card-sala  { color: #777; font-style: italic; }
.card-grupe { color: #888; font-size: 10px; }
.suprap-item { color: #e74c3c !important; font-weight: 700; font-style: normal; }

/* culori pe tip activitate */
.act-si    { border-left-color: #2980b9; background: #ebf5fb; }
.act-at { border-left-color: #27ae60; background: #eafaf1; }
.act-aa     { border-left-color: #e67e22; background: #fef9e7; }
.act-tc { border-left-color: #8e44ad; background: #f4ecf7; }
.act-e      { border-left-color: #7f8c8d; background: #f2f3f4; }

/* conflict */
.rubrica-card.conflict {
  border-left-color: #e74c3c !important;
  outline: 1px solid #e74c3c;
}

/* ─── TIMETABLE ID — scroll orizontal ──────────────────────────────────── */
.tt-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.timetable {
  min-width: unset;
  width: auto;
  white-space: nowrap;
}

/* Header luni/grupare */
.th-luna {
  background: #154360 !important;
  font-size: 11px !important;
  padding: 4px 6px !important;
  border-bottom: 1px solid #1a5276;
}

/* Header zile individuale */
.th-zi {
  font-size: 11px !important;
  padding: 4px 6px !important;
  min-width: 70px;
  font-weight: 600;
}

.zi-sarbatoare  { background: #c0392b !important; }
.zi-sesiune-mici  { background: #d4ac0d !important; }
.zi-sesiune-term  { background: #d68910 !important; }

/* Celule zile speciale (culori de fundal mai pale) */
.bg-sarbatoare  { background: #fdedec; }
.bg-sesiune-mici  { background: #fef9e7; }
.bg-sesiune-term  { background: #fef5e4; }

/* Celule mai înguste pentru tabel ID */
.timetable .td-cell {
  min-width: 70px;
  max-width: 120px;
}

/* ─── FIX text overflow în celule ──────────────────────────────────────── */
.timetable .td-cell {
  overflow: hidden;
}

.rubrica-card {
  overflow: hidden;
  max-width: 100%;
}

.card-disc, .card-cadru, .card-sala, .card-act {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── SELECȚIE ───────────────────────────────────────────────────────────── */
.rubrica-card.selected {
  outline: 2px solid #1a5276;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px #1a5276;
}

/* ─── CELULĂ ACTIVĂ (destinație paste) ──────────────────────────────────── */
.td-cell.active-cell {
  background: #eaf4fb !important;
  outline: 1px solid #85c1e9;
  outline-offset: -1px;
}

/* ─── DRAG-OVER ──────────────────────────────────────────────────────────── */
.td-cell.drag-over {
  background: #d6eaf8 !important;
  outline: 2px dashed #2980b9;
  outline-offset: -2px;
}

/* ─── MENIU CONTEXTUAL ───────────────────────────────────────────────────── */
#ctx-menu {
  position: fixed;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  min-width: 140px;
  z-index: 9999;
  padding: 4px 0;
  user-select: none;
}

.ctx-item {
  padding: 7px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #222;
  white-space: nowrap;
}

.ctx-item:hover { background: #ebf5fb; }

.ctx-sep {
  margin: 3px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.ctx-section-label {
  padding: 4px 16px 2px;
  font-size: 10px;
  font-weight: 700;
  color: #e74c3c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ctx-conflict-primary {
  color: #c0392b;
  font-weight: 600;
}
.ctx-conflict-primary:hover { background: #fef2f2; color: #922b21; }

.ctx-conflict-secondary {
  color: #888;
  font-size: 12px;
}
.ctx-conflict-secondary:hover { background: #f8f8f8; color: #555; }

.rubrica-card[draggable="true"] { cursor: grab; }
.rubrica-card[draggable="true"]:active { cursor: grabbing; }

/* ─── Import Excel ──────────────────────────────────────────────────────── */
.btn-import {
  cursor: pointer;
  padding: 4px 12px;
  background: #2e7d32;
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  user-select: none;
  white-space: nowrap;
}
.btn-import:hover { background: #1b5e20; }
.import-status {
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: #e3f2fd;
  color: #1565c0;
  white-space: nowrap;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.import-status.ok  { background: #e8f5e9; color: #2e7d32; }
.import-status.err { background: #ffebee; color: #c62828; }

/* ─── Main split layout ──────────────────────────────────────────────────── */
#main-split {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
#timetable-wrap {
  flex: 1;
  overflow: auto;
  min-width: 0;
}

/* ─── Edit Panel ─────────────────────────────────────────────────────────── */
#edit-panel {
  width: 270px;
  flex-shrink: 0;
  border-left: 2px solid #1565c0;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#edit-panel.ep-hidden { display: none !important; }
.ep-hidden { display: none !important; }
.ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1565c0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  position: sticky;
  top: 0;
}
#ep-close {
  background: none; border: none; color: #fff;
  font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 4px;
}
.ep-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-label {
  display: flex;
  flex-direction: column;
  font-size: 0.79rem;
  color: #555;
  gap: 3px;
  font-weight: 600;
}
.ep-label select {
  font-size: 0.84rem;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-weight: normal;
}
.ep-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ep-section-title {
  font-size: 0.75rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ep-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
}
.ep-chip {
  display: inline-flex;
  align-items: center;
  background: #e3f2fd;
  color: #0d47a1;
  border-radius: 10px;
  padding: 2px 6px 2px 9px;
  font-size: 0.76rem;
  gap: 3px;
}
.ep-chip-x {
  background: none; border: none; cursor: pointer;
  color: #1565c0; font-size: 0.95rem; padding: 0; line-height: 1;
}
.ep-add-row { display: flex; gap: 4px; }
.ep-add-row select {
  flex: 1; font-size: 0.8rem; padding: 3px 5px;
  border: 1px solid #ccc; border-radius: 3px;
}
.ep-add-row button {
  background: #1565c0; color: #fff; border: none;
  border-radius: 3px; cursor: pointer; font-size: 1.1rem;
  padding: 2px 10px; line-height: 1.4;
}
.ep-add-row button:hover { background: #0d47a1; }
.ep-actions { display: flex; gap: 8px; margin-top: 4px; }
.ep-btn-save {
  flex: 1; padding: 7px;
  background: #2e7d32; color: #fff;
  border: none; border-radius: 4px; cursor: pointer; font-size: 0.88rem;
}
.ep-btn-save:hover { background: #1b5e20; }
.ep-btn-delete {
  padding: 7px 12px;
  background: #c62828; color: #fff;
  border: none; border-radius: 4px; cursor: pointer; font-size: 0.88rem;
}
.ep-btn-delete:hover { background: #b71c1c; }
/* ─── Disponibilitate ────────────────────────────────────────────────────── */
.td-cell.ep-busy { background-color: #fce4ec !important; }

/* ─── Statistici ore per activitate ──────────────────────────────────────── */
.ep-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 4px;
}
.ep-stats-table th {
  text-align: center;
  color: #888;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 2px 4px;
  border-bottom: 1px solid #ddd;
}
.ep-stats-table td { padding: 2px 4px; text-align: center; }
.stat-act  { font-weight: 700; color: #555; text-align: left !important; }
.stat-num  { color: #333; }
.stat-green { color: #27ae60; font-weight: 700; }
.stat-red   { color: #e74c3c; font-weight: 700; }
.stat-zero  { color: #aaa; }

/* ─── Tab bar ─────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 2px;
  background: #e0e7ef;
  border-radius: 6px;
  padding: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}

.tab-btn {
  padding: 4px 16px;
  background: transparent;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.tab-btn:hover { background: #c8d4e8; color: #222; }

.tab-btn.tab-active {
  background: #1a5276;
  color: #fff;
}

/* ─── Filtre per tab ──────────────────────────────────────────────────────── */
.tab-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ─── Buton gear în header ────────────────────────────────────────────────── */
#btn-config {
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.3;
  opacity: .85;
  transition: opacity .12s, background .12s;
}
#btn-config:hover { background: rgba(255,255,255,.15); opacity: 1; }

/* ─── Config Modal ────────────────────────────────────────────────────────── */
#config-modal {
  position: fixed;
  inset: 0;
  background: #f0f2f5;
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cfg-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a5276;
  color: #fff;
  padding: 0 16px;
  height: 42px;
  flex-shrink: 0;
}
.cfg-title { font-weight: 600; font-size: 14px; }

#cfg-close {
  background: none;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
#cfg-close:hover { background: rgba(255,255,255,.15); }

.cfg-tabs-bar {
  display: flex;
  gap: 0;
  padding: 8px 14px 0;
  background: #fff;
  border-bottom: 2px solid #ddd;
  overflow-x: auto;
  flex-shrink: 0;
}

.cfg-tab {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px 4px 0 0;
}
.cfg-tab:hover { color: #1a5276; background: #eaf0f6; }
.cfg-tab.cfg-tab-active {
  color: #1a5276;
  background: #fff;
  border-color: #ddd #ddd #fff #ddd;
  border-bottom-color: #fff;
}

.cfg-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.cfg-btn-add {
  padding: 5px 14px;
  background: #1a5276;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cfg-btn-add:hover { background: #154360; }

.cfg-search-input {
  padding: 5px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 12px;
  width: 200px;
  outline: none;
}
.cfg-search-input:focus { border-color: #1a5276; }

.cfg-count {
  font-size: 11px;
  color: #888;
  margin-left: 4px;
}

.cfg-body {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
}

.cfg-loading {
  text-align: center;
  margin-top: 40px;
  color: #888;
  font-size: 13px;
}

.cfg-table-wrap { overflow-x: auto; }

.cfg-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.cfg-table th {
  background: #1a5276;
  color: #fff;
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cfg-table td {
  padding: 3px 7px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfg-row:hover td { background: #f0f6ff; }
.cfg-edit-row td { background: #fffde7; }
.cfg-edit-row:hover td { background: #fffde7; }

.cfg-inp {
  width: 100%;
  padding: 2px 5px;
  border: 1px solid #90caf9;
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}
.cfg-inp:focus { border-color: #1565c0; }

.cfg-td-center { text-align: center; }
.cfg-td-actions {
  white-space: nowrap;
  text-align: right;
  width: 68px !important;
  min-width: 68px;
}

.cfg-btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 3px;
  opacity: .55;
  line-height: 1;
}
.cfg-btn-icon:hover { opacity: 1; background: #e3f2fd; }
.cfg-btn-del:hover { background: #ffebee !important; }
.cfg-row-inactive { opacity: 0.45; }
.cfg-row-inactive td:not(.cfg-td-actions) { text-decoration: line-through; color: #666; }
.cfg-btn-reactivate { color: #1a7a2a; }
.cfg-btn-reactivate:hover { background: #e8f5e9 !important; }
.cfg-cui-vacant { font-size: 11px; color: #aaa; font-style: italic; padding: 2px 4px; }
.cfg-select { width: 100%; font-size: 13px; padding: 1px 2px; border: 1px solid #bbb; border-radius: 3px; background: #fff; }
.cd-select { position: relative; width: 100%; }
.cd-search { width: 100%; box-sizing: border-box; }
#cd-global-dropdown { position: absolute; z-index: 9999; background: #fff; border: 1px solid #aaa; border-radius: 3px; max-height: 220px; overflow-y: auto; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
#cd-global-dropdown.hidden { display: none; }
.cd-item { padding: 5px 9px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.cd-item:hover, .cd-item.cd-focused { background: #e3f2fd; }
.cd-clear { color: #888; font-style: italic; border-bottom: 1px solid #eee; }
.cd-no-result { padding: 5px 9px; color: #999; font-style: italic; font-size: 13px; }

.cfg-btn-save-row {
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 8px;
  font-weight: 700;
  line-height: 1.4;
}
.cfg-btn-save-row:hover { background: #1b5e20; }

/* ─── Config table: număr input fără spinner, padding redus pe celule înguste ── */
.cfg-table input[type=number]::-webkit-inner-spin-button,
.cfg-table input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.cfg-table input[type=number] { -moz-appearance: textfield; }
.cfg-table td { padding: 3px 4px; }

/* ─── Paletă discipline ──────────────────────────────────────────────────── */
#app-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
#toolbar { flex-shrink: 0; }
#main-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
/* Override hardcoded height so flexbox can control it */
#timetable-wrap {
  height: auto !important;
  flex: 1;
  min-height: 0;
}
#palette-sort-bar {
  flex-shrink: 0;
  padding: 3px 12px 4px;
  background: #f4f7fb;
  border-top: 1px solid #d0d8e8;
  font-size: 12px;
  color: #555;
  user-select: none;
}
#palette-sort-bar label { cursor: pointer; display: flex; align-items: center; gap: 5px; }
#palette-area {
  flex-shrink: 0;
  max-height: 220px;
  border-top: 2px solid #d0d8e8;
  background: #f4f7fb;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
}
.palette-cards {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}
.palette-card {
  cursor: grab;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  min-width: 60px;
  max-width: 88px;
  border-radius: 4px;
  font-size: 11px;
  border-left: 3px solid #aaa;
  background: #f8f9fa;
  user-select: none;
  flex-shrink: 0;
  line-height: 1.35;
  height: 72px;
}
.palette-card:hover { box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.palette-card:active { cursor: grabbing; }
.palette-card .card-act { font-weight: 700; font-size: 10px; opacity: .7; }
.palette-card .card-disc {
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: 11px;
}
.palette-rem { font-size: 10px; font-weight: 700; margin-top: 3px; }
.rem-green { color: #27ae60; }
.rem-red   { color: #e74c3c; }
.rem-zero  { color: #aaa; }
.palette-empty {
  color: #aaa;
  font-size: 12px;
  padding: 4px;
  align-self: center;
}

.palette-card.palette-inactive {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(60%);
}
.palette-card.palette-inactive:hover { box-shadow: none; }


/* ─── ep-search-inp (cadre/sali în panoul de editare) ─────────────────────── */
.ep-search-inp {
  flex: 1;
  width: 100%;
  padding: 3px 7px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.ep-search-inp:focus { border-color: #1565c0; }
.ep-search-inp::placeholder { color: #999; font-style: italic; }

#ep-search-dropdown {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 3px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
#ep-search-dropdown.hidden { display: none; }
.ep-search-dd-item {
  padding: 5px 9px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}
.ep-search-dd-item:hover,
.ep-search-dd-item.ep-focused { background: #e3f2fd; }
.ep-search-dd-used { color: #aaa; cursor: default; }
.ep-search-dd-used:hover { background: #f5f5f5 !important; }
.ep-search-dd-empty { padding: 5px 9px; color: #999; font-style: italic; font-size: 12px; }

/* Multi-edit panel */
#edit-panel.ep-multi .ep-header { background: #4a148c; }
