﻿/* ============================================================
   style.css
   ============================================================ */
/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* Core palette — calm navy + a single restrained teal accent */
  --navy-900: #0e1526;
  --navy-800: #16203a;
  --navy-700: #202c4a;
  --navy-border: #26314f;

  --accent: #0f7a73;
  --accent-light: #14968d;
  --accent-soft: #e6f4f3;
  --accent-soft-2: rgba(15, 122, 115, 0.15);

  --primary: #0f7a73;
  --primary-hover: #14968d;
  --primary-soft: #e6f4f3;

  --white: #ffffff;
  --bg-body: #f4f6fa;
  --bg-sidebar: #1a3a4a;

  --text-dark: #1e293b;
  --text-mid: #64748b;
  --text-light: #94a3b8;
  --text-section: #5c6a86;

  --sidebar-text: #a8ccc9;
  --sidebar-text-dim: #5ba39d;
  --sidebar-text-active: #ffffff;

  --border: #eaeef4;
  --shadow-card:
    0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px -4px rgba(16, 24, 40, 0.08);
  --shadow-card-hover:
    0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 28px -6px rgba(16, 24, 40, 0.12);
  --shadow-panel:
    0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px -6px rgba(16, 24, 40, 0.08);

  --danger: #c0392b;
  --danger-soft: #fbeae8;
  --amber: #b7791f;
  --amber-soft: #fbf3e3;
  --success: #1f7a54;
  --success-soft: #e7f5ee;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --sidebar-w: 264px;
  --transition: 0.2s ease;
}

html,
body {
  height: 100%;
  font-family: "Cairo", sans-serif;
  color: var(--text-dark);
  background: var(--bg-body);
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font-family: inherit;
}

/* ===========================
   LAYOUT
=========================== */
.layout {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 2px dashed #e74c3c;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.logo-sub {
  font-size: 11px;
  color: var(--sidebar-text-dim);
}

/* Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.07) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
}

.nav-section {
  margin-bottom: 2px;
}

.nav-section-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1px;
  padding: 18px 10px 8px;
  text-transform: uppercase;
}

.nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-section ul li.nav-item:last-child {
  border-bottom: none;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
  transition:
    background var(--transition),
    color var(--transition);
  cursor: pointer;
}

.nav-item a i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: #ffffff;
  transition: color var(--transition);
  flex-shrink: 0;
}

.nav-item a span:not(.badge) {
  flex: 1;
}

.nav-item a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-item a:hover i {
  color: #fff;
}

.nav-item.active a {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.nav-item.active a i {
  color: #ffffff;
}

/* Badge */
.badge {
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  flex-shrink: 0;
}
.badge-red {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}
.nav-item.active .badge-red {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ===========================
   MAIN WRAPPER
=========================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===========================
   TOPBAR
=========================== */
.topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* User (left) */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.topbar-user:hover {
  background: var(--bg-body);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.user-role {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown-arrow {
  font-size: 9px;
  transition: transform var(--transition);
}
.topbar-user.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
  overflow: hidden;
}
.topbar-user.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-body);
}
.dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.dropdown-role {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
}

.dropdown-list {
  padding: 5px;
}
.dropdown-list li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-mid);
  transition:
    background var(--transition),
    color var(--transition);
}
.dropdown-list li a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.dropdown-list li a i {
  width: 15px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}
.dropdown-list li a:hover i {
  color: var(--primary);
}
.dropdown-list li button.logout-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
}
.logout-link {
  color: var(--red-text) !important;
}
.logout-link i {
  color: var(--red-text) !important;
}
.logout-link:hover {
  background: var(--red-bg) !important;
}

/* Search */
.topbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
  margin: 0 auto;
}
.search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 13px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding-block: 0;
  padding-inline: 38px 14px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  direction: inherit;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.search-input::placeholder {
  color: var(--text-light);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--white);
}

/* Breadcrumb */
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.breadcrumb-root {
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb-sep {
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb-current {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.main-content::-webkit-scrollbar {
  width: 6px;
}
.main-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 99px;
}

.page-inner {
  padding: 28px 14px 48px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}
.page-head h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.page-head p {
  font-size: 13px;
  color: var(--text-mid);
}

/* ===========================
   STAT CARDS
=========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
}
/* override all variants to same color */
.stat-icon-wrap.blue,
.stat-icon-wrap.indigo,
.stat-icon-wrap.cyan,
.stat-icon-wrap.sky,
.stat-icon-wrap.orange,
.stat-icon-wrap.red,
.stat-icon-wrap.purple,
.stat-icon-wrap.green {
  background: var(--accent-soft);
  color: var(--accent);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}
.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}
.stat-desc {
  font-size: 11.5px;
  color: var(--text-mid);
}

/* Small badge on card (status only) */
.sc-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
}
.sc-badge.warning {
  background: var(--amber-bg);
  color: var(--amber-text);
}
.sc-badge.danger {
  background: var(--red-bg);
  color: var(--red-text);
}
.sc-badge.info {
  background: var(--blue-bg);
  color: var(--blue-text);
}

