/*
Theme Name: iOfficer DQTV
Theme URI: https://vntdp.com/
Description: Theme chuẩn iOfficer VNPT cho hệ thống Quản lý Dân quân tự vệ. Tích hợp plugin ql-dqtv.
Version: 1.0.0
Author: Trương Duy Phương
Author URI: https://vntdp.com/
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iofficer-dqtv
Tags: iofficer, vnpt, military, dqtv, responsive
*/

/* ============================================================
   iOfficer DQTV - VNPT Design System
   Bảng màu: Đỏ VNPT (#E31E24) + Navy (#003366) + Trắng
   ============================================================ */

:root {
  /* VNPT Brand Colors */
  --vnpt-red:        #E31E24;
  --vnpt-red-dark:   #B71C1C;
  --vnpt-red-light:  #FFEBEE;
  --vnpt-navy:       #003366;
  --vnpt-navy-mid:   #004A9F;
  --vnpt-navy-light: #E8EEF7;
  --vnpt-gold:       #FFB300;
  --vnpt-green:      #2E7D32;
  --vnpt-green-light:#E8F5E9;

  /* Neutral */
  --white:           #FFFFFF;
  --gray-50:         #F8FAFB;
  --gray-100:        #EFF1F3;
  --gray-200:        #E0E4E9;
  --gray-400:        #9CA3AF;
  --gray-600:        #4B5563;
  --gray-800:        #1F2937;

  /* iOfficer Layout */
  --sidebar-w:       240px;
  --topbar-h:        60px;
  --border-r:        8px;
  --shadow-sm:       0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:       0 8px 32px rgba(0,0,0,0.14);
  --transition:      0.2s ease;

  /* Font */
  --font-sans:       'Be Vietnam Pro', 'SVN-Gilroy', -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}
a { color: var(--vnpt-navy-mid); text-decoration: none; }
a:hover { color: var(--vnpt-red); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.io-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.io-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--vnpt-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.io-topbar__brand {
  display: flex;
  align-items: center;
  width: var(--sidebar-w);
  padding: 0 20px;
  gap: 10px;
  background: var(--vnpt-red);
  height: 100%;
  flex-shrink: 0;
}
.io-topbar__brand img { height: 36px; }
.io-topbar__brand-text {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.io-topbar__brand-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.io-topbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.io-topbar__toggle:hover { background: rgba(255,255,255,0.1); }

.io-topbar__breadcrumb {
  flex: 1;
  padding: 0 20px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.io-topbar__breadcrumb a { color: var(--white); }
.io-topbar__breadcrumb span { color: rgba(255,255,255,0.5); margin: 0 6px; }

.io-topbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.io-topbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  border: none;
  position: relative;
  transition: var(--transition);
}
.io-topbar__btn:hover { background: rgba(255,255,255,0.2); color: var(--vnpt-gold); }

.io-topbar__badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--vnpt-red);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.io-topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
}
.io-topbar__user:hover { background: rgba(255,255,255,0.1); }
.io-topbar__user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--vnpt-gold);
  object-fit: cover;
}
.io-topbar__user-name {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.io-topbar__user-role {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.io-sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 900;
  transition: transform var(--transition);
}
.io-sidebar::-webkit-scrollbar { width: 4px; }
.io-sidebar::-webkit-scrollbar-track { background: transparent; }
.io-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

/* Sidebar User Card */
.io-sidebar__user {
  padding: 20px 16px 16px;
  background: linear-gradient(135deg, var(--vnpt-navy), var(--vnpt-navy-mid));
  text-align: center;
  border-bottom: 3px solid var(--vnpt-red);
}
.io-sidebar__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--vnpt-gold);
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 0 0 3px rgba(255,179,0,0.3);
}
.io-sidebar__user-name {
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.io-sidebar__user-rank {
  display: inline-block;
  background: var(--vnpt-gold);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.io-sidebar__user-unit {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
}

/* Sidebar Nav */
.io-sidebar__section-label {
  padding: 14px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray-400);
}

.io-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  border-left: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.io-sidebar__nav a .io-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}
.io-sidebar__nav a .io-nav-badge {
  margin-left: auto;
  background: var(--vnpt-red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.io-sidebar__nav a:hover {
  background: var(--vnpt-navy-light);
  color: var(--vnpt-navy);
  border-left-color: var(--vnpt-navy);
}
.io-sidebar__nav a.active {
  background: var(--vnpt-red-light);
  color: var(--vnpt-red);
  border-left-color: var(--vnpt-red);
  font-weight: 700;
}

.io-sidebar__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.io-main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  flex: 1;
  min-width: 0;
}

.io-content {
  padding: 24px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.io-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.io-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--vnpt-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.io-page-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--vnpt-red);
  border-radius: 2px;
}

