@charset "UTF-8";

/*
 * Main SCSS Entry Point
 * All styles will be compiled from here
 * Version: 1.0.7
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * SCSS Functions
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
:root {
  /* Core Palette */
  --cream: #F7ECD9;
  --sand: #E4C7A1;
  --gold: #D5B45D;
  --rust: #7C4D3B;
  --deep-teal: #12374B;
  --crimson: #8B0010;
  --orange: #EC781F;
  --forest-green: #36642B;
  --white: var(--cream);

  /* Aliases */
  --beige: var(--sand);
  --beige-light: var(--cream);
  --beige-pale: var(--cream);
  --mocha: var(--rust);
  --teal: var(--deep-teal);
  --teal-light: #1E4D66;
  --pumpkin: var(--orange);
  --burgundy: var(--crimson);
  --gold-light: #E8CA78;
  --gold-dark: #B89530;
  --forest: var(--forest-green);

  /* Typography */
  --text: var(--deep-teal);
  --text-mid: #6B5038;
  --text-light: #9C8060;
  --text-faint: #7A6550;
  --text-meta-size: 0.8125rem;
  --text-meta-weight: 700;
  --card-border: rgba(124, 77, 59, 0.08);

  /* Elevation */
  --shadow-xs: 0 2px 8px rgba(124, 77, 59, 0.08);
  --shadow-sm: 0 8px 25px rgba(124, 77, 59, 0.12);
  --shadow-md: 0 12px 35px rgba(124, 77, 59, 0.15);
  --shadow-lg: 0 20px 40px rgba(124, 77, 59, 0.15);

  /* Geometry */
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --card: var(--cream);
}

/*
 * Global CSS reset
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--cream);
  /* Default background colour for portals */
  font-family: "Cannon", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-radius: var(--r-xl);
}

input,
select,
textarea {
  font-family: inherit;
  border-radius: var(--r);
}

/*
 * Typography definitions
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
@font-face {
  font-family: "Atten";
  src: url("../fonts/AttenNewBook.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Atten";
  src: url("../fonts/AttenNewRegular.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Atten";
  src: url("../fonts/AttenRoundNewRegular.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Cannon";
  src: url("../fonts/Cannon-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Cannon";
  src: url("../fonts/Cannon-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cannon", serif;
  font-weight: 700;
  color: var(--rust);
}

body {
  font-family: "Atten", sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
}

p {
  margin-bottom: 16px;
}

/*
 * Reusable Card Components
 * Change values here to update cards globally
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.card {
  background-color: var(--white);
  color: var(--text);
  border-radius: var(--r-xl);
  padding: 24px;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-family: "Atten", serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--rust);
}

.card.variant-deep-teal {
  background-color: var(--deep-teal);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 24px;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.card.variant-deep-teal .card-title {
  color: var(--white);
}

.card.variant-forest-green {
  background-color: var(--forest-green);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 24px;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.card.variant-forest-green .card-title {
  color: var(--white);
}

.card.variant-crimson {
  background-color: var(--crimson);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 24px;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.card.variant-crimson .card-title {
  color: var(--white);
}

.card.variant-orange {
  background-color: var(--orange);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 24px;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.card.variant-orange .card-title {
  color: var(--white);
}

.card.admin-card {
  background-color: transparent;
  border: 1px solid transparent;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 20px;
  padding: 24px;
}

/*
 * Buttons Components
 * Central place to manage buttons styling
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.btn {
  border-radius: 20px;
  font-family: "Cannon", serif;
  font-weight: 500;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 32px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-size: 16px;
  line-height: 1;
}

.btn-primary {
  background-color: #12374B;
  color: #F7ECD9;
}

.btn-primary:hover {
  background-color: rgb(27.8709677419, 85.1612903226, 116.1290322581);
}

.btn-secondary {
  background-color: #7C4D3B;
  color: #F7ECD9;
}

.btn-secondary:hover {
  background-color: rgb(158.5573770492, 98.4590163934, 75.4426229508);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #12374B;
  color: #12374B;
}

.btn-outline:hover {
  background-color: rgba(228, 199, 161, 0.1);
}

.btn-action {
  padding: 8px;
  background-color: transparent;
  color: #12374B;
}

.btn-action:hover {
  background-color: rgba(18, 55, 75, 0.1);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*
 * Loader styles
 * Full screen overlay shown when pages load
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F7ECD9;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.loader-overlay img.loader-logo {
  max-width: 200px;
  margin-bottom: 24px;
}

.loader-overlay .loading-bar-container {
  width: 250px;
  height: 8px;
  background-color: #E4C7A1;
  border-radius: 20px;
  overflow: hidden;
}

.loader-overlay .loading-bar-container .loading-bar {
  height: 100%;
  background-color: #7C4D3B;
  width: 0%;
  border-radius: 20px;
}

/*
 * Forms and Input Styles
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.form-group {
  margin-bottom: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.form-group label {
  font-family: "Cannon", serif;
  color: #12374B;
  margin-bottom: 4px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 16px;
  border: 1px solid #E4C7A1;
  background-color: #F7ECD9;
  color: transparent;
  font-size: 16px;
  border-radius: 20px;
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7C4D3B;
}

.form-group.type-checkbox {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.form-group.type-checkbox input {
  margin-right: 8px;
}

.form-group.type-checkbox label {
  margin-bottom: 0;
}

/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.modal-overlay .modal-content {
  background-color: #F7ECD9;
  color: transparent;
  border-radius: 20px;
  padding: 24px;
  -webkit-box-shadow: 0 4px 24px rgba(124, 77, 59, 0.22);
  box-shadow: 0 4px 24px rgba(124, 77, 59, 0.22);
  width: 90%;
  max-width: 500px;
  position: relative;
  padding: 32px;
  font-family: "Atten", sans-serif;
}

.modal-overlay .modal-content .modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 24px;
}

.modal-overlay .modal-content .modal-header h2 {
  margin: 0;
  font-family: "Cannon", serif;
  color: #12374B;
}

.modal-overlay .modal-content .modal-header .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: transparent;
}

.modal-overlay .modal-content .modal-header .close-btn:hover {
  color: var(--crimson);
}

.modal-overlay .modal-content .modal-body p {
  margin-bottom: 24px;
}

.modal-overlay .modal-content .modal-body .btn {
  border-radius: 20px;
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.modal-overlay .modal-content .modal-body .btn-primary {
  background-color: #12374B;
  color: #F7ECD9;
}

.modal-overlay .modal-content .modal-body .btn-primary:hover {
  background-color: rgb(8.1290322581, 24.8387096774, 33.8709677419);
}

.modal-overlay .modal-content .modal-body .btn-secondary {
  background-color: #E4C7A1;
  color: transparent;
  margin-left: 10px;
}

.modal-overlay .modal-content .modal-body .btn-secondary:hover {
  background-color: #D5B45D;
}

/* ═══ DATA TABLES ═══ */
.module-table-wrap {
  background: var(--cream);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.module-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.module-table th,
.module-table td {
  padding: 16px 20px;
  text-align: left;
}

.module-table thead tr {
  background: var(--rust);
}

.module-table th {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  border-bottom: none;
  background: var(--rust);
}

.module-table td {
  font-size: 0.9rem;
  color: var(--rust);
  background: var(--cream);
  border-bottom: 1px solid rgba(124, 77, 59, 0.08);
}

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

.module-table tbody tr:hover td {
  background: rgba(124, 77, 59, 0.04);
}

.module-table-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px;
  border-bottom: none;
  flex-wrap: wrap;
  gap: 12px;
}

.module-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px 12px;
  width: 300px;
  max-width: 100%;
}