/* ===========================
   PANELS
=========================== */
.panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.panel,
.panel-full {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.panel-full {
  margin-bottom: 28px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-head h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.panel-head p {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 400;
}

.panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
}

.panel-link-all {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  transition:
    background var(--transition),
    color var(--transition);
}
.panel-link-all:hover {
  background: var(--accent);
  color: var(--white);
}

/* Attention icon */
.attention-icon {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Attention list */
.attention-list {
  margin: 0;
}
.attention-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.attention-list li:last-child {
  border-bottom: none;
}
.attention-list li:hover {
  background: #fafbff;
}

.att-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.att-title {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.tag-order {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-sub {
  background: #fef2f2;
  color: #c0392b;
}
.tag-ticket {
  background: #f5f3ff;
  color: #6d28d9;
}
.tag-nfc {
  background: var(--accent-soft);
  color: var(--accent);
}

.att-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition:
    background var(--transition),
    color var(--transition);
}
.att-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.att-link i {
  font-size: 9px;
}

/* Tickets list */
.tickets-list {
  margin: 0;
}
.tickets-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.tickets-list li:last-child {
  border-bottom: none;
}
.tickets-list li:hover {
  background: #fafbff;
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ticket-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}
.ticket-id {
  font-size: 11px;
  color: var(--text-light);
}

.priority {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.priority.high {
  background: #fef2f2;
  color: #b91c1c;
}
.priority.medium {
  background: #fffbeb;
  color: #92400e;
}
.priority.low {
  background: #f0fdf4;
  color: #065f46;
  color: var(--green-text);
}

/* Table */
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: #fafbfd;
  white-space: nowrap;
}
.data-table td {
  font-size: 13px;
  color: var(--text-dark);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover {
  background: #fafbff;
}

.order-id {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.status-badge.pending {
  background: var(--amber-bg);
  color: var(--amber-text);
}
.status-badge.approved {
  background: var(--green-bg);
  color: var(--green-text);
}
.status-badge.rejected {
  background: var(--red-bg);
  color: var(--red-text);
}

/* ===========================
   HAMBURGER & OVERLAY
=========================== */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: var(--bg-body);
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.hamburger-btn:hover {
  background: var(--border);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 230px;
  }
  .topbar-breadcrumb {
    display: none;
  }
  .topbar-search {
    max-width: 280px;
  }
}
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panels-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .sidebar-overlay {
    display: block;
  }
  .hamburger-btn {
    display: flex;
  }

  .sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 270px !important;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    padding: 0 14px;
    gap: 10px;
  }
  .topbar-breadcrumb {
    display: none;
  }
  .topbar-search {
    max-width: unset;
    flex: 1;
  }
  .user-name,
  .user-role {
    display: none;
  }
  .topbar-user {
    padding: 4px 6px;
  }
  .main-wrapper {
    width: 100%;
  }
  .page-inner {
    padding: 20px 16px 32px;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-num {
    font-size: 22px;
  }
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }
}

/* ============================================================
   users.css
   ============================================================ */
/* ===========================
   USERS PAGE
=========================== */

/* Page Header */
.usr-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.usr-page-head h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.usr-page-head p {
  font-size: 13px;
  color: var(--text-mid);
}

.usr-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.usr-add-btn:hover {
  background: var(--accent-light);
}
a.usr-add-btn,
a.usr-action-btn,
a.usr-page-btn {
  text-decoration: none;
}

/* ===========================
   FILTERS
=========================== */
.usr-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.usr-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
}
.usr-search-wrap i {
  color: var(--text-light);
  font-size: 13px;
}
.usr-search-wrap input {
  flex: 1;
  height: 36px;
  border: none;
  background: transparent;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  direction: inherit;
}
.usr-search-wrap input::placeholder {
  color: var(--text-light);
}

.usr-select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
  min-width: 130px;
}
.usr-select:focus {
  border-color: var(--accent);
}

.usr-date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
}
.usr-date-wrap i {
  color: var(--text-light);
  font-size: 13px;
}
.usr-date {
  height: 36px;
  border: none;
  background: transparent;
  font-family: "Cairo", sans-serif;
  font-size: 12.5px;
  color: var(--text-dark);
  outline: none;
  min-width: 130px;
}

/* ===========================
   TABLE
=========================== */
.usr-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: visible;
  margin-bottom: 14px;
}

.usr-table {
  width: 100%;
  border-collapse: collapse;
}

.usr-table thead tr {
  background: #fafbfd;
}

.usr-table th {
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.usr-table td {
  font-size: 13px;
  color: var(--text-dark);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.usr-table tbody tr:last-child td {
  border-bottom: none;
}

.usr-table tbody tr {
  transition: background var(--transition);
}
.usr-table tbody tr:hover {
  background: #fafbff;
}

/* Name cell */
.usr-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.usr-avatar.suspended {
  background: #fef2f2;
  color: #dc2626;
}

.usr-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.usr-id {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

/* Email */
.usr-email {
  color: var(--accent);
  font-size: 13px;
  transition: color var(--transition);
}
.usr-email:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Status badge */
.usr-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
}
.usr-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  flex-shrink: 0;
}
.usr-status.active {
  background: #f0fdf4;
  color: #15803d;
}
.usr-status.active::before {
  background: #22c55e;
}
.usr-status.suspended {
  background: #fef2f2;
  color: #dc2626;
}
.usr-status.suspended::before {
  background: #ef4444;
}

/* Datetime */
.usr-datetime {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dark);
}
.usr-time {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

/* Action button */
.usr-actions {
  display: flex;
  align-items: center;
}

.usr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
  white-space: nowrap;
}
.usr-action-btn i {
  font-size: 9px;
}
.usr-action-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty state */
.usr-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}
.usr-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}
.usr-empty p {
  font-size: 14px;
}

/* ===========================
   PAGINATION
=========================== */
.usr-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}

.usr-total {
  font-size: 13px;
  color: var(--text-mid);
}
.usr-total strong {
  color: var(--text-dark);
}

.usr-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.usr-page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.usr-page-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.usr-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.usr-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .usr-table th:nth-child(5),
  .usr-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 768px) {
  .usr-page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .usr-filters {
    flex-direction: column;
  }
  .usr-search-wrap {
    min-width: unset;
  }

  .usr-table th:nth-child(2),
  .usr-table td:nth-child(2),
  .usr-table th:nth-child(6),
  .usr-table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  .usr-table th:nth-child(3),
  .usr-table td:nth-child(3) {
    display: none;
  }
}

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

/* Modal head */
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition),
    color var(--transition);
}
.modal-close:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Form */
.modal-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
}

.form-group input,
.form-group select {
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding: 0 12px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  direction: inherit;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 122, 115, 0.12);
  background: var(--white);
}

.form-group .form-error,
.form-group .form-hint {
  margin: 0;
  font-size: 12px;
}

.form-group .form-error {
  color: #dc2626;
}