/* ============================================================
   CARDS
   ============================================================ */
.io-card {
  background: var(--white);
  border-radius: var(--border-r);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.io-card__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.io-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--vnpt-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.io-card__title-icon {
  width: 28px; height: 28px;
  background: var(--vnpt-navy-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--vnpt-navy);
}
.io-card__body { padding: 20px; }
.io-card__footer {
  padding: 12px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.io-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.io-stat {
  background: var(--white);
  border-radius: var(--border-r);
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.io-stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
}
.io-stat--red::after   { background: var(--vnpt-red); }
.io-stat--navy::after  { background: var(--vnpt-navy); }
.io-stat--green::after { background: var(--vnpt-green); }
.io-stat--gold::after  { background: var(--vnpt-gold); }

.io-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.io-stat__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.io-stat--red .io-stat__icon   { background: var(--vnpt-red-light);   color: var(--vnpt-red); }
.io-stat--navy .io-stat__icon  { background: var(--vnpt-navy-light);   color: var(--vnpt-navy); }
.io-stat--green .io-stat__icon { background: var(--vnpt-green-light);  color: var(--vnpt-green); }
.io-stat--gold .io-stat__icon  { background: #FFF8E1;                   color: var(--vnpt-gold); }

.io-stat__info { flex: 1; min-width: 0; }
.io-stat__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--gray-800);
}
.io-stat__label {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
  font-weight: 500;
}
.io-stat__change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.io-stat__change--up   { color: var(--vnpt-green); }
.io-stat__change--down { color: var(--vnpt-red); }

/* ============================================================
   TABLES
   ============================================================ */
.io-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.io-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.io-table thead th {
  background: var(--vnpt-navy);
  color: var(--white);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.3px;
  border: none;
}
.io-table thead th:first-child { border-radius: 0; }
.io-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.io-table tbody tr:hover { background: var(--vnpt-navy-light); }
.io-table tbody td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-800);
  vertical-align: middle;
}
.io-table tfoot td {
  padding: 10px 14px;
  background: var(--gray-50);
  font-size: 12px;
  color: var(--gray-400);
  border-top: 2px solid var(--gray-200);
}

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.io-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.io-badge--active  { background: var(--vnpt-green-light); color: var(--vnpt-green); }
.io-badge--danger  { background: var(--vnpt-red-light);   color: var(--vnpt-red); }
.io-badge--warning { background: #FFF8E1; color: #F57F17; }
.io-badge--info    { background: var(--vnpt-navy-light);  color: var(--vnpt-navy); }
.io-badge--gray    { background: var(--gray-100); color: var(--gray-600); }

/* ============================================================
   BUTTONS
   ============================================================ */
.io-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.io-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.io-btn:active { transform: none; }

.io-btn--primary { background: var(--vnpt-red);    color: var(--white); }
.io-btn--primary:hover { background: var(--vnpt-red-dark); color: var(--white); }

.io-btn--navy    { background: var(--vnpt-navy);   color: var(--white); }
.io-btn--navy:hover { background: var(--vnpt-navy-mid); color: var(--white); }

.io-btn--outline {
  background: var(--white);
  color: var(--vnpt-navy);
  border: 1.5px solid var(--vnpt-navy);
}
.io-btn--outline:hover { background: var(--vnpt-navy-light); }

.io-btn--sm { padding: 5px 12px; font-size: 12px; }
.io-btn--lg { padding: 11px 24px; font-size: 15px; }

/* ============================================================
   FORMS
   ============================================================ */
.io-form-group {
  margin-bottom: 16px;
}
.io-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.io-form-label .required { color: var(--vnpt-red); margin-left: 2px; }

.io-form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.io-form-control:focus {
  border-color: var(--vnpt-navy-mid);
  box-shadow: 0 0 0 3px rgba(0,74,159,0.12);
}
.io-form-control::placeholder { color: var(--gray-400); }

select.io-form-control { cursor: pointer; }

.io-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.io-profile {
  max-width: 960px;
  margin: 0 auto;
}

.io-profile__hero {
  background: linear-gradient(135deg, var(--vnpt-navy) 0%, var(--vnpt-navy-mid) 60%, var(--vnpt-red) 100%);
  border-radius: var(--border-r);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.io-profile__avatar-wrap { position: relative; flex-shrink: 0; }
.io-profile__avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 4px solid var(--vnpt-gold);
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(255,179,0,0.2);
}
.io-profile__rank-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  background: var(--vnpt-gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  border: 2px solid var(--white);
}

.io-profile__info { flex: 1; min-width: 0; }
.io-profile__name {
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}
.io-profile__meta {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin-bottom: 14px;
}
.io-profile__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.io-profile__tag {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
}
.io-profile__tag--gold   { border-color: var(--vnpt-gold); color: var(--vnpt-gold); }
.io-profile__tag--green  { border-color: #69F0AE; color: #69F0AE; }
.io-profile__tag--light  { color: rgba(255,255,255,0.85); }

.io-profile__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.io-info-row {
  display: flex;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-100);
}
.io-info-row:last-child { border-bottom: none; }
.io-info-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  padding-top: 1px;
}
.io-info-value {
  flex: 1;
  font-size: 13px;
  color: var(--gray-800);
  font-weight: 500;
}