.module-search input {
  border: none;
  background: transparent;
  outline: none;
  margin-left: 8px;
  font-size: 0.85rem;
  width: 100%;
  color: var(--text);
}

.module-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

.avatar-cell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
}

.avatar-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}

.avatar-text strong {
  display: block;
  color: var(--rust);
  font-size: 1rem;
  font-weight: 800;
}

.avatar-text span {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--text-meta-weight);
  color: var(--text-mid);
  margin-top: 2px;
}

.avatar-text small {
  display: block;
  font-size: var(--text-meta-size);
  font-weight: var(--text-meta-weight);
  color: var(--text-mid);
  margin-top: 2px;
}

.text-meta {
  font-size: var(--text-meta-size);
  font-weight: var(--text-meta-weight);
  color: var(--text-mid);
}

.field-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge {
  padding: 0;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
}

.status-active {
  color: var(--deep-teal);
}

.status-pending {
  color: var(--orange);
}

.status-inactive {
  color: #9e9e9e;
}

.action-btn {
  border: none;
  background: transparent;
  color: var(--rust);
  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  padding: 5px;
}

.action-btn:hover {
  color: var(--teal);
}

/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.app-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 24px;
  background-color: #F7ECD9;
  -webkit-box-shadow: 0 2px 10px rgba(124, 77, 59, 0.08);
  box-shadow: 0 2px 10px rgba(124, 77, 59, 0.08);
  position: relative;
  z-index: 100;
}

.app-header .header-logo img {
  max-height: 40px;
}

.app-header .header-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 24px;
}

.app-header .header-actions .action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #12374B;
  position: relative;
}

.app-header .header-actions .action-btn.has-notification::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background-color: var(--crimson);
  border-radius: 20px;
}

.app-header .header-actions .action-btn.profile-btn {
  width: 40px;
  height: 40px;
  background-color: #E4C7A1;
  border-radius: 20px;
  overflow: hidden;
}

.app-header .header-actions .action-btn.profile-btn img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.app-header .mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #12374B;
  cursor: pointer;
}

@media (max-width: 768px) {
  .app-header .mobile-menu-btn {
    display: block;
  }
}

.admin-navbar {
  margin-top: 20px;
  background-color: #F7ECD9;
  border-radius: 20px;
  padding: 16px 24px;
  -webkit-box-shadow: 0 4px 24px rgba(124, 77, 59, 0.15);
  box-shadow: 0 4px 24px rgba(124, 77, 59, 0.15);
  border: none;
  overflow-x: auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .admin-navbar {
    display: none;
  }
}