.form-group .form-hint {
  color: var(--text-light);
}

/* Actions */
.modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.btn-modal-submit {
  flex: 1;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-modal-submit:hover {
  background: var(--accent-light);
}

.btn-modal-cancel {
  flex: 1;
  height: 40px;
  background: var(--bg-body);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}
.btn-modal-cancel:hover {
  background: var(--border);
  color: var(--text-dark);
}

/* ===========================
   ACTION DROPDOWN
=========================== */
.usr-actions {
  position: relative;
  overflow: visible;
}

.usr-action-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.usr-action-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.usr-action-dropdown ul {
  list-style: none;
  padding: 5px;
  margin: 0;
}

.usr-action-dropdown ul li a,
.usr-action-dropdown ul li button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: "Cairo", sans-serif;
  color: var(--text-dark);
  cursor: pointer;
  text-align: right;
  transition:
    background var(--transition),
    color var(--transition);
  text-decoration: none;
}

.usr-action-dropdown ul li a:hover,
.usr-action-dropdown ul li button:hover {
  background: var(--bg-body);
}

.usr-action-dropdown ul li a i,
.usr-action-dropdown ul li button i {
  width: 14px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
}

.usr-action-dropdown .action-danger {
  color: #dc2626 !important;
}
.usr-action-dropdown .action-danger i {
  color: #dc2626 !important;
}
.usr-action-dropdown .action-danger:hover {
  background: #fef2f2 !important;
}

.usr-action-dropdown .action-success {
  color: #15803d !important;
}
.usr-action-dropdown .action-success i {
  color: #15803d !important;
}
.usr-action-dropdown .action-success:hover {
  background: #f0fdf4 !important;
}

/* ============================================================
   user-details.css
   ============================================================ */
/* ===========================
   USER DETAILS PAGE
=========================== */

/* Header */
.ud-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ud-header-info {
  flex: 1;
  text-align: right;
}

.ud-breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.ud-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.ud-name-row h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.ud-phone {
  font-size: 13px;
  color: var(--text-light);
  direction: ltr;
  text-align: right;
}

.ud-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

.ud-header-right {
  display: flex;
  align-items: center;
}

.ud-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.ud-back-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.ud-suspend-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition);
}
.ud-suspend-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
}
.ud-suspend-btn.activated {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* ===========================
   TABS
=========================== */
.ud-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px;
  margin-bottom: 18px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.ud-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  transition:
    background var(--transition),
    color var(--transition);
  white-space: nowrap;
}
.ud-tab:hover {
  background: var(--bg-body);
  color: var(--text-dark);
}
.ud-tab.active {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 122, 115, 0.2);
}

.ud-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
}
.ud-tab:not(.active) .ud-tab-badge {
  background: var(--border);
  color: var(--text-mid);
}

/* Tab content */
.ud-tab-content {
  display: none;
}
.ud-tab-content.active {
  display: block;
}

/* ===========================
   PANEL
=========================== */
.ud-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.ud-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.ud-panel-head h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.ud-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-body);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ===========================
   DATA TABLE
=========================== */
.ud-data-table-wrap {
  overflow-x: auto;
}

.ud-data-table {
  width: 100%;
  border-collapse: collapse;
}

.ud-data-table th {
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafbfd;
  white-space: nowrap;
}

.ud-data-table td {
  font-size: 13px;
  color: var(--text-dark);
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.ud-data-table tbody tr:last-child td {
  border-bottom: none;
}
.ud-data-table tbody tr:hover {
  background: #fafbff;
}

.ud-id {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-body);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
}

/* Priority */
.ud-priority {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.ud-priority.high {
  background: #fef2f2;
  color: #b91c1c;
}
.ud-priority.medium {
  background: #fffbeb;
  color: #92400e;
}
.ud-priority.low {
  background: #f0fdf4;
  color: #065f46;
}

/* Ticket status */
.ud-ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.ud-ticket-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
}
.ud-ticket-status.open {
  background: #eff6ff;
  color: #1d4ed8;
}
.ud-ticket-status.open::before {
  background: #3b82f6;
}
.ud-ticket-status.closed {
  background: #f0fdf4;
  color: #065f46;
}
.ud-ticket-status.closed::before {
  background: #22c55e;
}

/* Company link */
.ud-company-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.ud-company-link:hover {
  color: var(--accent-light);
}

/* ===========================
   ACTIVITY STATS
=========================== */
.ud-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.ud-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.ud-stat-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ud-stat-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}

.ud-stat-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
.ud-stat-val.active-text {
  color: #15803d;
  font-size: 18px;
}

