/* =============================================================================
   app-extras.css — CHỈ THÊM, không thay theme.css / style.css trên host.
   Host app.js + ops.css mới hơn K:\congno. Không upload đè theme.css từ máy local.
   Deploy: copy file này + thêm <link> sau theme.css.
   ============================================================================= */

/* ---- Thẻ đã đăng ký (Lotus) ---- */
.lotus-accounts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.lotus-accounts-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 16px;
}
.lotus-accounts-head p {
  margin: 0;
  color: var(--muted, #4a6d8c);
  font-size: 13px;
  line-height: 1.45;
}
.lotus-accounts-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.lotus-accounts-tools label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 260px;
  min-width: min(260px, 100%);
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line, #c9d8ea);
  border-radius: 10px;
  background: #fff;
}
.lotus-accounts-tools label input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.lotus-accounts-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line, #c9d8ea);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #0f2744);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.lotus-accounts-tools button.primary {
  background: var(--primary, #0284c7);
  border-color: var(--primary, #0284c7);
  color: #fff;
}
.lotus-accounts-tools button .material-symbols-outlined { font-size: 18px; }

.lotus-bulk-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  font-size: 13px;
}
.lotus-bulk-status progress { width: 100%; }

.lotus-account-table-wrap { overflow-x: auto; }
.lotus-account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lotus-account-table th {
  text-align: left;
  padding: 10px 8px;
  color: var(--muted, #4a6d8c);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line, #c9d8ea);
  white-space: nowrap;
}
.lotus-account-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line, #c9d8ea);
  vertical-align: top;
}
.lotus-account-number { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lotus-tier-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #e8eef6;
  color: #334155;
}
.lotus-tier-badge.tier-silver { background: #e5e7eb; color: #374151; }
.lotus-tier-badge.tier-gold { background: #fef3c7; color: #92400e; }
.lotus-tier-badge.tier-titanium { background: #e0e7ff; color: #3730a3; }
.lotus-tier-badge.tier-platinum { background: #f3e8ff; color: #6b21a8; }
.lotus-table-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted, #4a6d8c);
}
.lotus-table-contact span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lotus-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lotus-account-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lotus-add-existing {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #c5d4f0;
  border-radius: 12px;
  background: #f5f8ff;
}
.lotus-add-existing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.lotus-add-existing-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}
.lotus-add-existing-grid input,
.lotus-add-existing-grid select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cfd8e8;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .lotus-add-existing-grid { grid-template-columns: 1fr 1fr; }
  .lotus-accounts-tools button { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .lotus-add-existing-grid { grid-template-columns: 1fr; }
}

/* boot-loader overflow guard — chữ ligature không đè «Đang tải dữ liệu» */
.material-symbols-outlined {
  font-feature-settings: "liga" 1;
  -webkit-font-feature-settings: "liga" 1;
}
.boot-loader .boot-icon {
  overflow: hidden;
  max-width: 64px;
  max-height: 64px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.boot-loader .boot-plane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: var(--primary, #0284c7);
  background: var(--primary-soft, rgba(2, 132, 199, 0.12));
  font-size: 0 !important;
}
.boot-loader .boot-plane::after {
  content: "";
  width: 28px;
  height: 28px;
  background: currentColor;
  clip-path: polygon(0% 45%, 55% 40%, 100% 15%, 62% 50%, 100% 85%, 55% 60%, 0% 55%, 18% 50%);
}
.boot-loader.error .boot-plane { color: var(--danger, #b91c1c); background: var(--danger-soft, #fee2e2); }

/* tablet nav hamburger — máy tính bảng 721–1100px: ẩn sidebar cố định (đè nội dung), dùng nút menu như điện thoại */
@media (max-width: 1100px) {
  .app-sidebar {
    display: none !important;
  }
  .content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .nav-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #0284c7;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-menu-btn .material-symbols-outlined {
    font-size: 24px;
    color: #fff;
  }
  .page-header,
  .content > header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .page-header-text {
    flex: 1 1 140px;
    min-width: 0;
  }
  .mnav[hidden] { display: none !important; }
  .mnav:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    z-index: 10000;
    background: #0c4a6e;
    color: #fff;
  }
  .mnav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 10px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .mnav-brand b { display: block; font-size: 15px; color: #fff; }
  .mnav-brand small { display: block; font-size: 11px; color: #c5d0e4; }
  .mnav-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    flex: 0 0 44px;
  }
  .mnav-x .material-symbols-outlined { font-size: 22px; color: #fff; }
  .mnav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px 0;
  }
  .mnav-end { height: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .mnav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 12px;
    color: #e8eef8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
  }
  .mnav-item .nav-icon,
  .mnav-item .material-symbols-outlined {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
  }
  .mnav-item.active {
    background: rgba(2, 132, 199, 0.45);
    color: #fff;
  }
  html.nav-lock,
  body.nav-lock {
    overflow: hidden;
    height: 100%;
  }
}