.admin-navbar .nav-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-navbar .nav-list li a {
  text-decoration: none;
  color: transparent;
  font-family: "Atten", sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.admin-navbar .nav-list li a:hover,
.admin-navbar .nav-list li a.active {
  background-color: #D5B45D;
}

body.has-sidebar .app-sidebar.desktop-sidebar {
  display: block;
}

/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.app-sidebar {
  width: 250px;
  background-color: #E4C7A1;
  min-height: 100vh;
  padding: 24px 0;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  border-radius: 20px;
  display: none;
}

@media (max-width: 768px) {
  .app-sidebar {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    background-color: var(--cream);
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }

  .app-sidebar.active {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.app-sidebar .sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-sidebar .sidebar-menu li a {
  display: block;
  padding: 16px 24px;
  color: transparent;
  text-decoration: none;
  font-family: "Atten", sans-serif;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.app-sidebar .sidebar-menu li a:hover,
.app-sidebar .sidebar-menu li a.active {
  background-color: #D5B45D;
}


body.login-bg {
  margin: 0;
  font-family: "Atten", sans-serif;
  background-color: var(--cream);
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px;
  /* Ensures space on all 4 sides so it never touches the screen edge */
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   BACKGROUND MOTIF POSITIONS - EDIT THESE VALUES MANUALLY
   ═══════════════════════════════════════════════════════════
   
   HOW TO MOVE IMAGES:
   • top: -100px  = move UP (negative) or DOWN (positive)
   • bottom: -100px = move DOWN (negative) or UP (positive)
   • left: -100px = move LEFT (negative) or RIGHT (positive)
   • right: -100px = move RIGHT (negative) or LEFT (positive)
   • width/height = change size
   • opacity = change transparency (0.0 to 1.0)
   
   ═══════════════════════════════════════════════════════════ */

/* --- MOTIF 1: Top-Left (Red Shapes-01.png) --- */
.motif-tl {
  /* POSITION CONTROLS */
  top: -120px;
  left: -120px;

  /* SIZE CONTROLS */
  width: 500px;
  height: 500px;

  /* OTHER CONTROLS */
  opacity: 0.9;
  z-index: -1;

  /* IMAGE SOURCE */
  background-image: url("../images/bg/Red Shapes-01.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* --- MOTIF 2: Bottom-Right (Red Shapes-02.png) --- */
.motif-br {
  /* POSITION CONTROLS */
  bottom: -180px;
  right: -180px;

  /* SIZE CONTROLS */
  width: 500px;
  height: 500px;

  /* OTHER CONTROLS */
  opacity: 0.9;
  z-index: -1;
  transform: rotate(180deg);

  /* IMAGE SOURCE */
  background-image: url("../images/bg/Red Shapes-02.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--cream);
  border: 2px solid var(--cream);
  border-radius: 16px;
  padding: 25px 40px;
  -webkit-box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}

.logo-area {
  text-align: center;
  margin-bottom: 20px;
}

.main-logo {
  width: 250px;
  max-width: 100%;
  height: auto;
  margin-bottom: 5px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.secret-trigger {
  font-family: "Crimson Pro", serif;
  font-size: 1.25rem;
  font-weight: 800;
  font-style: italic;
  color: #12374B;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.secret-trigger:hover {
  color: var(--crimson);
  transform: scale(1.05);
}

.admin-badge {
  display: none;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--crimson);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-card h2 {
  font-family: "Cannon", serif;
  color: var(--rust);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 15px;
}

.role-selector {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  background: var(--cream);
  padding: 6px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--gold);
}

.role-btn {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rust);
  cursor: pointer;
  border-radius: 6px;
  text-transform: uppercase;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.role-btn.active {
  background: var(--deep-teal);
  color: var(--cream);
  -webkit-box-shadow: 0 4px 10px rgba(18, 55, 75, 0.2);
  box-shadow: 0 4px 10px rgba(18, 55, 75, 0.2);
}

.input-group {
  margin-bottom: 12px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.input-group input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  background: var(--cream);
  color: var(--deep-teal);
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: var(--orange);
  background: #ffffff;
}

.input-group input::-webkit-input-placeholder {
  color: #b09a7a;
}

.input-group input::-moz-placeholder {
  color: #b09a7a;
}

.input-group input:-ms-input-placeholder {
  color: #b09a7a;
}

.input-group input::-ms-input-placeholder {
  color: #b09a7a;
}

.input-group input::placeholder {
  color: #b09a7a;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: var(--deep-teal);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  -webkit-box-shadow: 0 6px 15px rgba(18, 55, 75, 0.2);
  box-shadow: 0 6px 15px rgba(18, 55, 75, 0.2);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: var(--forest-green);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 8px 20px rgba(54, 100, 43, 0.3);
  box-shadow: 0 8px 20px rgba(54, 100, 43, 0.3);
}

.footer-links {
  margin-top: 25px;
  font-size: 0.8rem;
  text-align: center;
}

.footer-links a {
  color: var(--rust);
  text-decoration: none;
  font-weight: 600;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--orange);
}

/* Admin Mode Styling */
.admin-mode-active {
  border-color: var(--crimson);
  background: var(--cream);
  -webkit-box-shadow: 0 12px 35px rgba(139, 0, 16, 0.15);
  box-shadow: 0 12px 35px rgba(139, 0, 16, 0.15);
}

/* Custom Notification Toast */
#notification {
  position: fixed;
  top: -100px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background: white;
  color: var(--teal);
  padding: 16px 32px;
  border: 1px solid rgba(18, 55, 75, 0.1);
  border-radius: 12px;
  font-weight: 700;
  z-index: 9999;
  -webkit-box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  -webkit-transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notification.show {
  top: 30px;
}

/* Responsive Adjustments for Mobile Screens */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
    /* Reduces side padding so content isn't squished */
    border-radius: 12px;
  }

  .login-card h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .role-btn {
    padding: 10px 4px;
    font-size: 0.65rem;
    /* Slightly smaller text to prevent overlapping */
  }

  .input-group input {
    padding: 12px;
  }

  .main-logo {
    width: 160px;
  }

  .logo-area {
    margin-bottom: 20px;
  }
}


*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Atten", sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}


::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 77, 59, 0.12);
  border-radius: 10px;
}

/* ═══ TOP NAV ═══ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  margin-bottom: 12px;
}

.nav-top-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  background: var(--cream);
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background: var(--gold);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Cannon", serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal);
  -webkit-box-shadow: 0 3px 12px rgba(213, 180, 93, 0.35);
  box-shadow: 0 3px 12px rgba(213, 180, 93, 0.35);
}

.brand-title {
  font-size: 1.05rem;
  color: var(--teal);
  font-family: "Cannon", serif;
  font-weight: 700;
  line-height: 1.15;
}

.brand-tag {
  font-size: 0.53rem;
  color: var(--text-light);
  font-style: italic;
  letter-spacing: 0.04em;
}

.nav-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.nav-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
  background: rgba(124, 77, 59, 0.05);
  border: none;
  border-radius: var(--r);
  padding: 6px 12px;
  width: 200px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.nav-search:focus-within {
  border-color: var(--gold);
  -webkit-box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.15);
  box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.15);
  width: 240px;
  background: var(--cream) !important;
}

.nav-search input {
  border: none;
  background: transparent;
  font-family: "Atten", sans-serif;
  font-size: 0.76rem;
  color: var(--teal);
  outline: none;
  width: 100%;
}

.nav-search input::-webkit-input-placeholder {
  color: rgba(18, 55, 75, 0.45);
}

.nav-search input::-moz-placeholder {
  color: rgba(18, 55, 75, 0.45);
}

.nav-search input:-ms-input-placeholder {
  color: rgba(18, 55, 75, 0.45);
}

.nav-search input::-ms-input-placeholder {
  color: rgba(18, 55, 75, 0.45);
}

.nav-search input::placeholder {
  color: rgba(18, 55, 75, 0.45);
}

.nav-search svg {
  color: rgba(18, 55, 75, 0.5);
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  border: none;
  background: rgba(124, 77, 59, 0.08);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  color: var(--teal);
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  position: relative;
}

.nav-icon:hover {
  border-color: var(--gold);
  color: var(--teal-light);
  background: rgba(124, 77, 59, 0.1);
}

.nav-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pumpkin);
  border: 2px solid var(--cream);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--gold);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Cannon", serif;
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--teal);
  cursor: pointer;
  border: 2px solid rgba(213, 180, 93, 0.35);
  -webkit-transition: border-color 0.25s;
  transition: border-color 0.25s;
}

.nav-avatar:hover {
  border-color: var(--gold-light);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: white !important;
  border: 1px solid rgba(18, 55, 75, 0.1);
  border-radius: 12px;
  -webkit-box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  display: none;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dropdown-menu.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.acc-item.open .acc-content {
  display: block !important;
}

.acc-item.open .acc-chevron {
  transform: rotate(180deg);
}

.dropdown-item {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  font-family: "Atten", sans-serif;
  background: transparent;
  border: 0;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
}

.dropdown-item:hover {
  background: #f8f8f8;
  color: var(--crimson) !important;
}

.dropdown-divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 0;
}

/* ═══ NAV PILL (shared across portals) ═══ */
.nav-menu {
  position: sticky;
  top: 56px;
  z-index: 999;
  padding: 0;
  background: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  overflow: visible;
}

.nav-container {
  width: 100%;
  background: var(--white);
  border-radius: 12px;
  min-height: 42px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  padding: 0 20px;
  overflow: visible;
  border: 1px solid var(--card-border);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
}

.nav-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 30px;
  width: 100%;
  background: var(--white);
  border-radius: 12px;
  min-height: 48px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  padding: 0 20px;
  overflow-x: auto;
}

/* Reset fallback if nav-container wraps nav-links */
.nav-container > .nav-links {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.nav-link {
  color: var(--deep-teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 0;
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  font-family: "Cannon", serif;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rust);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}

/* ═══ TAB PANELS ═══ */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ═══ CALENDAR VIEW ═══ */
.cal-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 16px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
}

.cal-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  border: 1px solid var(--card-border);
  background: var(--white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  font-size: 0.85rem;
}

.cal-nav-btn:hover {
  border-color: var(--gold);
  color: var(--mocha);
}

.cal-title {
  font-family: "Cannon", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mocha);
  min-width: 180px;
  text-align: center;
}

.cal-today-btn {
  padding: 6px 14px;
  border-radius: var(--r);
  border: 1px solid var(--card-border);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  font-family: "Atten", sans-serif;
}

.cal-today-btn:hover {
  border-color: var(--gold);
  color: var(--mocha);
}

.cal-view-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 3px;
  background: var(--white);
  border-radius: var(--r);
  padding: 3px;
  border: 1px solid var(--card-border);
}

.cal-view-tab {
  padding: 6px 16px;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  border: none;
  background: transparent;
  font-family: "Atten", sans-serif;
}

.cal-view-tab:hover {
  color: var(--mocha);
}

.cal-view-tab.active {
  background: var(--teal);
  color: #F7ECD9;
}

.cal-grid {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-box-shadow: var(--shadow-xs);
  box-shadow: var(--shadow-xs);
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #F0F4F7;
  border-bottom: 1px solid var(--card-border);
}

.cal-header-cell {
  padding: 10px 6px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 90px;
  padding: 6px;
  border-right: 1px solid rgba(18, 55, 75, 0.05);
  border-bottom: 1px solid rgba(18, 55, 75, 0.05);
  position: relative;
  transition: background-color 0.2s ease;
}

.cal-cell:hover:not(.other-month) {
  background-color: rgba(18, 55, 75, 0.02);
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.other-month {
  opacity: 0.35;
}

.cal-cell.today {
  background: rgba(18, 55, 75, 0.04);
}

.cal-day-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 3px;
}

.cal-cell.today .cal-day-num {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.cal-event {
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  margin-bottom: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.cal-event:hover {
  opacity: 0.8;
}

.cal-event.online {
  background: rgba(18, 55, 75, 0.12);
  color: #12374B;
}

.cal-event.inperson {
  background: rgba(236, 120, 31, 0.1);
  color: var(--pumpkin);
}

.cal-more {
  font-size: 0.56rem;
  color: var(--text-faint);
  font-weight: 600;
  cursor: pointer;
  padding: 1px 4px;
}

.cal-more:hover {
  color: var(--mocha);
}

/* Week view */
.cal-week-grid {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-box-shadow: var(--shadow-xs);
  box-shadow: var(--shadow-xs);
}

.cal-week-header {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  background: var(--beige-pale);
  border-bottom: 1px solid var(--card-border);
}

.cal-week-hcell {
  padding: 10px 6px;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-light);
}

.cal-week-hcell.today-col {
  color: var(--teal);
}

.cal-week-body {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
}

.cal-week-time {
  padding: 4px 8px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-faint);
  text-align: right;
  border-right: 1px solid rgba(124, 77, 59, 0.05);
  height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.cal-week-slot {
  height: 48px;
  border-right: 1px solid rgba(124, 77, 59, 0.04);
  border-bottom: 1px solid rgba(124, 77, 59, 0.04);
  padding: 2px;
  position: relative;
}

.cal-week-slot:nth-child(8n) {
  border-right: none;
}

.cal-week-event {
  position: absolute;
  left: 2px;
  right: 2px;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 0.56rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
}

/* Day view */
.cal-day-grid {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-box-shadow: var(--shadow-xs);
  box-shadow: var(--shadow-xs);
}

.cal-day-header {
  background: var(--beige-pale);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 18px;
  text-align: center;
}

.cal-day-header-text {
  font-family: "Cannon", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mocha);
}