.ud-stat-sub {
  font-size: 11px;
  color: var(--text-light);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .ud-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .ud-tabs {
    flex-wrap: wrap;
    width: 100%;
  }
  .ud-tab {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .ud-header {
    flex-direction: column;
    align-items: stretch;
  }
  .ud-header-info {
    text-align: right;
  }
  .ud-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .ud-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   companies.css
   ============================================================ */
/* ===========================
   COMPANIES — SHARED STYLES
=========================== */

/* Company avatar in table */
.co-avatar {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.co-avatar.teal {
  background: var(--accent-soft);
  color: var(--accent);
}
.co-avatar.blue {
  background: #eff6ff;
  color: #2563eb;
}
.co-avatar.suspended {
  background: #fef2f2;
  color: #dc2626;
}

/* Slug link */
.co-slug {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  font-family: monospace;
  transition: color var(--transition);
}
.co-slug:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* NFC button in detail panel */
.co-nfc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-soft);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}
.co-nfc-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Serial number */
.co-serial {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: monospace;
  background: var(--bg-body);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   orders.css
   ============================================================ */
/* ===== orders.css ===== */

/* ── Status badge overrides ── */
.status-badge.paid {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ── Order action buttons (detail page) ── */
.ord-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.paid-btn {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.paid-btn:hover {
  background: #dbeafe;
}

.done-btn {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.done-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.nfc-btn {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.nfc-btn:hover {
  background: #ede9fe;
}

/* ── Client cards (order-details tab-client) ── */
.ord-client-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.ord-client-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ord-client-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}

.ord-client-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.ord-client-value a {
  color: var(--accent);
  text-decoration: none;
}
.ord-client-value a:hover {
  text-decoration: underline;
}

.ord-client-sub {
  font-size: 12px;
  color: var(--text-light);
}

/* ── Activity log ── */
.ord-log-list {
  list-style: none;
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.ord-log-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ord-log-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  flex-shrink: 0;
  margin-top: 4px;
}

.ord-log-dot.green {
  background: #22c55e;
}
.ord-log-dot.blue {
  background: #3b82f6;
}
.ord-log-dot.teal {
  background: var(--accent);
}

.ord-log-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.ord-log-time {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── NFC assign modal list ── */
.nfc-assign-list {
  list-style: none;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.nfc-assign-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  gap: 12px;
}

.nfc-assign-serial {
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
  color: var(--text-dark);
}

.nfc-assign-label {
  font-size: 11px;
  color: var(--text-light);
}

.nfc-pick-btn {
  padding: 5px 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.nfc-pick-btn:hover {
  background: var(--accent-light);
}

/* ── NFC assign btn on panel head ── */
.ord-nfc-assign-btn {
  padding: 5px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.ord-nfc-assign-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── Panel head hint text ── */
.ud-panel-hint {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ord-client-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   nfc.css
   ============================================================ */
/* ===========================
   NFC INVENTORY — nfc.css
=========================== */

/* NFC status badges */
.status-badge.unassigned {
  background: #fff7ed;
  color: #92400e;
}

/* Batch cell */
.nfc-batch-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.nfc-batch-id {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

/* NFC empty state inside panel */
.nfc-empty-panel {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}
.nfc-empty-panel i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
  color: var(--border);
}
.nfc-empty-panel p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 4px;
}
.nfc-empty-panel span {
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================================
   products.css
   ============================================================ */
/* ============================
   Products Catalog — products.css
   ============================ */

/* Product icon in table */
.prod-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.prod-icon.teal {
  background: var(--accent-soft);
  color: var(--accent);
}
.prod-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}
.prod-icon.purple {
  background: #faf5ff;
  color: #9333ea;
}
.prod-icon.orange {
  background: #fff7ed;
  color: #ea580c;
}

/* Stock cell */
.prod-stock-avail {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.prod-stock-avail.always {
  color: var(--accent);
}
.prod-stock-total {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

/* Description block in overview tab */
.prod-desc-block {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.prod-desc-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 5px;
}
.prod-desc-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ============================================================
   subscriptions.css
   ============================================================ */
/* =========================================
   subscriptions.css — Silink Subscriptions
   ========================================= */

/* Late status badge */
.sub-status-late {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: #fff7ed;
  color: #92400e;
}
.sub-status-late::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #f97316;
}

/* Invoice status */
.sub-invoice-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.sub-invoice-status.unpaid {
  background: #fef2f2;
  color: #dc2626;
}
.sub-invoice-status.paid {
  background: #f0fdf4;
  color: #15803d;
}

/* Company card in tab */
.sub-company-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin: 16px;
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.sub-company-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sub-company-info {
  flex: 1;
}
.sub-company-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 3px;
  text-decoration: none;
}
.sub-company-name:hover {
  color: var(--accent);
}
.sub-company-slug {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 6px;
}
.sub-company-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-company-members {
  font-size: 12px;
  color: var(--text-mid);
}

/* Warning action in dropdown */
.action-warning {
  color: #92400e !important;
}
.action-warning:hover {
  background: #fff7ed !important;
}

/* ============================================================
   invoices.css
   ============================================================ */
/* =========================================
   invoices.css — Silink Invoices
   ========================================= */

/* ── Late invoice status ── */
.sub-invoice-status.late {
  background: #fff7ed;
  color: #92400e;
}

/* ── Subscription info card in invoice details ── */
.inv-sub-card {
  margin: 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.inv-sub-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inv-sub-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}

.inv-sub-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Mark paid button ── */
.btn-mark-paid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-mark-paid:hover {
  background: var(--accent-light);
}
.btn-mark-paid:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Action column links ── */
.inv-company-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.inv-company-link:hover {
  text-decoration: underline;
}

/* ── Date filter wrapper ── */
.usr-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  height: 38px;
  font-size: 13px;
  color: var(--text-mid);
}
.usr-date-wrap i {
  color: var(--text-light);
  font-size: 13px;
}
.usr-date-wrap .usr-date {
  border: none;
  outline: none;
  background: transparent;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
}

/* ============================================================
   pricing.css
   ============================================================ */
/* ============================
   Pricing Plans — pricing.css
   ============================ */

/* Plan icon in table */
.plan-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.plan-icon.teal {
  background: var(--accent-soft);
  color: var(--accent);
}
.plan-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}
.plan-icon.purple {
  background: #faf5ff;
  color: #9333ea;
}
.plan-icon.orange {
  background: #fff7ed;
  color: #ea580c;
}

/* Archive action in dropdown */
.action-archive {
  color: #6b7280 !important;
}
.action-archive:hover {
  background: #f3f4f6 !important;
  color: #374151 !important;
}

/* Archived status badge */
.usr-status.archived {
  background: #f3f4f6;
  color: #6b7280;
}

/* Features list in plan-details */
.plan-features-list {
  list-style: none;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dark);
}
.plan-features-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   tickets.css
   ============================================================ */
/* =============================================
   tickets.css — Support Tickets styles
   ============================================= */

/* Priority badges */
.tkt-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.tkt-priority.high {
  background: #fef2f2;
  color: #b91c1c;
}
.tkt-priority.medium {
  background: #fffbeb;
  color: #92400e;
}
.tkt-priority.low {
  background: #f0fdf4;
  color: #065f46;
}

/* Status badges */
.tkt-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.tkt-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  flex-shrink: 0;
}
.tkt-status.open {
  background: #eff6ff;
  color: #1d4ed8;
}
.tkt-status.open::before {
  background: #3b82f6;
}
.tkt-status.processing {
  background: #fffbeb;
  color: #92400e;
}
.tkt-status.processing::before {
  background: #f59e0b;
}
.tkt-status.resolved {
  background: #f0fdf4;
  color: #065f46;
}
.tkt-status.resolved::before {
  background: #22c55e;
}
.tkt-status.closed {
  background: #f3f4f6;
  color: #6b7280;
}
.tkt-status.closed::before {
  background: #9ca3af;
}

/* Ticket header (details page) */
.tkt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tkt-header-right {
  text-align: right;
  flex: 1;
}
.tkt-back-link {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.tkt-back-link:hover {
  color: var(--accent);
}
.tkt-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.tkt-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 4px;
}
.tkt-id {
  font-size: 13px;
  color: var(--text-light);
  text-align: right;
}

.tkt-status-changer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.tkt-status-changer label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 600;
}
.tkt-status-changer select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  min-width: 150px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.tkt-status-changer select:focus {
  border-color: var(--accent);
}

/* Related grid (tab 3) */
.tkt-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 20px;
}

.tkt-related-card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tkt-related-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}
.tkt-related-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a.tkt-related-value:hover {
  color: var(--accent);
}
.tkt-related-sub {
  font-size: 12px;
  color: var(--text-light);
}

/* Note form */
.tkt-note-form {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.tkt-note-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.tkt-note-textarea {
  width: 100%;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  background: var(--bg-body);
  direction: inherit;
  color: var(--text-dark);
  min-height: 80px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  box-sizing: border-box;
}
.tkt-note-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--white);
}