/* ============================================================
   ALERTS & NOTICES
   ============================================================ */
.io-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.io-alert--warning { background: #FFF8E1; border-left: 4px solid var(--vnpt-gold); color: #5D4037; }
.io-alert--danger  { background: var(--vnpt-red-light); border-left: 4px solid var(--vnpt-red); color: var(--vnpt-red-dark); }
.io-alert--success { background: var(--vnpt-green-light); border-left: 4px solid var(--vnpt-green); color: var(--vnpt-green); }
.io-alert--info    { background: var(--vnpt-navy-light); border-left: 4px solid var(--vnpt-navy); color: var(--vnpt-navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.io-footer {
  text-align: center;
  padding: 20px 24px;
  color: var(--gray-400);
  font-size: 12px;
  border-top: 1px solid var(--gray-200);
  margin-top: 16px;
}
.io-footer strong { color: var(--vnpt-navy); }
.io-footer .io-footer__red { color: var(--vnpt-red); }

/* ============================================================
   PAGINATION
   ============================================================ */
.io-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0;
}
.io-pagination a,
.io-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
}
.io-pagination a:hover { background: var(--vnpt-navy-light); border-color: var(--vnpt-navy); color: var(--vnpt-navy); }
.io-pagination .current { background: var(--vnpt-red); border-color: var(--vnpt-red); color: var(--white); }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.io-search {
  position: relative;
  max-width: 340px;
}
.io-search__input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.io-search__input:focus {
  border-color: var(--vnpt-navy-mid);
  box-shadow: 0 0 0 3px rgba(0,74,159,0.10);
}
.io-search__icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

/* ============================================================
   DROPDOWN MENU
   ============================================================ */
.io-dropdown { position: relative; }
.io-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.18s ease;
}
.io-dropdown.open .io-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.io-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-800);
  transition: var(--transition);
}
.io-dropdown__item:hover { background: var(--vnpt-navy-light); color: var(--vnpt-navy); }
.io-dropdown__item--danger { color: var(--vnpt-red); }
.io-dropdown__item--danger:hover { background: var(--vnpt-red-light); }
.io-dropdown__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  :root { --sidebar-w: 0px; }

  .io-sidebar {
    transform: translateX(-240px);
    width: 240px;
  }
  .io-sidebar.open { transform: translateX(0); }

  .io-topbar__brand { width: auto; padding: 0 16px; }
  .io-topbar__toggle { display: flex; }

  .io-main { margin-left: 0; }
  .io-content { padding: 16px; }

  .io-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .io-form-row { grid-template-columns: 1fr; }

  .io-profile__hero { padding: 20px; gap: 16px; }
  .io-profile__name { font-size: 20px; }
  .io-profile__avatar { width: 80px; height: 80px; }
}

@media (max-width: 576px) {
  .io-stats-grid { grid-template-columns: 1fr; }
  .io-table { font-size: 12px; }
  .io-table thead th,
  .io-table tbody td { padding: 8px 10px; }
  .io-topbar__breadcrumb { display: none; }
  .io-topbar__user-name,
  .io-topbar__user-role { display: none; }
}

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.io-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 850;
  backdrop-filter: blur(2px);
}
.io-overlay.open { display: block; }

/* ============================================================
   ENTRY CONTENT (page.php)
   ============================================================ */
.io-entry-content { line-height: 1.8; }
.io-entry-content h1,.io-entry-content h2,.io-entry-content h3 {
  color: var(--vnpt-navy);
  margin: 1em 0 .5em;
  font-weight: 700;
}
.io-entry-content p { margin-bottom: 1em; }
.io-entry-content ul,.io-entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.io-entry-content li { margin-bottom: .4em; }
.io-entry-content a { color: var(--vnpt-red); text-decoration: underline; }
.io-entry-content table { width:100%; border-collapse:collapse; margin-bottom:1em; }
.io-entry-content th { background:var(--vnpt-navy);color:var(--white);padding:8px 12px; }
.io-entry-content td { padding:8px 12px;border-bottom:1px solid var(--gray-200); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .io-sidebar,.io-topbar,.io-topbar__right,.io-btn,.io-pagination { display:none !important; }
  .io-main { margin-left:0 !important; padding-top:0 !important; }
  .io-card { box-shadow:none !important; border:1px solid #ccc !important; }
}