.cal-day-body {
  max-height: 540px;
  overflow-y: auto;
}

.cal-day-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid rgba(124, 77, 59, 0.04);
}

.cal-day-time {
  padding: 10px 8px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-faint);
  text-align: right;
  border-right: 1px solid rgba(124, 77, 59, 0.05);
}

.cal-day-slot {
  padding: 6px 10px;
  min-height: 52px;
}

.cal-day-event {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  -webkit-transition: -webkit-transform 0.15s;
  transition: -webkit-transform 0.15s;
  transition: transform 0.15s;
  transition: transform 0.15s, -webkit-transform 0.15s;
}

.cal-day-event:hover {
  -webkit-transform: translateX(3px);
  transform: translateX(3px);
}

.cal-day-event.online {
  background: rgba(124, 77, 59, 0.07);
}

.cal-day-event.inperson {
  background: rgba(236, 120, 31, 0.07);
}

.cal-day-ev-time {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text);
  min-width: 42px;
}

.cal-day-ev-info {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.cal-day-ev-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
}

.cal-day-ev-sub {
  font-size: 0.62rem;
  color: var(--text-light);
}

.cal-day-ev-badge {
  font-size: 0.56rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

/* ═══ PROFITABILITY VIEW ═══ */
.prof-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.prof-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 20px;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.prof-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.prof-card-val {
  font-family: "Cannon", serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--mocha);
  line-height: 1.1;
}

.prof-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prof-card-delta {
  font-size: 0.66rem;
  font-weight: 700;
  margin-top: 6px;
}

.prof-card-delta.up {
  color: var(--green);
}

.prof-card-delta.down {
  color: var(--burgundy);
}

.prof-table-wrap {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 0;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.prof-table-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.prof-table-head h3 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.prof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.prof-table thead {
  background: var(--beige-pale);
}

.prof-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border);
}

.prof-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(124, 77, 59, 0.04);
  vertical-align: middle;
}

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

.prof-table tr:hover {
  background: rgba(124, 77, 59, 0.015);
}

.prof-agent-cell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}

.prof-agent-av {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Cannon", serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: #fff;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.prof-agent-name {
  font-weight: 700;
  color: var(--text);
}

.prof-agent-spec {
  font-size: 0.62rem;
  color: var(--text-light);
}

.prof-val {
  font-weight: 700;
  color: var(--mocha);
}

.prof-rate {
  font-weight: 700;
  color: var(--text-mid);
}

.prof-margin {
  font-weight: 800;
}

.prof-margin.high {
  color: var(--green);
}

.prof-margin.mid {
  color: var(--pumpkin);
}

.prof-bar-cell {
  width: 120px;
}

.prof-bar-track {
  height: 6px;
  background: rgba(124, 77, 59, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.prof-bar-fill {
  height: 100%;
  border-radius: 3px;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}

/* ═══ MATERIALS VIEW ═══ */
.mat-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 16px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
}

.mat-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 7px 12px;
  width: 260px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.mat-search:focus-within {
  border-color: var(--gold);
  -webkit-box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.1);
  box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.1);
  width: 300px;
}

.mat-search input {
  border: none;
  background: transparent;
  font-family: "Atten", sans-serif;
  font-size: 0.76rem;
  color: var(--text);
  outline: none;
  width: 100%;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.mat-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 0;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

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

.mat-card-top {
  height: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
}

.mat-card-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.mat-card-body {
  padding: 14px 16px;
}

.mat-card-name {
  font-family: "Cannon", serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mocha);
  margin-bottom: 2px;
}

.mat-card-meta {
  font-size: 0.64rem;
  color: var(--text-light);
  font-weight: 600;
}

.mat-card-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--card-border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.mat-card-count {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-light);
}

.mat-card-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
}

.mat-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  font-size: 0.72rem;
}

.mat-action:hover {
  border-color: var(--gold);
  color: var(--mocha);
  background: var(--beige-pale);
}

.mat-action.del:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
  background: rgba(139, 0, 16, 0.04);
}

/* Create Folder modal */
.mat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
  display: none;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.25s;
  transition: opacity 0.25s;
}

.mat-modal-overlay.open {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 1;
}

.mat-modal {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 24px;
  width: 380px;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.mat-modal h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.mat-modal-field {
  margin-bottom: 14px;
}

.mat-modal-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.mat-modal-field input,
.mat-modal-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: "Atten", sans-serif;
  font-size: 0.78rem;
  color: var(--text);
  outline: none;
  background: var(--beige-pale);
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}

.mat-modal-field input:focus,
.mat-modal-field select:focus {
  border-color: var(--gold);
}

.mat-modal-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

/* ═══ MAIN CONTENT ═══ */
.content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  position: relative;
  z-index: 10;
  /* Ensure content is above background artwork */
}

/* Brand shape overlays */
.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.content>* {
  position: relative;
  z-index: 1;
}

/* ═══ PAGE HEADER ═══ */
.page-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
}

.page-head p {
  font-size: 15px;
  font-weight: 800;
  color: var(--rust, #7c4d3b);
  margin-top: 4px;
  line-height: 1.45;
}

.time-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 3px;
  background: var(--white);
  border-radius: var(--r);
  padding: 3px;
  border: none;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
}

.time-tab {
  padding: 7px 18px;
  border-radius: 9px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  border: none;
  background: transparent;
  font-family: "Atten", sans-serif;
}

.time-tab:hover {
  color: var(--mocha);
}

.time-tab.active {
  background: var(--teal);
  color: #F7ECD9;
}

/* ═══ TASK BAR ═══ */
.taskbar {
  background: var(--cream);
  -webkit-box-shadow: 20px 20px 20px 20px rgba(0, 0, 0, 0.1);
  box-shadow: 20px 20px 20px 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--r-lg);
  padding: 12px 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.taskbar-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 8px;
}

.taskbar-head h4 {
  font-size: 0.85rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
}

.taskbar-add {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
}

.taskbar-input {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 5px 11px;
  font-family: "Atten", sans-serif;
  font-size: 0.76rem;
  color: var(--text);
  width: 240px;
  outline: none;
  background: var(--beige-pale);
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}

.taskbar-input:focus {
  border-color: var(--gold);
}

.task-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.task-chip {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--cream);
  border: 1px solid rgba(124, 77, 59, 0.05);
  -webkit-box-shadow: 0 2px 6px rgba(124, 77, 59, 0.04);
  box-shadow: 0 2px 6px rgba(124, 77, 59, 0.04);
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  cursor: pointer;
  width: 100%;
}

.task-chip.done {
  text-decoration: line-through;
  color: var(--text-faint);
  background: rgba(228, 199, 161, 0.3);
}

.task-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--beige-deep);
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.task-check:hover {
  border-color: var(--teal);
}