/* Submitted notes list */
.tkt-notes-list {
  padding: 0 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tkt-note-item {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.tkt-note-text {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.tkt-note-meta {
  font-size: 11px;
  color: var(--text-light);
}

/* Action dropdown text colors */
.action-set-processing {
  color: #92400e !important;
}
.action-set-processing:hover {
  background: #fffbeb !important;
}
.action-set-resolved {
  color: #065f46 !important;
}
.action-set-resolved:hover {
  background: #f0fdf4 !important;
}
.action-set-closed {
  color: #6b7280 !important;
}
.action-set-closed:hover {
  background: #f3f4f6 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .tkt-related-grid {
    grid-template-columns: 1fr;
  }
  .tkt-header {
    flex-direction: column-reverse;
  }
}

/* ============================================================
   reports.css
   ============================================================ */
/* ===========================
   REPORTS PAGE
=========================== */

/* Page Header */
.rpt-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.rpt-page-head h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.rpt-page-head p {
  font-size: 13px;
  color: var(--text-mid);
}

.rpt-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  transition:
    background var(--transition),
    border-color var(--transition);
}
.rpt-export-btn i {
  color: var(--accent);
}
.rpt-export-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===========================
   TABS
=========================== */
.rpt-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px;
  margin-bottom: 22px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.rpt-tab {
  padding: 7px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  transition:
    background var(--transition),
    color var(--transition);
  white-space: nowrap;
}

.rpt-tab:hover {
  background: var(--bg-body);
  color: var(--text-dark);
}

.rpt-tab.active {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 122, 115, 0.25);
}

/* Tab content */
.rpt-tab-content {
  display: none;
}
.rpt-tab-content.active {
  display: block;
}

/* ===========================
   STAT CARDS GRID
=========================== */
.rpt-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.rpt-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rpt-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.rpt-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.rpt-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.rpt-card-icon.orange {
  background: #fff7ed;
  color: #ea580c;
}
.rpt-card-icon.red {
  background: #fef2f2;
  color: #dc2626;
}
.rpt-card-icon.purple {
  background: #faf5ff;
  color: #9333ea;
}

.rpt-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rpt-card-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.rpt-card-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ===========================
   PANEL
=========================== */
.rpt-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.rpt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.rpt-panel-head h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.rpt-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  transition:
    background var(--transition),
    color var(--transition);
}
.rpt-link:hover {
  background: var(--accent);
  color: var(--white);
}

/* ===========================
   PROGRESS BARS
=========================== */
.rpt-progress-list {
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rpt-progress-item {
}

.rpt-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.rpt-progress-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

.rpt-progress-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

.rpt-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-body);
  border-radius: 99px;
  overflow: hidden;
}

.rpt-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   TWO COLUMN LAYOUT
=========================== */
.rpt-two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

/* ===========================
   COMPANY LIST
=========================== */
.rpt-company-list {
  margin: 0;
}

.rpt-company-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.rpt-company-list li:last-child {
  border-bottom: none;
}
.rpt-company-list li:hover {
  background: #fafbff;
}

.rpt-company-rank {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rpt-company-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.rpt-company-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.rpt-company-sub {
  font-size: 11.5px;
  color: var(--text-light);
}

.rpt-company-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.rpt-company-badge.warning {
  background: #fffbeb;
  color: #92400e;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .rpt-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rpt-cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .rpt-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rpt-tabs {
    flex-wrap: wrap;
    width: 100%;
  }
  .rpt-tab {
    flex: 1;
    text-align: center;
  }
  .rpt-cards-grid,
  .rpt-cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .rpt-page-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .rpt-cards-grid,
  .rpt-cards-3 {
    grid-template-columns: 1fr;
  }
  .rpt-card-num {
    font-size: 20px;
  }
}

/* ===========================
   USERS TAB LAYOUT
=========================== */
.users-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

/* رابط الكيان في الجدول */
.entity-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.entity-link:hover {
  text-decoration: underline;
}

/* قيمة تحتاج انتباه */
.val-warning {
  color: #ea580c;
  font-weight: 600;
}

@media (max-width: 900px) {
  .users-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .users-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   NFC TAB
=========================== */
.nfc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.rpt-panel-title-orange {
  color: var(--text-dark) !important;
}

.rpt-bar-orange {
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-light)
  ) !important;
}

