/* TimeERP - Marketing Lead Management */
a.sidebar__item { color: inherit; text-decoration: none; }

.lm-top-checkout {
  height: 32px; padding: 0 14px; border: none; border-radius: 4px;
  background: #25b7a7; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lm-top-clock { font-size: 24px; color: #25B7A7; font-weight: 500; min-width: 56px; text-align: center; }
.lm-top-icon { color: #25B7A7 !important; }

.lm-page {
  min-height: 100%;
  margin: -16px calc(var(--content-pad-x, 16px) * -1) -24px;
  padding: 12px 10px 18px;
  background: #f3f5f7;
}
.lm-title { margin: 0 0 8px; font-size: 30px; color: #303754; font-weight: 600; }

.lm-panel {
  background: #fff; border: 1px solid #e8edf2; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden;
}

.lm-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 10px; border-bottom: 1px solid #eef2f6;
}
.lm-toolbar__left { flex: 1; min-width: 280px; }
.lm-search {
  display: flex; align-items: center; gap: 6px; height: 28px; max-width: 420px;
  border: 1px solid #d9d9d9; border-radius: 2px; padding: 0 8px; background: #fff;
}
.lm-search svg { width: 12px; height: 12px; color: #8fa0b6; }
.lm-search input { border: none; outline: none; width: 100%; font-size: 12px; color: #4b5563; font-family: inherit; }

.lm-toolbar__right { display: inline-flex; align-items: center; gap: 6px; }
.lm-icon-btn, .lm-plus-btn, .lm-pill-btn {
  height: 32px; min-width: 32px; border: 1px solid #d4dbe3; border-radius: 6px;
  background: #fff; color: #374151; cursor: pointer; font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 7px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04);
}
.lm-icon-btn:hover, .lm-pill-btn:hover { border-color: #25B7A7; color: #25B7A7; }
.lm-icon-btn svg, .lm-pill-btn svg { flex-shrink: 0; }
.lm-icon-btn--dd { min-width: 48px; gap: 4px; padding: 0 8px; }
.lm-icon-btn.is-open, .lm-icon-btn--dd.is-open { border-color: #25B7A7; color: #25B7A7; }
.lm-chevron { color: inherit; }
.lm-col-wrap { position: relative; }
.lm-col-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  width: 230px; max-height: 380px; overflow: auto;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16); padding: 8px 0 6px;
}
.lm-col-menu::before {
  content: ''; position: absolute; top: -6px; right: 18px;
  width: 10px; height: 10px; background: #fff; border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb; transform: rotate(45deg);
}
.lm-col-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 12px 8px; border-bottom: 1px solid #f1f5f9;
}
.lm-col-menu__title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #1f2937;
}
.lm-col-selall {
  border: none; background: none; color: #25B7A7; font-size: 12px;
  font-weight: 600; cursor: pointer; font-family: inherit; padding: 0;
}
.lm-col-menu__list { padding: 6px 0; }
.lm-col-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; font-size: 13px; color: #374151; cursor: pointer;
}
.lm-col-item:hover { background: #f8fafc; }
.lm-col-item input { accent-color: #25B7A7; width: 14px; height: 14px; margin: 0; }
.lm-table [data-col].is-hidden { display: none; }
.lm-filter-menu { width: 240px; padding: 8px 10px 10px; }
.lm-filter-box { border: 1px solid #e5e7eb; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.lm-filter-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: none; background: #fff; font-size: 13px; color: #1f2937;
  cursor: pointer; font-family: inherit; border-bottom: 1px solid #f1f5f9;
}
.lm-filter-row:last-of-type { border-bottom: none; }
.lm-filter-row.is-open svg { transform: rotate(90deg); }
.lm-filter-panel {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px 10px;
  border-bottom: 1px solid #f1f5f9; background: #fafafa;
}
.lm-filter-panel input {
  flex: 1; min-width: 0; height: 28px; border: 1px solid #d4dbe3; border-radius: 4px;
  padding: 0 6px; font-size: 12px; font-family: inherit;
}
.lm-filter-panel span { font-size: 11px; color: #6b7280; }
.lm-settings-menu { width: 170px; padding: 6px 0; }
.lm-set-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: none; background: none; font-size: 13px;
  color: #1f2937; cursor: pointer; font-family: inherit; text-align: left;
}
.lm-set-item:hover { background: #f8fafc; }
.lm-plus-btn {
  background: #25B7A7; border-color: #25B7A7; color: #fff; font-size: 20px;
  min-width: 32px; font-weight: 500; box-shadow: 0 2px 4px rgba(37, 183, 167, .28);
}
.lm-icon-btn--xls { padding: 0 6px; }
.lm-pill-btn {
  gap: 6px; padding: 0 10px; font-size: 12px; font-weight: 500; color: #374151;
  white-space: nowrap; font-family: inherit;
}

.lm-tabs { display: flex; gap: 14px; padding: 8px 10px 6px; border-bottom: 1px solid #eef2f6; }
.lm-tab {
  border: none; background: none; padding: 0 0 6px; font-size: 11px; color: #111827;
  cursor: pointer; border-bottom: 2px solid transparent;
}
.lm-tab.is-active { color: #25B7A7; border-bottom-color: #25B7A7; }

.lm-table-wrap { overflow: auto; }
.lm-table { width: 100%; border-collapse: collapse; min-width: 1760px; font-size: 11px; }
.lm-table th {
  text-align: left; color: #4b5563; background: #fff; padding: 6px 8px;
  border-bottom: 1px solid #eef2f6; font-weight: 500; white-space: nowrap;
}
.lm-table td {
  padding: 8px; border-bottom: 1px solid #f0f0f0; color: #1f2937; vertical-align: top;
}
.lm-table tr:hover td { background: #fafafa; }

.lm-status {
  height: 28px; min-width: 150px; border: 1px solid #d9d9d9; border-radius: 4px;
  background: #fff; font-size: 12px; color: #374151; padding: 0 8px; font-family: inherit;
}
.lm-action-icons { display: inline-flex; align-items: center; gap: 8px; }
.lm-action-icons button {
  border: none; background: none; padding: 2px; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
}
.lm-action-icons button:hover { background: #f3f4f6; }
.lm-action-icons .is-blue { color: #25b7a7; }
.lm-action-icons .is-red { color: #f07171; }
.lm-action-icons .is-green { color: #22c55e; }
.lm-action-icons .is-orange { color: #e67e22; }
.lm-action-icons .is-maroon { color: #b42318; }
.lm-action-icons .is-black { color: #111827; }
.lm-action-icons .is-boxed { border: 1px solid #e5e7eb; background: #fff; }
.lm-link { color: #1fa396; text-decoration: none; }

.lm-pagination {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px; border-top: 1px solid #eef2f6;
}
.lm-pagination__center { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.lm-page-nav {
  width: 26px; height: 24px; border: 1px solid #d9d9d9; border-radius: 4px;
  background: #fff; color: #9ca3af;
}
.lm-page-input {
  width: 38px; height: 24px; border: 1px solid #d9d9d9; border-radius: 4px;
  text-align: center; font-size: 12px;
}
.lm-pagination__right { justify-self: end; border: 1px solid #d9d9d9; border-radius: 2px; padding: 2px 8px; font-size: 12px; color: #4b5563; }

.lm-footer { text-align: center; padding: 12px 0 4px; color: #6b7280; font-size: 12px; }
.lm-footer nav { display: inline-flex; gap: 20px; margin-bottom: 4px; }
.lm-footer nav a { color: #25556f; text-decoration: none; font-weight: 600; }
.lm-footer p { margin: 0; }
.lm-footer span { color: #1fa396; font-weight: 700; }

/* Modal */
.lm-modal-scrim {
  position: fixed; inset: 0; z-index: 500; background: rgba(15, 23, 42, .45);
  display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.lm-modal-scrim[hidden] { display: none !important; }
.lm-modal {
  width: min(1020px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: #fff; border-radius: 2px; overflow-y: auto;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .2); position: relative; margin: auto 0;
}
.lm-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 10px 12px; border-bottom: 1px solid #eef2f6;
}
.lm-modal__head-main { min-width: 0; }
.lm-modal__head h2 { margin: 0; font-size: 14px; font-weight: 600; color: #4b5563; }
.lm-modal__head p { margin: 0; font-size: 26px; color: #25B7A7; font-weight: 600; line-height: 1.2; }
.lm-modal__head-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  flex-shrink: 0; padding-top: 2px;
}
.lm-back-btn {
  width: 24px; height: 24px; border: none; border-radius: 4px;
  background: #25B7A7; color: #fff; font-size: 18px; cursor: pointer; line-height: 1;
}
.lm-view-link {
  color: #1fa396; text-decoration: none; font-size: 11px; white-space: nowrap;
}
.lm-view-link:hover { text-decoration: underline; }
.lm-form { padding: 10px 8px 16px; }
.lm-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px; margin-bottom: 6px; align-items: start; }
.lm-row > label { text-align: right; padding-top: 6px; color: #374151; font-size: 12px; }
.lm-row > label span { color: #ef4444; }
.lm-row input, .lm-row select, .lm-row textarea {
  width: 100%; border: 1px solid #d9d9d9; border-radius: 2px; padding: 5px 8px;
  font-size: 12px; font-family: inherit; color: #111827;
}
.lm-row textarea { min-height: 30px; max-height: 72px; }
.lm-stars { color: #e5e7eb; font-size: 16px; line-height: 30px; }
.lm-form-actions { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.lm-btn {
  height: 26px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff;
  color: #4b5563; font-size: 11px; padding: 0 12px; cursor: pointer;
}
.lm-btn--primary { background: #25B7A7; color: #fff; border-color: #25B7A7; }

@media (max-width: 900px) {
  .lm-row { grid-template-columns: 1fr; }
  .lm-row > label { text-align: left; padding-top: 0; }
}