.task-chip.done .task-check {
  background: var(--teal);
  border-color: var(--teal);
}

.task-del {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: var(--text-faint);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.task-del:hover {
  color: var(--burgundy);
  background: var(--burgundy-bg);
}

.task-ts {
  font-size: 0.57rem;
  color: var(--text-faint);
  margin-left: auto;
  padding-left: 8px;
  white-space: nowrap;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.om-step-ts {
  font-size: 0.68rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-style: italic;
  margin-top: 1px;
}

.om-poster-tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(124, 77, 59, 0.06);
  border: 1px solid rgba(124, 77, 59, 0.06);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.om-poster-tag svg {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.task-pri {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.task-pri.p-high {
  background: var(--burgundy);
  color: #fff;
}

.task-pri.p-med {
  background: var(--pumpkin);
  color: #fff;
}

.task-pri.p-low {
  background: var(--teal);
  color: #fff;
}

.tm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 37, 24, 0.4);
  backdrop-filter: blur(5px);
  z-index: 210;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

.tm-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.tm-box {
  background: var(--white);
  border-radius: var(--r-xl);
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  width: 420px;
  max-width: 94vw;
  -webkit-transform: translateY(16px) scale(0.97);
  transform: translateY(16px) scale(0.97);
  -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tm-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--card-border);
  background: -webkit-gradient(linear, left top, left bottom, from(var(--beige-pale)), to(var(--white)));
  background: linear-gradient(180deg, var(--beige-pale), var(--white));
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.tm-head h3 {
  font-size: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.tm-body {
  padding: 18px 22px 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 14px;
}

.tm-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 5px;
}

.tm-field input,
.tm-field textarea,
.tm-field select {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--card-border);
  border-radius: 9px;
  font-family: "Atten", sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--beige-pale);
  outline: none;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}

.tm-field input:focus,
.tm-field textarea:focus,
.tm-field select:focus {
  border-color: var(--gold);
  -webkit-box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.08);
  box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.08);
}

.tm-field textarea {
  min-height: 64px;
  resize: vertical;
}

.tm-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239C8A7A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

.tm-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--card-border);
}

.tm-error {
  font-size: 0.72rem;
  color: var(--burgundy);
  font-weight: 600;
  display: none;
  margin-top: -6px;
}

/* ═══ GRIDS ═══ */
.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.g2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.g-7-5 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 14px;
}

.g-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

@media (max-width: 1100px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .g-7-5,
  .g-2-1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {

  .g4,
  .g3,
  .g2 {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 14px 12px 36px;
  }

  .nav-search {
    display: none;
  }
}

/* ═══ STAT CARDS ═══ */
.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stat.bdr-teal {
  background-color: var(--teal) !important;
}

.stat.bdr-teal .stat-val,
.stat.bdr-teal .stat-label,
.stat.bdr-teal .stat-delta {
  color: var(--white) !important;
}

.stat.bdr-teal .stat-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.stat.bdr-teal .stat-icon svg {
  stroke: #fff !important;
}

.stat.bdr-green {
  background-color: var(--forest-green) !important;
}

.stat.bdr-green .stat-val,
.stat.bdr-green .stat-label,
.stat.bdr-green .stat-delta {
  color: var(--white) !important;
}

.stat.bdr-green .stat-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.stat.bdr-green .stat-icon svg {
  stroke: #fff !important;
}

.stat.bdr-burgundy {
  background-color: var(--crimson) !important;
}

.stat.bdr-burgundy .stat-val,
.stat.bdr-burgundy .stat-label,
.stat.bdr-burgundy .stat-delta {
  color: var(--white) !important;
}

.stat.bdr-burgundy .stat-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.stat.bdr-burgundy .stat-icon svg {
  stroke: #fff !important;
}

.stat.bdr-pumpkin {
  background-color: var(--orange) !important;
}

.stat.bdr-pumpkin .stat-val,
.stat.bdr-pumpkin .stat-label,
.stat.bdr-pumpkin .stat-delta {
  color: var(--white) !important;
}

.stat.bdr-pumpkin .stat-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.stat.bdr-pumpkin .stat-icon svg {
  stroke: #fff !important;
}

.stat.bdr-gold {
  background-color: var(--gold) !important;
}

.stat.bdr-gold .stat-val,
.stat.bdr-gold .stat-label,
.stat.bdr-gold .stat-delta {
  color: var(--white) !important;
}

.stat.bdr-gold .stat-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.stat.bdr-gold .stat-icon svg {
  stroke: #fff !important;
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 10px;
}

.stat-val {
  font-family: "Cannon", serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--mocha);
  line-height: 1.05;
}

.stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-top: 3px;
}

.stat-delta {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 3px;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 14px;
  margin-top: 6px;
}

.stat-delta.up {
  background: var(--green-bg);
  color: var(--green);
}

.stat-delta.warn {
  background: var(--pumpkin-bg);
  color: var(--pumpkin);
}

.stat-delta.down {
  background: var(--burgundy-bg);
  color: var(--burgundy);
}

/* ═══ SECTION CARD ═══ */
.sec {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  -webkit-transition: -webkit-box-shadow 0.3s;
  transition: -webkit-box-shadow 0.3s;
  transition: box-shadow 0.3s;
  transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
}

.sec:hover {
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
}

.sec-head {
  padding: 12px 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
  background: -webkit-gradient(linear, left top, right top, from(var(--beige-pale)), to(var(--white)));
  background: linear-gradient(90deg, var(--beige-pale), var(--white));
}

.sec-head h3 {
  font-size: 0.85rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
}

/* ═══ STUDENT PROFILE MODAL ═══ */
.student-modal {
  width: 94vw;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  background: var(--cream);
}

.profile-card-top {
  display: flex;
  gap: 24px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--card-border);
  position: relative;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.profile-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-family: "Cannon", serif;
  font-weight: 700;
}

.profile-main-info {
  flex: 1;
}

.profile-main-info h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.profile-main-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.profile-edit-btn {
  position: absolute;
  top: 24px;
  right: 24px;
}

.profile-grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border-light);
}

.p-info-item label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.p-info-item span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mocha);
}

.stat-pills {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.stat-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

.stat-pill.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.stat-pill.orange {
  background: var(--pumpkin-bg);
  color: var(--pumpkin);
}

/* Accordion Styles */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.acc-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
}

.acc-header:hover {
  background: var(--beige-pale);
}

.acc-header h4 {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-count {
  font-size: 0.65rem;
  background: var(--beige-pale);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-light);
}

.acc-content {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--card-border);
  background: var(--white);
}

.acc-item.open .acc-content {
  display: block;
}

.acc-item.open .acc-chevron {
  transform: rotate(180deg);
}

.acc-chevron {
  transition: transform 0.3s;
  color: var(--text-light);
}

.sec-head .sh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sec-body {
  padding: 16px 18px;
}

/* ═══ BADGES ═══ */
.badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 14px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.b-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.b-pumpkin {
  background: var(--pumpkin-bg);
  color: var(--pumpkin);
}

.b-burgundy {
  background: var(--burgundy-bg);
  color: var(--burgundy);
}

.b-gold {
  background: rgba(213, 180, 93, 0.12);
  color: var(--gold-dark);
}

.b-green {
  background: var(--green-bg);
  color: var(--green);
}

.b-orange {
  background: var(--pumpkin-bg);
  color: var(--pumpkin);
}

/* ═══ BUTTONS ═══ */
.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 9px;
  font-family: "Atten", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-teal {
  background: var(--teal);
  color: #F7ECD9;
}