@media (max-width: 768px) {
  .nfc-two-col {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   SUBS TAB
=========================== */
.subs-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.subs-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  min-width: 90px;
}

.subs-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.subs-mini-icon.green {
  background: var(--accent-soft);
  color: var(--accent);
}
.subs-mini-icon.orange {
  background: var(--accent-soft);
  color: var(--accent);
}
.subs-mini-icon.teal {
  background: var(--accent-soft);
  color: var(--accent);
}

.subs-mini-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}

.subs-mini-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

@media (max-width: 480px) {
  .subs-cards-row {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* ===========================
   NOTIFICATIONS
=========================== */

/* Channel badges */
.notif-channel {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.notif-channel.in-app { background: #EFF6FF; color: #1D4ED8; }
.notif-channel.email  { background: #F0FDF4; color: #065F46; }
.notif-channel.both   { background: #F5F3FF; color: #5B21B6; }

/* Read/unread status */
.notif-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.notif-status.unread { background: #FFF7ED; color: #92400E; }
.notif-status.read   { background: #F3F4F6; color: #6B7280; }

/* Mark all read button */
.notif-mark-all-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  color: var(--text-mid);
  font-family: 'Cairo', sans-serif; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.notif-mark-all-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Notification details header */
.notif-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.notif-details-right { text-align: right; flex: 1; }

/* Notification info cards row */
.notif-info-row {
  display: flex;
  gap: 0;
  padding: 0;
}
.notif-info-card {
  flex: 1;
  padding: 18px 20px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.notif-info-card:last-child { border-left: none; }
.notif-info-label { font-size: 11.5px; color: var(--text-light); font-weight: 500; }
.notif-info-value { font-size: 15px; font-weight: 700; color: var(--text-dark); }

/* Unread row highlight */
.notif-unread-row { background: #FAFBFF; }
.notif-unread-row td:first-child { font-weight: 600; }

/* Action mark read */
.action-mark-read { color: var(--accent) !important; }
.action-mark-read:hover { background: var(--accent-soft) !important; }


/* ===========================
   EMERGENCY ACCESS
=========================== */
.ea-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.ea-status::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 99px; flex-shrink: 0;
}
.ea-status.active  { background: #F0FDF4; color: #065F46; }
.ea-status.active::before  { background: #22C55E; }
.ea-status.expired { background: #FFF7ED; color: #92400E; }
.ea-status.expired::before { background: #F97316; }
.ea-status.revoked { background: #FEF2F2; color: #DC2626; }
.ea-status.revoked::before { background: #EF4444; }

.ea-target-cell { display: flex; flex-direction: column; gap: 2px; }
.ea-target-name { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ea-target-name:hover { text-decoration: underline; }
.ea-target-type { font-size: 11px; color: var(--text-light); }

.ea-target-card {
  margin: 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

/* ===========================
   AUDIT LOG
=========================== */
.audit-action {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 600;
  background: #EFF6FF;
  color: #1D4ED8;
  white-space: nowrap;
}

.audit-actor {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-mid);
}

.audit-target-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.audit-target-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Audit detail header */
.audit-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.audit-detail-right {
  text-align: right;
  flex: 1;
}

/* Payload JSON box */
.audit-payload-box {
  background: #1E293B;
  color: #A3E635;
  font-family: monospace;
  font-size: 12.5px;
  padding: 16px;
  border-radius: var(--radius-md);
  direction: ltr;
  text-align: left;
  white-space: pre;
  overflow-x: auto;
  margin-top: 6px;
  line-height: 1.7;
}

/* ===========================
   TEAM MEMBERS
=========================== */
.tm-avatar {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tm-avatar.suspended { background: #FEF2F2; color: #DC2626; }

.tm-email {
  font-family: monospace;
  font-size: 12.5px;
  color: var(--text-mid);
}

.tm-permissions-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 4px;
}

.tm-perm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: #1D4ED8;
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   roles.css — الأدوار والصلاحيات
   ============================================================ */

/* ===========================
   PAGE HEAD ACTIONS
=========================== */
.roles-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.roles-tab-btn {
  height: 38px;
  padding: 0 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.roles-tab-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.roles-tab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===========================
   ROLE CARDS GRID
=========================== */
.roles-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.role-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-card);
}
.role-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}
.role-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}

.role-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.role-card-slug {
  font-size: 12px;
  color: var(--accent);
  font-family: monospace;
  margin-bottom: 10px;
}
.role-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.role-meta-item {
  font-size: 12px;
  color: var(--text-mid);
}
.role-meta-item i {
  font-size: 11px;
  margin-left: 3px;
  color: var(--text-light);
}
.role-meta-dot {
  color: var(--text-light);
  font-size: 12px;
}
.role-meta-active {
  color: #15803d;
  font-weight: 600;
}

/* ===========================
   ROLE DETAIL PANEL
=========================== */
.role-detail-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.rdp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-body);
}

.rdp-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.rdp-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rdp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  color: var(--text-mid);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.rdp-btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.rdp-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  color: #dc2626;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.rdp-btn-danger:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

.rdp-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}
.rdp-btn-save:hover {
  background: var(--accent-light);
}

/* Tabs inside panel */
.rdp-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.rdp-tab {
  position: relative;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  color: var(--text-mid);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rdp-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  transition: background var(--transition);
}
.rdp-tab:hover {
  color: var(--accent);
}
.rdp-tab.active {
  color: var(--accent);
}
.rdp-tab.active::after {
  background: var(--accent);
}

.rdp-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Tab content */
.rdp-tab-content {
  display: none;
  padding: 22px;
}
.rdp-tab-content.active {
  display: block;
}

/* Overview grid */
.rdp-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rdp-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.rdp-info-row:last-child {
  border-bottom: none;
}

.rdp-info-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
}

.rdp-info-value {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.6;
}

.rdp-desc {
  color: var(--accent);
}

.rdp-note {
  color: var(--text-mid);
}

.rdp-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: monospace;
}

/* Permissions tab head */
.rdp-permissions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rdp-perm-info {
  font-size: 12.5px;
  color: var(--text-light);
}

/* Permissions Table */
.rdp-perm-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.rdp-perm-table {
  width: 100%;
  border-collapse: collapse;
}

.rdp-perm-table thead tr {
  background: #fafbfd;
}

.rdp-perm-table th {
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.rdp-perm-table td {
  font-size: 13px;
  color: var(--text-dark);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.rdp-perm-table tbody tr:last-child td {
  border-bottom: none;
}

.rdp-perm-table tbody tr:hover {
  background: #fafbff;
}

.rdp-perm-key {
  font-family: monospace;
  font-size: 12.5px;
  color: var(--accent);
  direction: ltr;
  display: inline-block;
}

/* Toggle Switch */
.rdp-toggle-wrap {
  display: flex;
  align-items: center;
}

.rdp-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
}
.rdp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.rdp-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.rdp-toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.rdp-toggle input:checked + .rdp-toggle-slider {
  background: var(--accent);
}
.rdp-toggle input:checked + .rdp-toggle-slider::before {
  transform: translateX(-16px);
}

/* Members table */
.rdp-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .roles-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .roles-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rdp-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .rdp-info-row {
    grid-template-columns: 100px 1fr;
  }
  .roles-head-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .roles-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   settings.css — الإعدادات العامة
   ============================================================ */

/* Page head */
.st-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.st-page-head h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.st-page-head p {
  font-size: 13px;
  color: var(--text-mid);
}

/* Tabs bar */
.st-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.st-tab {
  padding: 7px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.st-tab:hover {
  background: var(--white);
  color: var(--text-dark);
}
.st-tab.active {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Tab content */
.st-tab-content {
  display: none;
}
.st-tab-content.active {
  display: block;
}

/* Section box */
.st-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.st-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-body);
  text-align: left;
}

/* Fields grid */
.st-fields-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.st-field-col {
  padding: 18px 22px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-field-col:last-child {
  border-left: none;
}

.st-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.st-input {
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding: 0 12px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.st-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
  background: var(--white);
}

.st-textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding: 10px 12px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.7;
}
.st-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
  background: var(--white);
}

/* Checkbox row */
.st-check-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.st-check-row:last-of-type {
  border-bottom: none;
}

.st-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
}

.st-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.st-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-body);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}
.st-checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.st-checkbox-label input[type="checkbox"]:checked ~ .st-checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.st-checkbox-label input[type="checkbox"]:checked ~ .st-checkmark::after {
  opacity: 1;
}

/* NFC grid */
.st-nfc-grid {
  padding: 4px 0;
}

/* Stand-alone field col inside section (no grid) */
.st-section .st-field-col {
  border-left: none;
  border-bottom: 1px solid var(--border);
}
.st-section .st-field-col:last-child {
  border-bottom: none;
}

/* Save feedback */
.st-save-ok {
  background: var(--success) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .st-fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .st-field-col:nth-child(3) {
    border-left: none;
  }
}
@media (max-width: 768px) {
  .st-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .st-field-col:nth-child(2n) {
    border-left: none;
  }
  .st-page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .st-tabs-bar {
    gap: 2px;
    padding: 4px 6px;
  }
  .st-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .st-fields-grid {
    grid-template-columns: 1fr;
  }
  .st-field-col {
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   profile.css — الملف الشخصي
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.prof-hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  overflow: hidden;
}

.prof-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px;
  flex-wrap: wrap;
}

/* Avatar */
.prof-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.prof-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent);
  overflow: hidden;
}

.prof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prof-avatar-edit {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.prof-avatar-edit:hover {
  background: var(--accent-light);
}

/* Hero info */
.prof-hero-info {
  flex: 1;
  min-width: 0;
}

.prof-hero-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.prof-hero-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 4px;
}
.prof-hero-role i {
  font-size: 11px;
}

.prof-hero-slug {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  font-family: monospace;
  margin-top: 4px;
}

.prof-hero-status {
  flex-shrink: 0;
  margin-right: auto;
}

/* ── Card ─────────────────────────────────────────────────── */
.prof-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.prof-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-body);
  gap: 12px;
}

.prof-card-head h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prof-card-head h2 i {
  font-size: 13px;
  color: var(--accent);
}

.prof-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: "Cairo", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.prof-edit-btn:hover,
.prof-edit-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Fields grid ──────────────────────────────────────────── */
.prof-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 22px;
}

.prof-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.prof-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}

