/* ============================================================
   ADEEM REAL ESTATE — MAIN STYLESHEET
   ============================================================ */

/* ─── CSS Variables — Light mode is default ─────────────────── */
:root {
  --bg-page:       #f0f2f8;
  --bg-sidebar:    #e4eaf7;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8faff;
  --bg-input:      #ffffff;
  --border-color:  #dde1f0;
  --accent:        #5b7cfa;
  --accent-hover:  #4a6ae0;
  --accent-soft:   rgba(91,124,250,0.15);
  --text-primary:  #1e2238;
  --text-muted:    #5a6282;
  --text-dim:      #8892b0;
  --success:       #2dd4a0;
  --warning:       #f5a623;
  --danger:        #ef4444;
  --info:          #38bdf8;
  --sidebar-width: 240px;
  --header-height: 56px;
}

/* Light theme — Bootstrap variable overrides */
body.theme-light {
  --bs-body-color:      #1e2238;
  --bs-body-bg:         #f0f2f8;
  --bs-card-bg:         #ffffff;
  --bs-card-color:      #1e2238;
  --bs-border-color:    #dde1f0;
  --bs-secondary-color: #5a6282;
}

/* Dark theme — custom variable overrides */
body.theme-dark {
  --bg-page:       #0d0f1a;
  --bg-sidebar:    #111320;
  --bg-card:       #181b2e;
  --bg-card-hover: #1e2238;
  --bg-input:      #1a1d30;
  --border-color:  #2a2f4a;
  --text-primary:  #e8eaf6;
  --text-muted:    #8892b0;
  --text-dim:      #5a6282;
}

/* Dark theme — Bootstrap variable overrides */
body.theme-dark {
  --bs-body-color:      #e8eaf6;
  --bs-body-bg:         #0d0f1a;
  --bs-card-bg:         #181b2e;
  --bs-card-color:      #e8eaf6;
  --bs-border-color:    #2a2f4a;
  --bs-secondary-color: #8892b0;
}

/* Light theme — calendar property header: soft blue-gray instead of dark sidebar */
body.theme-light .prop-header td {
  background: #d8def0;
  color: #1e2238;
}

/* Light theme — calendar cell colors: stronger contrast on white background */
body.theme-light .cell-unpaid { background: rgba(239,68,68,0.10); }
body.theme-light .cell-vacant { background: rgba(148,163,184,0.22); }