.btn-teal:hover {
  background: var(--teal-light);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #B89530, #D5B45D, #E6CB82);
  color: #2A1610;
  -webkit-box-shadow: 0 2px 10px rgba(213, 180, 93, 0.25);
  box-shadow: 0 2px 10px rgba(213, 180, 93, 0.25);
}

.btn-gold:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 18px rgba(213, 180, 93, 0.35);
  box-shadow: 0 4px 18px rgba(213, 180, 93, 0.35);
}

.btn-rust {
  background: linear-gradient(135deg, #5C3425, var(--mocha));
  color: var(--beige-pale);
  -webkit-box-shadow: 0 2px 10px rgba(124, 77, 59, 0.2);
  box-shadow: 0 2px 10px rgba(124, 77, 59, 0.2);
}

.btn-rust:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 18px rgba(124, 77, 59, 0.3);
  box-shadow: 0 4px 18px rgba(124, 77, 59, 0.3);
}

.btn-orange {
  background: linear-gradient(135deg, #D56A15, var(--pumpkin));
  color: #fff;
  -webkit-box-shadow: 0 2px 10px rgba(236, 120, 31, 0.2);
  box-shadow: 0 2px 10px rgba(236, 120, 31, 0.2);
}

.btn-orange:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 18px rgba(236, 120, 31, 0.3);
  box-shadow: 0 4px 18px rgba(236, 120, 31, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--mocha);
  border: 1.5px solid var(--card-border);
}

.btn-outline:hover {
  border-color: var(--gold);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.7rem;
}

/* ═══ SALES CARDS ═══ */
.sales-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  overflow: visible;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

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

.sales-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sales-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.sales-val {
  font-family: "Cannon", serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--mocha);
  line-height: 1;
}

.sales-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-top: 4px;
}

.mini-bars {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--card-border);
}

.mini-bar {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border-radius: 3px 3px 0 0;
  -webkit-transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0.55;
  min-width: 0;
  position: relative;
  cursor: pointer;
}

.mini-bar:last-child {
  opacity: 1;
}

.mini-bars:hover .mini-bar {
  opacity: 0.35;
}

.mini-bars:hover .mini-bar:hover {
  opacity: 1;
}

.bar-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(4px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  font-family: "Atten", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  color: #fff;
  -webkit-box-shadow: 0 3px 12px rgba(58, 37, 24, 0.18);
  box-shadow: 0 3px 12px rgba(58, 37, 24, 0.18);
  opacity: 0;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transition: opacity 0.25s ease, transform 0.25s ease, -webkit-transform 0.25s ease;
  z-index: 10;
}

.bar-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--tip-bg);
}

.mini-bar:hover .bar-tip {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(0);
  transform: translateX(-50%) translateY(0);
}

/* ═══ PACKAGES ═══ */
.pkg {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 18px;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

.pkg::after {
  content: "Click to view →";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  text-align: center;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--teal);
  background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(228, 199, 161, 0.3)));
  background: linear-gradient(180deg, transparent, rgba(228, 199, 161, 0.3));
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.pkg:hover::after {
  opacity: 1;
}

.pkg-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pkg-val {
  font-family: "Cannon", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.pkg-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 3px;
}

.pkg-sub {
  font-size: 0.66rem;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ═══ MODAL ═══ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(58, 37, 24, 0.4);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

.modal-bg.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  border-radius: var(--r-xl);
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  width: 600px;
  max-width: 94vw;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-transform: translateY(20px) scale(0.97);
  transform: translateY(20px) scale(0.97);
  -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-top {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--card-border);
  background: -webkit-gradient(linear, left top, left bottom, from(var(--beige-pale)), to(var(--white)));
  background: linear-gradient(180deg, var(--beige-pale), var(--white));
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.modal-top h3 {
  font-size: 1.05rem;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.95rem;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--burgundy-bg);
  color: var(--burgundy);
}

.modal-inner {
  padding: 18px 22px 22px;
}

.m-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.m-table th {
  text-align: left;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  padding: 7px 10px;
  border-bottom: 2px solid var(--card-border);
  background: var(--beige-pale);
}

.m-table td {
  padding: 8px 10px;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--card-border);
}

.m-table tr:hover td {
  background: rgba(228, 199, 161, 0.08);
}

/* ═══ ONBOARDING MODAL ═══ */
.om-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--card-border);
  background: -webkit-gradient(linear, left top, left bottom, from(var(--beige-pale)), to(var(--white)));
  background: linear-gradient(180deg, var(--beige-pale), var(--white));
}

.om-av {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Cannon", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-box-shadow: 0 3px 12px rgba(124, 77, 59, 0.15);
  box-shadow: 0 3px 12px rgba(124, 77, 59, 0.15);
}

.om-info {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.om-name {
  font-family: "Cannon", serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mocha);
}

.om-role {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.om-client {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 2px;
}

.om-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--card-border);
}

.om-pill {
  background: var(--beige-pale);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 12px 14px;
  text-align: center;
}

.om-pill-val {
  font-family: "Cannon", serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mocha);
}

.om-pill-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: 2px;
}

.om-progress {
  padding: 18px 24px;
}

.om-prog-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 8px;
}

.om-prog-head strong {
  font-family: "Cannon", serif;
  font-size: 0.92rem;
  color: var(--mocha);
}

.om-prog-head span {
  font-size: 0.8rem;
  font-weight: 700;
}

.om-prog-bar {
  height: 7px;
  border-radius: 10px;
  background: rgba(124, 77, 59, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

.om-prog-fill {
  height: 100%;
  border-radius: 10px;
  -webkit-transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.om-steps {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0;
}

.om-step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.om-step-line {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 32px;
}

.om-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Cannon", serif;
  font-size: 0.82rem;
  font-weight: 700;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  border: 2px solid;
  position: relative;
  z-index: 2;
  background: var(--white);
}

.om-step.done .om-step-num {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(213, 180, 93, 0.06);
}

.om-step.current .om-step-num {
  border-color: var(--pumpkin);
  color: var(--pumpkin);
  background: rgba(236, 120, 31, 0.06);
  -webkit-box-shadow: 0 0 0 4px rgba(236, 120, 31, 0.08);
  box-shadow: 0 0 0 4px rgba(236, 120, 31, 0.08);
}

.om-step.future .om-step-num {
  border-color: var(--text-faint);
  color: var(--text-faint);
  background: var(--white);
}

.om-step-connector {
  width: 2px;
  height: 22px;
  background: var(--card-border);
  margin: 3px 0;
}

.om-step.done .om-step-connector {
  background: var(--gold-light);
}

.om-step-body {
  padding-bottom: 18px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.om-step-title {
  font-family: "Cannon", serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.om-step.done .om-step-title {
  color: var(--pumpkin);
}

.om-step.current .om-step-title {
  color: var(--pumpkin);
}

.om-step.future .om-step-title {
  color: var(--text-faint);
}

.om-step-desc {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 2px;
}

.om-step:last-child .om-step-connector {
  display: none;
}

.om-step:last-child .om-step-body {
  padding-bottom: 4px;
}

.om-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--card-border);
}

/* ═══ CHART ═══ */
.chart-wrap {
  position: relative;
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 10px 13px;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  font-size: 0.74rem;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  z-index: 10;
  min-width: 155px;
}

.chart-tip.vis {
  opacity: 1;
}

.ct-label {
  font-weight: 700;
  color: var(--mocha);
  margin-bottom: 3px;
  font-family: "Cannon", serif;
}

.ct-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.ct-dot {
  width: 7px;
  height: 7px;
  border-radius: 3px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.ct-val {
  font-weight: 700;
}

/* ═══ DONUT ═══ */
.donut-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 20px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.donut-legend {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.dl-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
}

.dl-dot {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.dl-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.dl-val {
  font-size: 0.66rem;
  color: var(--text-light);
}

.donut-tip {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 11px 14px;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  min-width: 190px;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s, -webkit-transform 0.25s;
  transition: opacity 0.25s, -webkit-transform 0.25s;
  transition: opacity 0.25s, transform 0.25s;
  transition: opacity 0.25s, transform 0.25s, -webkit-transform 0.25s;
  z-index: 10;
  -webkit-transform: translateY(-50%) translateX(4px);
  transform: translateY(-50%) translateX(4px);
}

.donut-tip.vis {
  opacity: 1;
  -webkit-transform: translateY(-50%) translateX(0);
  transform: translateY(-50%) translateX(0);
}

.dt-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}

.dt-color {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.dt-name {
  font-family: "Cannon", serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mocha);
}

.dt-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 2px 0;
}

.dt-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

.dt-value {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

/* ═══ ONBOARDING CARDS ═══ */
.ob-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.ob-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  -webkit-transition: width 0.3s;
  transition: width 0.3s;
}

.ob-card.stg-active::before {
  background: var(--teal);
}

.ob-card.stg-verify::before {
  background: var(--pumpkin);
}

.ob-card.stg-profile::before {
  background: var(--gold);
}

.ob-card.stg-pending::before {
  background: var(--text-faint);
}

.ob-card.stg-docs::before {
  background: var(--burgundy);
}

.ob-card:hover {
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  border-color: rgba(213, 180, 93, 0.2);
}

.ob-card:hover::before {
  width: 6px;
}

.ob-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ob-av {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Cannon", serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.ob-info {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
}

.ob-name {
  font-family: "Cannon", serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mocha);
  line-height: 1.2;
}

.ob-role {
  font-size: 0.68rem;
  color: var(--text-light);
}

.ob-prog-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 5px;
}