.prof-input {
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding: 0 12px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.prof-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--bg-body);
}
.prof-input:not(:disabled):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
  background: var(--white);
}
.prof-input.editing {
  background: var(--white);
  border-color: var(--border);
  opacity: 1;
  cursor: text;
}

/* Form actions */
.prof-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 22px;
}

/* ── Stats row ────────────────────────────────────────────── */
.prof-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.prof-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.prof-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prof-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.prof-stat-label {
  font-size: 11.5px;
  color: var(--text-light);
}

/* ── Password form ────────────────────────────────────────── */
.prof-security-form .prof-fields-grid {
  grid-template-columns: repeat(3, 1fr);
}

.prof-pass-wrap {
  position: relative;
}
.prof-pass-wrap .prof-input {
  padding-left: 40px;
}
.prof-pass-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 13px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.prof-pass-toggle:hover {
  color: var(--accent);
}

/* Strength bar */
.prof-strength-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 16px;
}
.prof-strength-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  max-width: 200px;
}
.prof-strength-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease, background 0.3s ease;
}
.prof-strength-label {
  font-size: 12px;
  font-weight: 600;
}

.prof-pass-error {
  color: #dc2626;
  font-size: 12.5px;
  padding: 0 22px 12px;
  min-height: 18px;
}

/* ── Sessions ─────────────────────────────────────────────── */
.prof-sessions-list {
  padding: 8px 0;
}