/* Light mode — sidebar on light background needs dark text */
body.theme-light .sidebar { border-right-color: #cdd5e8; }
body.theme-light .sidebar-nav .nav-link { color: #3d4a6b; }
body.theme-light .sidebar-nav .nav-section-label { color: #8892b0; }
body.theme-light .sidebar-nav .nav-link:hover {
  color: #1e2238;
  background: rgba(91,124,250,0.08);
}
body.theme-light .sidebar-nav .nav-link.active {
  color: var(--accent);
  background: rgba(91,124,250,0.12);
}
body.theme-light .sidebar-nav .nav-link.active::before { background: var(--accent); }
body.theme-light .sidebar-brand .brand-text { color: #1e2238; }
body.theme-light .sidebar-brand .brand-sub  { color: #5a6282; }
body.theme-light .sidebar-footer { border-top-color: #cdd5e8; }
body.theme-light .user-card { background: rgba(0,0,0,0.04); }
body.theme-light .user-name { color: #1e2238; }
body.theme-light .user-role { color: #5a6282; }

/* ─── Arabic / RTL layout ───────────────────────────────── */
body.lang-ar .sidebar          { left: auto; right: 0; }
body.lang-ar .main-content     { margin-left: 0; margin-right: var(--sidebar-width); }
body.lang-ar .btn-hamburger    { left: auto; right: 1rem; }
body.lang-ar .sidebar-nav .nav-link::before { left: auto; right: 0; border-radius: 0 3px 3px 0; }
body.lang-ar .nav-icon         { margin-right: 0; margin-left: 10px; }

/* ─── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: var(--bg-page);
  color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ─── Layout ────────────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-height);
}

.sidebar-brand .brand-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-brand .brand-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-brand .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 20px 4px;
  margin-top: 8px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-nav .nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.sidebar-nav .nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link .nav-icon {
  width: 18px; text-align: center; font-size: 15px; flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ─── Main Content ──────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ─── Top Bar ───────────────────────────────────────────────── */
.topbar {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Page Body ─────────────────────────────────────────────── */
.page-body {
  padding: 24px;
  flex: 1;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 18px; }

/* stat cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.blue   { background: rgba(91,124,250,0.15); color: var(--accent); }
.stat-icon.green  { background: rgba(45,212,160,0.15); color: var(--success); }
.stat-icon.orange { background: rgba(245,166,35,0.15); color: var(--warning); }
.stat-icon.red    { background: rgba(239,68,68,0.15);  color: var(--danger); }
.stat-icon.teal   { background: rgba(56,189,248,0.15); color: var(--info); }

.stat-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 2px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── Tables ────────────────────────────────────────────────── */
.table {
  --bs-table-color: var(--text-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
  margin: 0;
}

.table thead th {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-color);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  white-space: nowrap;
}
body.theme-light .table thead th {
  background: rgba(0,0,0,0.03);
}

.table tbody td {
  border-color: var(--border-color);
  padding: 10px 14px;
  vertical-align: middle;
  font-size: 13.5px;
}

/* Neutralise Bootstrap's inset box-shadow on all table cells */
.table > :not(caption) > * > * {
  box-shadow: none !important;
}

/* Table row hover — our own implementation */
body.theme-light .table tbody tr:hover > td,
body.theme-light .table tbody tr:hover > th {
  background-color: rgba(0,0,0,0.04) !important;
}
body.theme-dark .table tbody tr:hover > td,
body.theme-dark .table tbody tr:hover > th {
  background-color: rgba(255,255,255,0.04) !important;
}
body.theme-light .table a:not(.btn) {
  color: var(--accent);
}
body.theme-light .table a:not(.btn):hover {
  color: var(--text-primary);
}

/* Dark mode — plain <a> links inside tables (e.g. tenant name) */
body.theme-dark .table a:not(.btn) {
  color: var(--accent);
}
body.theme-dark .table a:not(.btn):hover {
  color: var(--text-primary);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  padding: 6px 14px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-muted);
  background: transparent;
}
.btn-outline-secondary:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); border-color: var(--text-dim); }

.btn-sm { font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.btn-icon { padding: 5px 8px; }

.btn-success { background: var(--success); border-color: var(--success); color: #0d1117; }
.btn-success:hover { background: #25b888; border-color: #25b888; color: #0d1117; }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #d63939; border-color: #d63939; }

.btn-warning { background: var(--warning); border-color: var(--warning); color: #0d1117; }
.btn-warning:hover { background: #d9941e; border-color: #d9941e; color: #0d1117; }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 7px;
  font-size: 13.5px;
  padding: 7px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
  background: var(--bg-input);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.form-control::placeholder { color: var(--text-dim); }

/* Fix date input text color in dark mode */
body.theme-dark input[type="date"]::-webkit-datetime-edit                { color: var(--text-primary); }
body.theme-dark input[type="date"]::-webkit-datetime-edit-fields-wrapper  { color: var(--text-primary); }
body.theme-dark input[type="date"]::-webkit-calendar-picker-indicator     { filter: invert(0.7); cursor: pointer; }

.form-select option { background: var(--bg-card); color: var(--text-primary); }

.form-text { font-size: 11.5px; color: var(--text-dim); }

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.badge-active    { background: rgba(45,212,160,0.15); color: var(--success); }
.badge-blocked   { background: rgba(239,68,68,0.15);  color: var(--danger); }
.badge-new       { background: rgba(91,124,250,0.15); color: var(--accent); }
.badge-rented    { background: rgba(45,212,160,0.15); color: var(--success); }
.badge-past      { background: rgba(90,98,130,0.2);   color: var(--text-dim); }
.badge-archived  { background: rgba(90,98,130,0.2);   color: var(--text-dim); }
.badge-paid      { background: rgba(45,212,160,0.15); color: var(--success); }
.badge-partial   { background: rgba(245,166,35,0.15); color: var(--warning); }
.badge-unpaid    { background: rgba(239,68,68,0.15);  color: var(--danger); }
.badge-cash      { background: rgba(45,212,160,0.15); color: var(--success); }
.badge-cheque    { background: rgba(91,124,250,0.15); color: var(--accent); }
.badge-transfer  { background: rgba(56,189,248,0.15); color: var(--info); }
.badge-card      { background: rgba(245,166,35,0.15); color: var(--warning); }
.badge-merged    { background: rgba(20,184,166,0.15); color: #14b8a6; }
.badge-group     { background: rgba(168,85,247,0.15); color: #a855f7; }

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
  border-radius: 8px;
  font-size: 13.5px;
  padding: 12px 16px;
  border: 1px solid;
}
.alert-success { background: rgba(45,212,160,0.12); border-color: rgba(45,212,160,0.3); color: var(--success); }
.alert-danger  { background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.3);  color: #f87171; }
.alert-warning { background: rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.3); color: var(--warning); }
.alert-info    { background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.3); color: var(--info); }

/* ─── Modals ────────────────────────────────────────────────── */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
}
.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}
.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 14px 20px;
}
.modal-title { font-size: 15px; font-weight: 600; }
.btn-close { filter: invert(1) brightness(0.7); }

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
}
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-primary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-dim); }

/* ─── Search / Filter bar ────────────────────────────────────── */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* ─── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-state h6 { font-size: 14px; margin-bottom: 4px; color: var(--text-primary); }
.empty-state p { font-size: 13px; }

/* ─── Detail Info Grid ───────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.info-item {}
.info-item .info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 4px; }
.info-item .info-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* ─── Pagination ─────────────────────────────────────────────── */
.page-link {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
}
.page-link:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-color); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-item.disabled .page-link { background: var(--bg-card); color: var(--text-dim); }

/* ─── Login Page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 36px 32px;
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}

.login-logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.login-logo p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Receipt Print Styles ───────────────────────────────────── */
/* ── Dashboard: Vacant Units card fixed height so layout never shifts ── */
@media (min-width: 992px) {
  .dashboard-vacant-card {
    height: 158px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .dashboard-vacant-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
}

@media print {
  /* Hide non-printable elements */
  .sidebar, .topbar, .no-print { display: none !important; }

  /* Page setup */
  @page { margin: 15mm 12mm; }

  /* Reset layout — both LTR and RTL margins */
  .app-wrapper { display: block !important; }
  .main-content { margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
  .page-body { padding: 0 !important; }

  /* Force light/print-friendly colors via CSS variable overrides */
  body {
    background: #fff !important;
    color: #000 !important;
    --bg-page: #fff;
    --bg-card: #fff;
    --bg-card-hover: #fff;
    --bg-input: #fff;
    --border-color: #ccc;
    --text-primary: #000;
    --text-muted: #444;
    --text-dim: #666;
    --accent: #2c5fe6;
    --success: #1a9e6e;
    --warning: #c07800;
    --danger: #c00;
    --info: #0070a8;
  }

  /* Receipt card */
  .receipt-wrap { max-width: 100%; padding: 0; margin: 0; }
  .card { border: 1px solid #ccc !important; border-radius: 6px !important; background: #fff !important; box-shadow: none !important; }
  .card-body { padding: 16px !important; }

  /* Badges: light backgrounds for print */
  .badge { border: 1px solid currentColor; background: transparent !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Tables */
  .table { border-collapse: collapse !important; }
  .table th, .table td { border: 1px solid #ddd !important; }

  /* Ensure colors print */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.receipt-wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Misc Utilities ─────────────────────────────────────────── */
.text-accent  { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger  { color: var(--danger) !important; }
.text-info    { color: var(--info) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-dim     { color: var(--text-dim) !important; }
.text-primary-c { color: var(--text-primary) !important; }

.bg-card    { background: var(--bg-card) !important; }
.border-custom { border-color: var(--border-color) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.rounded-custom { border-radius: 8px; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Hamburger button: hidden on desktop, fixed top-left on mobile ── */
.btn-hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 20px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ── Sidebar overlay (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
  /* Sidebar slides off-screen by default */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 200;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Main content takes full width */
  .main-content {
    margin-left: 0;
  }

  /* Topbar: leave room for hamburger (62px = 12px left + 38px btn + 12px gap) */
  .topbar {
    padding: 0 10px 0 62px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    gap: 6px;
  }
  .topbar-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Show hamburger on mobile */
  .btn-hamburger {
    display: inline-flex;
    align-items: center;
  }

  /* Filter bar: stack fields vertically */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar > * {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Stat card values: slightly smaller */
  .stat-value { font-size: 18px; }

  /* Receipt wrap: full width */
  .receipt-wrap { max-width: 100%; }
}