.ob-prog-row span {
  font-size: 0.66rem;
  font-weight: 700;
}

.prog-track {
  height: 5px;
  border-radius: 10px;
  background: rgba(124, 77, 59, 0.05);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 10px;
  -webkit-transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.prog-fill.teal {
  background: -webkit-gradient(linear, left top, right top, from(var(--teal)), to(var(--teal-light)));
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.prog-fill.gold {
  background: -webkit-gradient(linear, left top, right top, from(#B89530), to(#D5B45D));
  background: linear-gradient(90deg, #B89530, #D5B45D);
}

.prog-fill.pumpkin {
  background: -webkit-gradient(linear, left top, right top, from(var(--pumpkin)), to(var(--pumpkin-soft)));
  background: linear-gradient(90deg, var(--pumpkin), var(--pumpkin-soft));
}

.prog-fill.green {
  background: -webkit-gradient(linear, left top, right top, from(var(--green)), to(var(--green-soft)));
  background: linear-gradient(90deg, var(--green), var(--green-soft));
}

.ob-stage {
  font-size: 0.66rem;
  color: var(--text-light);
  margin-top: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
}

/* ═══ SESSION ROWS ═══ */
.sess-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(124, 77, 59, 0.02);
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
  cursor: pointer;
}

.sess-row:last-child {
  border-bottom: none;
}

.sess-row:hover {
  background: rgba(213, 180, 93, 0.03);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}

.sess-time {
  min-width: 55px;
  text-align: center;
}

.sess-time strong {
  display: block;
  font-family: "Cannon", serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mocha);
}

.sess-time small {
  font-size: 0.56rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.sess-time small.ip {
  background: rgba(213, 180, 93, 0.1);
  color: var(--gold-dark);
}

.sess-time small.on {
  background: var(--teal-soft);
  color: var(--teal);
}

.sess-info {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.sess-info strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.sess-info span {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* ═══ FEED ═══ */
.feed-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(124, 77, 59, 0.02);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.feed-text {
  font-size: 0.74rem;
  color: var(--text-mid);
  line-height: 1.35;
}

.feed-time {
  font-size: 0.62rem;
  color: var(--text-faint);
  margin-top: 1px;
}

/* ═══ FILTER CHIPS ═══ */
.chip {
  padding: 4px 11px;
  border-radius: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid rgba(124, 77, 59, 0.05);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  font-family: "Atten", sans-serif;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--mocha);
}

.chip.active {
  background: rgba(213, 180, 93, 0.1);
  border-color: rgba(213, 180, 93, 0.25);
  color: var(--gold-dark);
}

.chip .cc {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: rgba(124, 77, 59, 0.08);
  font-size: 0.58rem;
  margin-left: 3px;
  padding: 0 4px;
}

.chip.active .cc {
  background: var(--gold);
  color: #2A1610;
}

/* ═══ DIVIDER ═══ */
.divider {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
}

.divider h3 {
  font-size: 0.92rem;
  white-space: nowrap;
}

.divider::after {
  content: "";
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: 1px;
  background: -webkit-gradient(linear, left top, right top, from(rgba(124, 77, 59, 0.1)), to(transparent));
  background: linear-gradient(90deg, rgba(124, 77, 59, 0.1), transparent);
}

.divider.divider-bar {
  background: #7C4D3B;
  padding: 10px 18px;
  border-radius: 8px;
  margin: 24px 0 14px;
  -webkit-box-shadow: 0 2px 8px rgba(124, 77, 59, 0.12);
  box-shadow: 0 2px 8px rgba(124, 77, 59, 0.12);
}

.divider.divider-bar h3 {
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
}

.divider.divider-bar::after {
  background: -webkit-gradient(linear, left top, right top, from(rgba(228, 199, 161, 0.15)), to(transparent));
  background: linear-gradient(90deg, rgba(228, 199, 161, 0.15), transparent);
}

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--teal);
  color: #F7ECD9;
  padding: 10px 18px;
  border-radius: var(--r);
  font-size: 0.8rem;
  font-weight: 700;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  -webkit-transform: translateY(80px);
  transform: translateY(80px);
  opacity: 0;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
}

.toast.show {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

/* ═══ ANIMATIONS ═══ */
@-webkit-keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(12px);
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(12px);
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

.anim {
  -webkit-animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.a1 {
  -webkit-animation-delay: 0.03s;
  animation-delay: 0.03s;
}

.a2 {
  -webkit-animation-delay: 0.06s;
  animation-delay: 0.06s;
}

.a3 {
  -webkit-animation-delay: 0.09s;
  animation-delay: 0.09s;
}

.a4 {
  -webkit-animation-delay: 0.12s;
  animation-delay: 0.12s;
}

.a5 {
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}

.a6 {
  -webkit-animation-delay: 0.18s;
  animation-delay: 0.18s;
}

.a7 {
  -webkit-animation-delay: 0.21s;
  animation-delay: 0.21s;
}

.a8 {
  -webkit-animation-delay: 0.24s;
  animation-delay: 0.24s;
}

.a9 {
  -webkit-animation-delay: 0.27s;
  animation-delay: 0.27s;
}

.a10 {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

.nav-hamburger,
.hamburger {
  display: none;
  cursor: pointer;
  color: var(--teal);
  background: transparent;
  border: none;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 55, 75, 0.55);
  backdrop-filter: blur(4px);
  z-index: 5999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .nav-top-row {
    position: relative;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 0 20px;
  }

  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    margin: 0;
  }

  .brand img {
    width: 110px !important;
  }

  .nav-hamburger,
  .hamburger {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    position: absolute;
    left: 20px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: var(--teal) !important;
  }

  .nav-hamburger svg line,
  .hamburger svg line {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transform-origin: center;
    transform-origin: center;
  }

  .nav-hamburger.active svg line:nth-child(1),
  .hamburger.active svg line:nth-child(1) {
    opacity: 0;
  }

  .nav-hamburger.active svg line:nth-child(2),
  .hamburger.active svg line:nth-child(2) {
    -webkit-transform: translateY(6px) rotate(45deg);
    transform: translateY(6px) rotate(45deg);
  }

  .nav-hamburger.active svg line:nth-child(3),
  .hamburger.active svg line:nth-child(3) {
    -webkit-transform: translateY(-6px) rotate(-45deg);
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 56px;
    left: 0;
    width: min(300px, 88vw);
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    background: var(--white);
    z-index: 6000;
    padding: 20px 0;
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
    display: none;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.drawer-open {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(18, 55, 75, 0.12);
  }

  .nav-menu.drawer-open .nav-container {
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: transparent;
    padding: 0 16px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
  }
}

/* ═══ MESSAGES MODULE (FULL-PAGE GMAIL STYLE) ═══ */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
/*
 * Mixins
 * Use to maintain consistent layouts, colors, and shadows.
 */
/*
 * Variables definitions
 * Change colours here to update throughout the portal
 */
.msg-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--cream);
  border-radius: 0;
  /* Removed restrictive corners to feel more integrated */
  -webkit-box-shadow: none;
  box-shadow: none;
  /* Let the content define the structure */
  border: none;
  overflow: hidden;
  height: calc(100vh - 130px);
  /* Fill more vertical space */
  width: 100%;
  position: relative;
  margin-top: 0px;
  /* Removed excessive margin gap */
}

/* ═══ GMAIL LOGIN MODAL & BACKDROP ═══ */
.login-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(124, 77, 59, 0.5);
  /* Stronger focus */
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  /* Move closer to nav */
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding-top: 40px;
  /* Space from top */
  padding: 20px;
  overflow-y: auto;
  /* Allow scrolling if modal is taller than screen */
}

.gmail-login-modal {
  background: var(--cream);
  padding: 80px 60px;
  /* More spacious padding */
  border-radius: var(--r-xl);
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 550px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: none;
  position: relative;
  margin: auto;
  /* Critical for centering in overflow-y: auto containers */
}

.google-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;
  background: white;
  color: var(--mocha);
  padding: 18px 40px;
  border-radius: 16px;
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
  border: none;
  font-weight: 800;
  font-family: var(--font-primary);
  cursor: pointer;
  -webkit-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 30px;
  font-size: 1.05rem;
}

.google-btn:hover {
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
}

.google-icon {
  width: 24px;
  height: 24px;
}

/* ═══ SIDEBAR ═══ */
.msg-sidebar {
  background: var(--cream);
  padding: 30px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
}

.btn-compose {
  background: var(--gold);
  color: white;
  border: none;
  padding: 20px 28px;
  border-radius: var(--r-lg);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  margin-bottom: 25px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.btn-compose:hover {
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  background: var(--gold-dark);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

.folder-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.folder-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text-mid);
  font-size: 0.95rem;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.folder-item:hover {
  background: rgba(124, 77, 59, 0.1);
  color: var(--mocha);
}

.folder-item.active {
  background: var(--sand);
  color: var(--mocha);
  font-weight: 800;
  -webkit-box-shadow: var(--shadow-xs);
  box-shadow: var(--shadow-xs);
}

.folder-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;
}

/* ═══ INBOX VIEW ═══ */
.msg-view {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background: white;
  margin: 0;
  /* Removed margin to feel full-page */
  border-radius: 0;
  /* Flush with container */
  overflow: hidden;
}

.msg-view-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 15px 24px;
  background: white;
  border-bottom: 1px solid rgba(124, 77, 59, 0.05);
}