.prof-session-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.prof-session-row:last-child {
  border-bottom: none;
}
.prof-session-row:hover {
  background: var(--bg-body);
}
.prof-session-current {
  background: var(--accent-soft);
}
.prof-session-current:hover {
  background: var(--accent-soft);
}

.prof-session-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  color: var(--accent);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prof-session-current .prof-session-icon {
  background: rgba(15,122,115,0.15);
}

.prof-session-info {
  flex: 1;
  min-width: 0;
}
.prof-session-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prof-session-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
}
.prof-session-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.prof-session-ip {
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
  font-family: monospace;
}

/* ── Activity log ─────────────────────────────────────────── */
.prof-activity-list {
  padding: 8px 0;
}

.prof-activity-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.prof-activity-row:last-child {
  border-bottom: none;
}
.prof-activity-row:hover {
  background: var(--bg-body);
}

.prof-act-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.prof-act-dot--green  { background: #22c55e; }
.prof-act-dot--teal   { background: var(--accent); }
.prof-act-dot--amber  { background: #f59e0b; }
.prof-act-dot--red    { background: #ef4444; }

.prof-act-info {
  flex: 1;
  min-width: 0;
}
.prof-act-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.prof-act-meta {
  font-size: 12px;
  color: var(--text-light);
}

.prof-act-time {
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .prof-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .prof-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prof-security-form .prof-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .prof-hero-inner {
    padding: 20px 18px;
  }
  .prof-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .prof-fields-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }
  .prof-security-form .prof-fields-grid {
    grid-template-columns: 1fr;
  }
  .prof-form-actions {
    padding: 0 16px 16px;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .prof-stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .prof-hero-name {
    font-size: 18px;
  }
  .prof-avatar {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }
}

/* ============================================================
   login.css — صفحة تسجيل الدخول
   ============================================================ */

body.login-body {
  background: var(--bg-body);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Left decorative panel ─────────────────────────────────── */
.login-left {
  flex: 0 0 420px;
  background: var(--bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

/* subtle radial glow */
.login-left::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,122,115,0.18) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.login-left::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,122,115,0.12) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
  pointer-events: none;
}

.login-left-inner {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
}

/* Brand */
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}

.login-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.login-brand-icon.sm {
  width: 36px;
  height: 36px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.login-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.login-left-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.login-left-sub {
  font-size: 14px;
  color: var(--sidebar-text);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Features list */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.login-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(15,122,115,0.2);
  color: var(--accent-light);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-feat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.login-feat-desc {
  font-size: 12.5px;
  color: var(--sidebar-text);
  line-height: 1.5;
}

/* ── Right form panel ──────────────────────────────────────── */
.login-right {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 40px 32px;
  box-shadow: -4px 0 32px rgba(0,0,0,0.06);
}

.login-locale {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch form {
  margin: 0;
}

.lang-switch-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.lang-switch-btn.active,
.lang-switch-btn:disabled {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  cursor: default;
}

.login-box {
  width: 100%;
  max-width: 380px;
}

/* Mobile logo */
.login-box-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Alert */
.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1.5px solid transparent;
}
.login-alert.error {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}
.login-alert.success {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

.login-forgot {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}
.login-forgot:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Input wrap */
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 13px;
  pointer-events: none;
  transition: color var(--transition);
}

.login-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding: 0 42px 0 16px;
  font-family: "Cairo", sans-serif;
  font-size: 13.5px;
  color: var(--text-dark);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.login-input::placeholder {
  color: var(--text-light);
  letter-spacing: 1px;
}
.login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
  background: var(--white);
}
.login-input:focus + .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
  color: var(--accent);
}
.login-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* Password with toggle — add extra left padding */
#loginPassword {
  padding-left: 44px;
}

.login-pass-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 13px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  padding: 0;
}
.login-pass-toggle:hover {
  color: var(--accent);
}

/* Field error text */
.login-field-error {
  font-size: 12px;
  color: #dc2626;
  min-height: 16px;
  display: block;
}

/* Remember me */
.login-remember {
  margin-top: -4px;
}

.login-check-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  user-select: none;
}
.login-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.login-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-body);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}
.login-checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.login-check-label input[type="checkbox"]:checked ~ .login-checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.login-check-label input[type="checkbox"]:checked ~ .login-checkmark::after {
  opacity: 1;
}

/* Submit button */
.login-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(15,122,115,0.3);
  margin-top: 4px;
}
.login-submit-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 18px rgba(15,122,115,0.4);
  transform: translateY(-1px);
}
.login-submit-btn:active {
  transform: translateY(0);
}
.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Footer note */
.login-footer-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login-footer-note i {
  font-size: 11px;
  color: var(--accent);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .login-left {
    display: none;
  }
  .login-right {
    width: 100%;
    padding: 40px 24px;
  }
  .login-box-logo {
    display: flex;
  }
}
@media (max-width: 480px) {
  .login-right {
    padding: 32px 18px;
    align-items: flex-start;
    padding-top: 48px;
  }
  .login-box {
    max-width: 100%;
  }
}

.modal-box.wide {
  max-width: 720px;
}

.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.order-form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-group textarea {
  min-height: 80px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding: 10px 12px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  resize: vertical;
}

.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 122, 115, 0.12);
  background: var(--white);
}

.order-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-line {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 8px;
  align-items: center;
}

.order-line .span-line {
  grid-column: 1 / -1;
}

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

.usr-action-btn.danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

.prod-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.prod-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-inline-end: 4px;
  vertical-align: middle;
}

.prod-color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 10px;
}

.color-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-row input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}

.color-row input[type="file"] {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .order-form-grid,
  .order-line {
    grid-template-columns: 1fr;
  }
}

.role-admin-list {
  max-height: 180px;
  overflow: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  padding: 4px 12px;
}

.role-admin-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
}

.form-group .role-admin-option input {
  width: 16px;
  height: 16px;
  padding: 0;
  flex-shrink: 0;
}

.role-admin-email,
.role-admin-current {
  color: var(--text-light);
  font-size: 12px;
}