.inbox-list {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.email-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 18px 24px;
  border: none;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  gap: 24px;
  position: relative;
  border-bottom: 1px solid rgba(124, 77, 59, 0.03);
  /* Subtle separation */
}

.email-row:hover {
  background: var(--cream);
  -webkit-box-shadow: inset 3px 0 0 var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
  /* Indicator on hover */
  z-index: 2;
}

.email-row.unread {
  background: rgba(213, 180, 93, 0.06);
}

.email-row.unread .email-subject,
.email-row.unread .email-sender {
  font-weight: 900;
  color: var(--mocha);
}

.email-star {
  color: rgba(124, 77, 59, 0.2);
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.email-star:hover {
  color: var(--gold);
}

.email-star.active {
  color: var(--gold);
}

.email-sender {
  width: 250px;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-mid);
}

.email-content {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  font-size: 0.95rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.email-subject {
  color: var(--mocha);
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.email-snippet {
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-date {
  font-size: 0.85rem;
  color: var(--text-faint);
  width: 110px;
  text-align: right;
  font-weight: 700;
}

/* ═══ COMPOSE MODAL ═══ */
.compose-modal {
  position: fixed;
  bottom: 0;
  right: 40px;
  width: 650px;
  background: white;
  border-radius: var(--r) var(--r) 0 0;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 1000;
}

.compose-head {
  background: var(--deep-teal);
  color: white;
  padding: 18px 24px;
  border-radius: var(--r) var(--r) 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.compose-body {
  padding: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
}

.compose-field {
  border-bottom: 2px solid var(--cream);
  padding-bottom: 12px;
}

.compose-field input {
  border: none;
  width: 100%;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.compose-text {
  border: none;
  outline: none;
  width: 100%;
  height: 380px;
  resize: none;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

.compose-foot {
  padding: 24px 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 24px;
  background: var(--cream);
}

.btn-send {
  background: var(--gold);
  color: white;
  border: none;
  padding: 15px 45px;
  border-radius: 40px;
  font-weight: 800;
  cursor: pointer;
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-send:hover {
  background: var(--gold-dark);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .msg-container {
    grid-template-columns: 80px 1fr;
  }

  .folder-item span,
  .btn-compose span {
    display: none;
  }
}

@media (max-width: 800px) {
  .msg-container {
    grid-template-columns: 1fr;
  }

  .msg-sidebar {
    display: none;
  }

  .email-sender {
    width: 140px;
  }
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.dashboard-layout .main-content {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .dashboard-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}

/* ═══ GLOBAL BACKGROUND ARTWORK SYSTEM ═══ */
.bg-artwork-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  /* Changed from -10 to be in front of body bg */
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}

.bg-artwork-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  transition: opacity 1s ease;
}

/* Specific Asset Positions (Switched to Dynamic JS Injection for Randomization) */
.bg-artwork-item.dynamic {
  position: absolute;
  /* Base styles for the randomized items injected via JS */
}

/* Central Clear-Zone (Optional helper if needed) */
#bgArtworkOverlay {
  pointer-events: none;
  background: transparent;
}

/* --- LOGIN MOTIFS --- */
/* NOTE: Motif positions are defined above in the main section.
   Scroll up to ".motif-tl" and ".motif-br" to edit positions. */

.login-bg {
  background-color: var(--cream);
  overflow: hidden;
}

/* CRM global: letter/initial avatars are square (not circular) */
.nav-avatar,
.avatar-icon,
.row-avatar,
.profile-avatar-large,
.st-avatar,
.agent-stu-avatar--sq,
.dash-welcome-avatar,
.ob-av,
.asst-avatar-initials {
  border-radius: 4px !important;
}

/*# sourceMappingURL=main.css.map */

/* Specific Asset Positions (Switched to Dynamic JS Injection for Randomization) */
.bg-artwork-item.dynamic {
  position: absolute;
  /* Base styles for the randomized items injected via JS */
}

/* Central Clear-Zone (Optional helper if needed) */
#bgArtworkOverlay {
  pointer-events: none;
  background: transparent;
}


/*# sourceMappingURL=main.css.map */