:root {
  /* Avila Brand Colors */
  --avila-cream: #fff9f2;
  --avila-sage: #a8c7a5;
  --avila-sage-dark: #6f9271;
  --avila-coral: #f28b82;

  /* Supporting Colors */
  --avila-peach: #fad4c0;
  --avila-yellow: #f7e6a1;
  --avila-purple: #dccef5;
  --avila-blue: #cfe3f4;

  /* Neutral */
  --avila-text: #34423a;
  --avila-muted: #7c8981;
  --avila-white: #ffffff;

  /* UI */
  --avila-radius: 20px;
  --avila-shadow: 0 10px 30px rgba(52, 66, 58, 0.08);
}

body {
  background-color: var(--avila-cream);
  color: var(--avila-text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.avila-card {
  background-color: var(--avila-white);
  border: none;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.btn-avila {
  background-color: var(--avila-sage-dark);
  color: white;

  border: none;
  border-radius: 12px;

  padding: 12px 20px;

  font-weight: 600;
}

.btn-avila:hover {
  background-color: var(--avila-sage);
  color: white;
}

/* ========================================
   AVILA FINAL LOGIN
======================================== */

.login-page {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #f5f5f3;
}

.login-wrapper {
  width: 100%;
  height: 100vh;
  min-height: 0;

  display: flex;
}

/* ========================================
   LEFT BRAND PANEL
======================================== */

.login-brand-panel {
  position: relative;

  width: 55%;
  height: 100vh;
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: #fff8ef;
}

.brand-content {
  position: relative;
  z-index: 3;

  padding: 65px 12% 0;
}

.brand-logo {
  display: inline-flex;
  align-items: flex-start;

  font-size: 72px;
  line-height: 1;

  font-weight: 800;
  letter-spacing: -4px;

  color: #24473d;
}

.brand-logo span {
  margin-left: 4px;

  font-size: 25px;

  color: #f28b82;
}

.brand-tagline {
  margin-top: 10px;
  margin-bottom: 20px;

  font-size: 25px;
  font-weight: 700;

  color: #183d36;
}

.brand-description {
  max-width: 390px;

  margin: 0;

  font-size: 17px;
  line-height: 1.55;

  color: #5e6965;
}

/* Family Image */

.family-illustration {
  position: absolute;

  left: 0;
  right: 0;
  top: 0;
  bottom: 0;

  z-index: 1;
}

.family-illustration img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

/* Feature Cards */

.feature-cards {
  position: absolute;
  z-index: 4;

  left: 50%;
  bottom: 55px;

  width: 76%;
  max-width: 570px;

  transform: translateX(-50%);

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  background: rgba(255, 252, 247, 0.94);
  border-radius: 22px;
  overflow: hidden;

  box-shadow: 0 12px 30px rgba(48, 63, 56, 0.08);
}

.feature-card {
  min-height: 145px;

  padding: 14px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.feature-card + .feature-card {
  border-left: 1px solid rgba(60, 70, 65, 0.08);
}

.feature-card img {
  width: 46px;
  height: 46px;

  margin-bottom: 7px;

  object-fit: contain;
}

.feature-card h3 {
  min-height: 36px;

  margin: 0 0 5px;

  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;

  color: #183d36;
}

.feature-card p {
  margin: 0;

  font-size: 11px;
  line-height: 1.35;

  color: #69736f;
}

/* Quote */

.brand-quote {
  position: absolute;

  z-index: 5;

  bottom: 35px;

  width: 100%;

  text-align: center;

  font-size: 14px;
  font-style: italic;

  color: #6f7773;
}

.brand-quote span {
  color: #f28b82;
}

/* ========================================
   RIGHT LOGIN PANEL
======================================== */

.login-form-panel {
  position: relative;

  width: 45%;
  height: 100vh;
  min-height: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow: hidden;

  background: #ffffff;

  padding: 32px 7% 18px;
}

/* Language */

.language-selector {
  width: 100%;
  text-align: right;

  margin-bottom: 20px;

  font-size: 13px;
  font-weight: 500;

  color: #17364a;
}

.language-selector span {
  margin-left: 6px;
}

/* Form */

.login-form-container {
  width: 100%;
  max-width: 440px;

  margin: auto 0;
}

.login-heading {
  margin-bottom: 32px;

  text-align: center;
}

.login-heading h2 {
  margin-bottom: 6px;

  font-size: 30px;
  font-weight: 750;

  color: #163047;
}

.login-heading p {
  margin: 0;

  font-size: 15px;

  color: #77818c;
}

.login-label {
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 600;

  color: #183047;
}

/* Input */

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;

  left: 17px;
  top: 50%;

  z-index: 2;

  transform: translateY(-50%);

  font-size: 18px;

  color: #718096;
}

.login-input {
  height: 54px;

  padding-left: 50px;
  padding-right: 48px;

  border: 1px solid #d7dde3;
  border-radius: 10px;

  background: #ffffff;

  font-size: 14px;
}

.login-input:focus {
  border-color: #72a78e;

  box-shadow: 0 0 0 4px rgba(114, 167, 142, 0.12);
}

.password-toggle {
  position: absolute;

  right: 15px;
  top: 50%;

  transform: translateY(-50%);

  border: none;
  background: transparent;

  color: #65758b;

  cursor: pointer;
}

/* Options */

.login-options {
  margin: 18px 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember-wrapper {
  display: flex;
  align-items: center;

  gap: 8px;

  cursor: pointer;

  font-size: 14px;

  color: #42556a;
}

.remember-wrapper input {
  width: 19px;
  height: 19px;

  accent-color: #42977d;
}

.forgot-link {
  font-size: 14px;

  color: #287a68;

  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-link:hover {
  color: #1f6355;
}

/* Login Button */

.login-button {
  width: 100%;
  height: 52px;

  border: none;
  border-radius: 10px;

  background: linear-gradient(90deg, #45a68c, #30957b);

  color: #ffffff;

  font-size: 16px;
  font-weight: 700;

  transition: 0.2s ease;
}

.login-button:hover {
  color: #ffffff;

  transform: translateY(-1px);

  box-shadow: 0 8px 20px rgba(48, 149, 123, 0.2);
}

/* ========================================
   FOOTER
======================================== */

.login-footer {
  width: 100%;

  text-align: center;
}

.login-footer img {
  display: block;

  width: 100%;

  object-fit: contain;
}

.login-footer p {
  margin: -4px 0 0;

  font-size: 12px;
  font-style: italic;

  color: #79827e;
}

.login-footer p span {
  color: #f28b82;
}

.desktop-footer {
  max-width: 400px;
  margin-top: 20px;
}

.mobile-footer,
.mobile-brand {
  display: none;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {
  .brand-logo {
    font-size: 60px;
  }

  .brand-tagline {
    font-size: 21px;
  }

  .brand-description {
    font-size: 15px;
  }

  .feature-card {
    min-height: 170px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767.98px) {
  .login-page {
    background: #ffffff;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .login-wrapper {
    display: block;
    height: auto;
    min-height: 100vh;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 25px 24px 0;
    overflow: visible;
  }

  .language-selector {
    margin-bottom: 20px;

    font-size: 12px;
  }

  /* Mobile Branding */

  .mobile-brand {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 15px;

    text-align: center;
  }

  .mobile-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
  }

  .mobile-logo img {
    width: 190px;
    max-width: 65%;
    height: auto;

    display: block;
  }

  .mobile-brand p {
    margin: 6px 0 12px;

    font-size: 14px;
    font-weight: 600;

    color: #173b34;
  }

  .mobile-brand img {
    width: 230px;
    max-width: 75%;

    display: block;
  }

  /* Form */

  .login-form-container {
    width: 100%;
    max-width: 440px;

    margin: 15px 0 0;
  }

  .login-heading {
    margin-bottom: 22px;
  }

  .login-heading h2 {
    font-size: 25px;
  }

  .login-heading p {
    font-size: 13px;
  }

  .login-input {
    height: 50px;
  }

  .login-options {
    margin: 14px 0 24px;
  }

  /* Footer */

  .desktop-footer {
    display: none;
  }

  .mobile-footer {
    display: block;

    margin-top: auto;

    max-width: 500px;
  }

  .mobile-footer img {
    max-height: 120px;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 400px) {
  .login-form-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mobile-logo img {
    width: 165px;
  }

  .mobile-brand img {
    width: 190px;
  }

  .login-heading h2 {
    font-size: 23px;
  }

  .remember-wrapper,
  .forgot-link {
    font-size: 12px;
  }
}

/* ========================================
   AVILA APP LAYOUT
======================================== */

.avila-app {
  margin: 0;
  background: #f8f7f2;
  color: var(--avila-text);
}

.app-wrapper {
  min-height: 100vh;
  display: flex;
}

/* ========================================
   SIDEBAR
======================================== */

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;

  width: 250px;

  display: flex;
  flex-direction: column;

  padding: 28px 18px;

  background: #ffffff;
  border-right: 1px solid #eceee9;

  z-index: 100;
}

.sidebar-brand {
  padding: 0 14px 30px;
}

.sidebar-brand img {
  width: 115px;
  height: auto;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  min-height: 46px;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 10px 14px;

  border-radius: 12px;

  color: #68736d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

  transition: 0.2s ease;
}

.sidebar-icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.sidebar-link:hover {
  background: #f3f6f1;
  color: #355e50;
}

.sidebar-link.active {
  background: #e8f1e7;
  color: #315f50;
  font-weight: 700;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eceee9;
}

/* ========================================
   MAIN CONTENT
======================================== */

.app-main {
  width: calc(100% - 250px);
  min-height: 100vh;

  margin-left: 250px;
  padding: 35px 42px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 35px;
}

.app-topbar h1 {
  margin: 0 0 6px;

  font-size: 28px;
  font-weight: 750;
}

.app-topbar p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 14px;
}

/* ========================================
   USER PROFILE
======================================== */

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--avila-peach);

  font-weight: 700;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info strong {
  font-size: 13px;
}

.user-info span {
  color: var(--avila-muted);
  font-size: 11px;
}

/* ========================================
   TEMPORARY DASHBOARD CARD
======================================== */

.dashboard-placeholder {
  padding: 35px;

  background: #ffffff;
  border-radius: 22px;

  box-shadow: var(--avila-shadow);
}

.dashboard-placeholder h2 {
  font-size: 22px;
}

/* ========================================
   MOBILE
======================================== */

/* ========================================
   MOBILE BOTTOM NAVIGATION
======================================== */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  .app-sidebar {
    display: none;
  }

  .app-main {
    width: 100%;
    margin-left: 0;

    padding: 25px 20px 115px;
  }

  .app-topbar {
    align-items: flex-start;
    margin-bottom: 25px;
  }

  .app-topbar h1 {
    font-size: 23px;
  }

  .user-info {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;

    left: 12px;
    right: 12px;
    bottom: 12px;

    height: 68px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #eceee9;
    border-radius: 20px;

    box-shadow: 0 10px 35px rgba(45, 62, 53, 0.14);

    z-index: 1000;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    color: #7b857f;

    font-size: 10px;
    font-weight: 500;

    text-decoration: none;
  }

  .mobile-nav-icon {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-nav-item.active {
    color: #397563;
    font-weight: 700;
  }
}

/* ========================================
   DASHBOARD
======================================== */

.dashboard-content {
  width: 100%;
}

/* ========================================
   DASHBOARD WELCOME
======================================== */

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 32px;
  padding: 28px 32px;

  background: linear-gradient(135deg, #eef5ea 0%, #fff8ef 100%);

  border-radius: 24px;

  box-shadow: var(--avila-shadow);
}

.dashboard-welcome-text h2 {
  margin: 0 0 8px;

  color: #315f50;

  font-size: 24px;
  font-weight: 700;
}

.dashboard-welcome-text p {
  max-width: 600px;

  margin: 0;

  color: var(--avila-muted);

  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   DASHBOARD SECTION
======================================== */

.dashboard-section {
  margin-bottom: 32px;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 16px;
}

.dashboard-section-title {
  margin: 0;

  color: var(--avila-text);

  font-size: 18px;
  font-weight: 700;
}

.dashboard-section-link {
  color: var(--avila-sage-dark);

  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
}

.dashboard-section-link:hover {
  color: #315f50;
}

/* ========================================
   DASHBOARD GRID FOUNDATION
======================================== */

.dashboard-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

/* ========================================
   DASHBOARD BASE CARD
======================================== */

.dashboard-card {
  background: #ffffff;

  border: 1px solid rgba(111, 146, 113, 0.08);
  border-radius: 20px;

  box-shadow: var(--avila-shadow);
}

/* ========================================
   DASHBOARD MOBILE
======================================== */

@media (max-width: 767.98px) {
  .dashboard-welcome {
    margin-bottom: 24px;

    padding: 22px 20px;

    border-radius: 20px;
  }

  .dashboard-welcome-text h2 {
    font-size: 20px;
  }

  .dashboard-welcome-text p {
    font-size: 13px;
  }

  .dashboard-section {
    margin-bottom: 26px;
  }

  .dashboard-section-title {
    font-size: 17px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }
}

/* ========================================
   DASHBOARD - QUICK ACCESS
======================================== */

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.quick-access-card {
  position: relative;

  min-height: 190px;
  padding: 24px;

  display: flex;
  flex-direction: column;

  border-radius: 22px;

  color: var(--avila-text);
  text-decoration: none;

  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.quick-access-card:hover {
  color: var(--avila-text);

  transform: translateY(-4px);

  box-shadow: 0 14px 35px rgba(52, 66, 58, 0.12);
}

/* Card Colors */

.quick-access-wallet {
  background: #e8f1e7;
}

.quick-access-kitchen {
  background: #fff0e6;
}

.quick-access-child {
  background: #f1eafb;
}

/* Icon */

.quick-access-icon {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;

  background: rgba(255, 255, 255, 0.65);

  border-radius: 16px;

  font-size: 28px;
}

/* Text */

.quick-access-content {
  padding-right: 28px;
}

.quick-access-content h3 {
  margin: 0 0 7px;

  font-size: 17px;
  font-weight: 700;
}

.quick-access-content p {
  max-width: 240px;

  margin: 0;

  color: #6f7c75;

  font-size: 13px;
  line-height: 1.5;
}

/* Arrow */

.quick-access-arrow {
  position: absolute;

  right: 22px;
  bottom: 20px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.75);

  border-radius: 50%;

  color: #45685b;

  font-size: 18px;
  font-weight: 700;

  transition: transform 0.2s ease;
}

.quick-access-card:hover .quick-access-arrow {
  transform: translateX(3px);
}

/* ========================================
   QUICK ACCESS - MOBILE
======================================== */

@media (max-width: 767.98px) {
  .quick-access-grid {
    grid-template-columns: 1fr;
    gap: 12px;

    margin-top: 14px;
  }

  .quick-access-card {
    min-height: 125px;

    padding: 18px 20px;

    display: grid;
    grid-template-columns: 48px 1fr 32px;
    align-items: center;

    column-gap: 14px;
  }

  .quick-access-icon {
    width: 48px;
    height: 48px;

    margin: 0;

    border-radius: 14px;

    font-size: 24px;
  }

  .quick-access-content {
    padding: 0;
  }

  .quick-access-content h3 {
    margin-bottom: 4px;

    font-size: 15px;
  }

  .quick-access-content p {
    font-size: 12px;
    line-height: 1.4;
  }

  .quick-access-arrow {
    position: static;

    width: 30px;
    height: 30px;

    justify-self: end;

    font-size: 16px;
  }
}

/* ========================================
   DASHBOARD - TODAY SUMMARY
======================================== */

.today-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
  margin-top: 18px;
}

.today-summary-card {
  min-height: 145px;

  padding: 20px 22px;

  background: #ffffff;

  border: 1px solid #edf0eb;
  border-radius: 20px;

  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);
}

/* Top */

.summary-card-top {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 18px;
}

.summary-icon {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  font-size: 20px;
}

.summary-finance .summary-icon {
  background: #e8f1e7;
}

.summary-meal .summary-icon {
  background: #fff0e6;
}

.summary-child .summary-icon {
  background: #f1eafb;
}

.summary-label {
  color: #6f7c75;

  font-size: 12px;
  font-weight: 600;
}

/* Content */

.summary-card-content h3 {
  margin: 0 0 5px;

  color: var(--avila-text);

  font-size: 19px;
  font-weight: 700;
}

.summary-card-content p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 12px;
}

/* ========================================
   TODAY SUMMARY - MOBILE
======================================== */

@media (max-width: 767.98px) {
  .today-summary-grid {
    grid-template-columns: 1fr;

    gap: 10px;
    margin-top: 14px;
  }

  .today-summary-card {
    min-height: auto;

    padding: 16px 18px;

    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;

    column-gap: 12px;

    border-radius: 18px;
  }

  .summary-card-top {
    display: contents;
  }

  .summary-icon {
    width: 42px;
    height: 42px;

    grid-row: 1 / 3;

    align-self: center;

    font-size: 19px;
  }

  .summary-label {
    align-self: end;

    font-size: 11px;
  }

  .summary-card-content {
    align-self: start;
  }

  .summary-card-content h3 {
    margin: 2px 0 2px;

    font-size: 15px;
  }

  .summary-card-content p {
    font-size: 11px;
  }
}

/* ========================================
   DASHBOARD - FAMILY SCHEDULE
======================================== */

.schedule-section-header {
  align-items: flex-end;
}

.schedule-calendar-link {
  color: var(--avila-sage-dark);

  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
}

.schedule-calendar-link:hover {
  color: #315f50;
}

.family-schedule-card {
  margin-top: 18px;

  background: #ffffff;

  border: 1px solid #edf0eb;
  border-radius: 20px;

  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);

  overflow: hidden;
}

/* Schedule Row */

.schedule-item {
  min-height: 82px;

  display: grid;
  grid-template-columns: 65px 44px 1fr;
  align-items: center;

  gap: 16px;

  padding: 14px 22px;
}

.schedule-item + .schedule-item {
  border-top: 1px solid #edf0eb;
}

/* Time */

.schedule-time {
  color: #45685b;

  font-size: 13px;
  font-weight: 700;
}

/* Icon */

.schedule-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  font-size: 19px;
}

.schedule-shopping {
  background: #f7e6a1;
}

.schedule-activity {
  background: #f1eafb;
}

.schedule-meal {
  background: #fff0e6;
}

/* Content */

.schedule-content h3 {
  margin: 0 0 3px;

  color: var(--avila-text);

  font-size: 14px;
  font-weight: 700;
}

.schedule-content p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 12px;
}

/* ========================================
   FAMILY SCHEDULE - MOBILE
======================================== */

@media (max-width: 767.98px) {
  .schedule-section-header {
    align-items: flex-start;
    gap: 10px;
  }

  .schedule-calendar-link {
    flex-shrink: 0;

    margin-top: 7px;
    padding-bottom: 0;

    font-size: 11px;
  }

  .family-schedule-card {
    margin-top: 14px;

    border-radius: 18px;
  }

  .schedule-item {
    min-height: 72px;

    grid-template-columns: 45px 40px 1fr;

    gap: 10px;

    padding: 12px 16px;
  }

  .schedule-time {
    font-size: 11px;
  }

  .schedule-icon {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    font-size: 18px;
  }

  .schedule-content h3 {
    font-size: 13px;
  }

  .schedule-content p {
    font-size: 11px;
  }
}

.today-summary-card,
.family-schedule-card {
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

@media (hover: hover) {
  .today-summary-card:hover,
  .family-schedule-card:hover {
    border-color: rgba(111, 146, 113, 0.18);

    box-shadow: 0 10px 28px rgba(52, 66, 58, 0.08);
  }
}

.dashboard-section-header h2 {
  margin: 0 0 6px;

  color: var(--avila-text);

  font-size: 28px;
  font-weight: 500;
}

.dashboard-section-header p {
  margin: 0;

  color: var(--avila-text);

  font-size: 15px;
}

@media (max-width: 767.98px) {
  .dashboard-section-header h2 {
    font-size: 24px;
  }

  .dashboard-section-header p {
    font-size: 14px;
  }
}

/* =========================================================
   DOMPET KELUARGA
   ========================================================= */

.finance-content {
  margin-top: 28px;
}

.finance-summary {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 18px;
}

.finance-balance-card,
.finance-stat-card {
  border-radius: 22px;
  min-height: 165px;
}

.finance-balance-card {
  padding: 24px 26px;
  background: #e8f1e7;
}

.finance-balance-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.finance-balance-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 13px;
  font-size: 21px;
}

.finance-balance-label {
  color: #617168;
  font-size: 13px;
  font-weight: 600;
}

.finance-balance-amount {
  margin-bottom: 5px;
  color: var(--avila-text);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.finance-balance-footer {
  color: var(--avila-muted);
  font-size: 12px;
}

/* Pemasukan & Pengeluaran */

.finance-stat-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--avila-white);
  border: 1px solid #edf0eb;
  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);
}

.finance-stat-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 700;
}

.finance-stat-card.income .finance-stat-icon {
  background: #e8f1e7;
  color: #5f8b68;
}

.finance-stat-card.expense .finance-stat-icon {
  background: #fde9e6;
  color: #c96c63;
}

.finance-stat-content {
  display: flex;
  flex-direction: column;
}

.finance-stat-content span {
  margin-bottom: 5px;
  color: var(--avila-muted);
  font-size: 12px;
  font-weight: 600;
}

.finance-stat-content strong {
  margin-bottom: 3px;
  color: var(--avila-text);
  font-size: 18px;
  font-weight: 700;
}

.finance-stat-content small {
  color: #9aa39e;
  font-size: 11px;
}

/* =========================================================
   DOMPET - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .finance-content {
    margin-top: 22px;
  }

  .finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .finance-balance-card {
    grid-column: 1 / -1;
    min-height: 145px;
    padding: 20px;
    border-radius: 20px;
  }

  .finance-balance-header {
    margin-bottom: 14px;
  }

  .finance-balance-icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .finance-balance-amount {
    font-size: 26px;
  }

  .finance-stat-card {
    min-width: 0;
    min-height: 125px;
    padding: 16px;
    display: block;
    border-radius: 18px;
  }

  .finance-stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 11px;
    font-size: 18px;
  }

  .finance-stat-content strong {
    font-size: 15px;
  }
}

/* QUICK ACTION */

.finance-quick-section {
  margin-top: 34px;
}

.finance-section-header h2 {
  margin: 0 0 5px;
  color: var(--avila-text);
  font-size: 21px;
  font-weight: 600;
}

.finance-section-header p {
  margin: 0;
  color: var(--avila-muted);
  font-size: 13px;
}

.finance-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.finance-quick-card {
  position: relative;
  min-height: 125px;
  padding: 20px;
  display: grid;
  grid-template-columns: 46px 1fr 30px;
  align-items: center;
  gap: 14px;

  background: var(--avila-white);
  border: 1px solid #edf0eb;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);

  color: var(--avila-text);
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.finance-quick-card:hover {
  color: var(--avila-text);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(52, 66, 58, 0.09);
}

.finance-quick-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  font-size: 21px;
  font-weight: 700;
}

.expense-action .finance-quick-icon {
  background: #fde9e6;
  color: #c96c63;
}

.income-action .finance-quick-icon {
  background: #e8f1e7;
  color: #5f8b68;
}

.budget-action .finance-quick-icon {
  background: #fff2cf;
  color: #a77d30;
}

.finance-quick-content {
  min-width: 0;
}

.finance-quick-content h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
}

.finance-quick-content p {
  margin: 0;
  color: var(--avila-muted);
  font-size: 11px;
  line-height: 1.5;
}

.finance-quick-arrow {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  justify-self: end;

  background: #f7f8f6;
  border-radius: 50%;

  color: #6f7c75;
  font-size: 20px;
}

/* =========================================================
   DOMPET - MONTHLY BUDGET
   ========================================================= */

.finance-budget-section {
  margin-top: 34px;
}

.finance-budget-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.finance-budget-link {
  flex-shrink: 0;
  color: var(--avila-sage-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.finance-budget-link:hover {
  color: #45685b;
}

.finance-budget-card {
  margin-top: 16px;
  padding: 6px 24px;

  background: var(--avila-white);
  border: 1px solid #edf0eb;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);
}

.budget-item {
  padding: 20px 0;
}

.budget-item + .budget-item {
  border-top: 1px solid #edf0eb;
}

.budget-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.budget-item-header h3 {
  margin: 0 0 5px;
  color: var(--avila-text);
  font-size: 14px;
  font-weight: 700;
}

.budget-item-header p {
  margin: 0;
  color: var(--avila-muted);
  font-size: 11px;
}

.budget-item-header strong {
  color: #5f8b68;
  font-size: 13px;
  font-weight: 700;
}

.budget-item-header strong.budget-warning-text {
  color: #c28a38;
}

.budget-progress-bar.budget-safe {
  background: var(--avila-sage);
}

.budget-progress-bar.budget-warning {
  background: #e8b764;
}

/* =========================================================
   DOMPET - RECENT TRANSACTIONS
   ========================================================= */

.finance-transaction-section {
  margin-top: 34px;
  margin-bottom: 30px;
}

.finance-transaction-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.finance-transaction-link {
  flex-shrink: 0;
  color: var(--avila-sage-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.finance-transaction-link:hover {
  color: #45685b;
}

.finance-transaction-card {
  margin-top: 16px;
  background: var(--avila-white);
  border: 1px solid #edf0eb;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);
  overflow: hidden;
}

.transaction-item {
  min-height: 78px;
  padding: 14px 22px;

  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 15px;
}

.transaction-item + .transaction-item {
  border-top: 1px solid #edf0eb;
}

.transaction-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
  font-size: 19px;
}

.transaction-food {
  background: #fff0e6;
}

.transaction-income {
  background: #e8f1e7;
}

.transaction-shopping {
  background: #fff2cf;
}

.transaction-info {
  min-width: 0;
}

.transaction-info h3 {
  margin: 0 0 4px;
  color: var(--avila-text);
  font-size: 14px;
  font-weight: 700;
}

.transaction-info p {
  margin: 0;
  color: var(--avila-muted);
  font-size: 11px;
}

.transaction-amount {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.transaction-amount.income {
  color: #5f8b68;
}

.transaction-amount.expense {
  color: #c96c63;
}

/* =========================================================
   DOMPET QUICK ACTION - MOBILE FIX
   ========================================================= */

@media (max-width: 767.98px) {
  .finance-quick-section {
    margin-top: 28px;
  }

  .finance-section-header h2 {
    font-size: 19px;
  }

  .finance-quick-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .finance-quick-card {
    min-height: 92px;
    padding: 15px 16px;

    grid-template-columns: 42px 1fr 28px;
    gap: 12px;

    border-radius: 17px;
  }

  .finance-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 19px;
  }

  .finance-quick-content h3 {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .finance-quick-content p {
    font-size: 11px;
    line-height: 1.4;
  }

  .finance-quick-arrow {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

/* =========================================================
   DOMPET MONTHLY BUDGET - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .finance-budget-section {
    margin-top: 28px;
  }

  .finance-budget-header {
    align-items: flex-start;
    gap: 12px;
  }

  .finance-budget-link {
    margin-top: 6px;
    font-size: 11px;
  }

  .finance-budget-card {
    margin-top: 14px;
    padding: 4px 17px;
    border-radius: 18px;
  }

  .budget-item {
    padding: 17px 0;
  }

  .budget-item-header {
    gap: 12px;
    margin-bottom: 11px;
  }

  .budget-item-header h3 {
    font-size: 13px;
  }

  .budget-item-header p {
    font-size: 10px;
  }

  .budget-item-header strong {
    font-size: 12px;
  }

  .budget-progress {
    height: 7px;
  }
}

/* =========================================================
   DOMPET RECENT TRANSACTIONS - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .finance-transaction-section {
    margin-top: 28px;
    margin-bottom: 25px;
  }

  .finance-transaction-header {
    align-items: flex-start;
    gap: 12px;
  }

  .finance-transaction-link {
    margin-top: 6px;
    font-size: 11px;
  }

  .finance-transaction-card {
    margin-top: 14px;
    border-radius: 18px;
  }

  .transaction-item {
    min-height: 76px;
    padding: 13px 15px;

    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
  }

  .transaction-info h3 {
    font-size: 12px;
  }

  .transaction-info p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .transaction-amount {
    font-size: 11px;
  }
}

/* =========================================================
   DOMPET DASHBOARD - FINAL MOBILE POLISH
   ========================================================= */

@media (max-width: 767.98px) {
  .finance-content {
    padding-bottom: 95px;
  }

  .finance-budget-header,
  .finance-transaction-header {
    align-items: flex-start;
  }

  .finance-budget-link,
  .finance-transaction-link {
    margin-top: 4px;
    white-space: nowrap;
  }
}

/* =========================================================
   CATAT PENGELUARAN
   ========================================================= */

.finance-back-link {
  display: inline-block;
  margin-bottom: 18px;

  color: var(--avila-sage-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.finance-back-link:hover {
  color: #45685b;
}

.expense-form-wrapper {
  max-width: 760px;
}

.expense-form-card {
  padding: 28px;

  background: var(--avila-white);
  border: 1px solid #edf0eb;
  border-radius: 22px;

  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);
}

.expense-form-header {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 28px;
  padding-bottom: 20px;

  border-bottom: 1px solid #edf0eb;
}

.expense-form-icon {
  flex-shrink: 0;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fde9e6;
  border-radius: 14px;

  color: #c96c63;
  font-size: 22px;
  font-weight: 700;
}

.expense-form-header h2 {
  margin: 0 0 4px;

  color: var(--avila-text);
  font-size: 18px;
  font-weight: 700;
}

.expense-form-header p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 12px;
}

/* FORM */

.expense-form-group {
  margin-bottom: 20px;
}

.expense-form-group label {
  display: block;
  margin-bottom: 8px;

  color: var(--avila-text);
  font-size: 12px;
  font-weight: 600;
}

.expense-form-group label span {
  margin-left: 4px;

  color: #a1aaa5;
  font-size: 10px;
  font-weight: 400;
}

.expense-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* INPUT */

.expense-form input,
.expense-form select,
.expense-form textarea {
  width: 100%;

  padding: 12px 14px;

  background: #fbfcfa;
  border: 1px solid #e3e8e3;
  border-radius: 12px;

  color: var(--avila-text);
  font-family: inherit;
  font-size: 13px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.expense-form input:focus,
.expense-form select:focus,
.expense-form textarea:focus {
  border-color: var(--avila-sage);
  box-shadow: 0 0 0 3px rgba(168, 199, 165, 0.18);
}

.expense-form textarea {
  resize: vertical;
}

/* NOMINAL */

.expense-amount-input {
  display: flex;
  align-items: center;

  background: #fbfcfa;
  border: 1px solid #e3e8e3;
  border-radius: 14px;

  overflow: hidden;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.expense-amount-input:focus-within {
  border-color: var(--avila-sage);
  box-shadow: 0 0 0 3px rgba(168, 199, 165, 0.18);
}

.expense-amount-input span {
  padding-left: 16px;

  color: var(--avila-muted);
  font-size: 16px;
  font-weight: 600;
}

.expense-amount-input input {
  padding: 15px 14px;

  border: 0;
  background: transparent;
  box-shadow: none;

  font-size: 20px;
  font-weight: 700;
}

.expense-amount-input input:focus {
  box-shadow: none;
}

/* BUTTON */

.expense-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 8px;
}

.expense-cancel-button,
.expense-submit-button {
  min-height: 44px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;

  text-decoration: none;
  cursor: pointer;
}

.expense-cancel-button {
  background: #f5f6f4;
  color: var(--avila-text);
}

.expense-submit-button {
  border: 0;
  background: var(--avila-sage-dark);
  color: #ffffff;
}

.expense-submit-button:hover {
  background: #5f8062;
}

/* =========================================================
   CATAT PENGELUARAN - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .finance-back-link {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .expense-form-wrapper {
    max-width: none;
  }

  .expense-form-card {
    padding: 20px 17px;
    border-radius: 20px;
  }

  .expense-form-header {
    gap: 12px;

    margin-bottom: 22px;
    padding-bottom: 17px;
  }

  .expense-form-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;
    font-size: 19px;
  }

  .expense-form-header h2 {
    font-size: 16px;
  }

  .expense-form-header p {
    font-size: 11px;
  }

  .expense-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .expense-form-group {
    margin-bottom: 17px;
  }

  .expense-amount-input input {
    font-size: 18px;
  }

  .expense-form-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;

    gap: 9px;
    margin-top: 5px;
  }

  .expense-cancel-button,
  .expense-submit-button {
    width: 100%;
    min-height: 46px;

    padding: 0 12px;
  }
}

/* =========================================================
   AVILA ALERT
   ========================================================= */

.avila-alert {
  width: 100%;
  margin-bottom: 20px;
  padding: 13px 16px;

  display: flex;
  align-items: center;
  gap: 10px;

  border-radius: 14px;

  font-size: 12px;
  font-weight: 500;
}

.avila-alert p {
  margin: 0;
}

.avila-alert span {
  flex-shrink: 0;

  width: 26px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 12px;
  font-weight: 700;
}

/* SUCCESS */

.avila-alert-success {
  background: #eaf4e9;
  border: 1px solid #d6e8d4;
  color: #527458;
}

.avila-alert-success span {
  background: #d4e8d2;
  color: #527458;
}

/* ERROR */

.avila-alert-error {
  background: #fdecea;
  border: 1px solid #f4d6d2;
  color: #a95e57;
}

.avila-alert-error span {
  background: #f5d6d2;
  color: #a95e57;
}

/* =========================================================
   AVILA ALERT - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .avila-alert {
    margin-bottom: 16px;
    padding: 11px 13px;

    border-radius: 12px;

    font-size: 11px;
  }

  .avila-alert span {
    width: 24px;
    height: 24px;
  }
}

/* =========================================================
   BUDGET FORM
   ========================================================= */

.budget-form-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 28px 40px;
}

.budget-form-card {
  margin-top: 18px;
  padding: 28px;

  background: var(--avila-white);
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.budget-form-heading {
  margin-bottom: 24px;
}

.budget-form-heading h2 {
  margin: 0 0 5px;

  font-size: 20px;
  font-weight: 700;
}

.budget-form-heading p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 12px;
}

.budget-form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 16px 0;

  border-bottom: 1px solid #f1eee9;
}

.budget-category {
  display: flex;
  align-items: center;
  gap: 12px;
}

.budget-category-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--avila-cream);
  border-radius: 12px;

  font-size: 18px;
}

.budget-category strong {
  display: block;

  font-size: 13px;
}

.budget-category span {
  display: block;

  margin-top: 2px;

  color: var(--avila-muted);
  font-size: 11px;
}

.budget-amount-input {
  width: 230px;

  display: flex;
  align-items: center;

  border: 1px solid #e5e3de;
  border-radius: 12px;

  overflow: hidden;
}

.budget-amount-input span {
  padding: 11px 12px;

  background: #f8f6f2;

  color: var(--avila-muted);
  font-size: 12px;
}

.budget-amount-input input {
  width: 100%;

  padding: 11px 12px;

  border: 0;
  outline: none;

  font-size: 13px;
}

.budget-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 26px;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .budget-form-wrapper {
    padding: 0 16px 100px;
  }

  .budget-form-card {
    padding: 20px 16px;
  }

  .budget-form-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .budget-amount-input {
    width: 100%;
  }

  .budget-form-actions {
    flex-direction: column-reverse;
  }

  .budget-form-actions a,
  .budget-form-actions button {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   BUDGET PROGRESS
   ========================================================= */

.budget-progress {
  width: 100%;
  height: 8px;

  background: #edf0ed;

  border-radius: 999px;
  overflow: hidden;
}

.budget-progress > .budget-progress-bar {
  display: block;

  width: var(--budget-width);
  max-width: 100%;
  height: 100%;

  flex: none;

  background: #8fb58c;
  border-radius: 999px;

  transition: width 0.3s ease;
}

.budget-progress > .budget-progress-bar.warning {
  background: #f2b66d;
}

.budget-progress > .budget-progress-bar.over-budget {
  background: #f28b82;
}

/* =========================================================
   TRANSACTION HISTORY FILTER
   ========================================================= */

.transaction-filter {
  margin: 20px 0;
}

.transaction-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.transaction-filter select {
  min-width: 160px;
  height: 44px;
  padding: 0 14px;

  border: 1px solid #e3e8e3;
  border-radius: 12px;

  background: #ffffff;
  color: var(--avila-text);

  font-size: 14px;
  outline: none;
}

.transaction-filter select:focus {
  border-color: var(--avila-sage);
}

.transaction-filter-button {
  height: 44px;
  padding: 0 20px;

  border: none;
  border-radius: 12px;

  background: var(--avila-sage-dark);
  color: #ffffff;

  font-weight: 600;
}

.transaction-filter-reset {
  height: 44px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;

  color: var(--avila-muted);
  text-decoration: none;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .transaction-filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .transaction-filter select {
    width: 100%;
    min-width: 0;
  }

  .transaction-filter-group select:first-child {
    grid-column: 1 / -1;
  }

  .transaction-filter-button,
  .transaction-filter-reset {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   FINANCE REPORT
   ========================================================= */

.finance-report-wrapper {
  margin-top: 20px;
}

.finance-report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  margin-top: 20px;
}

.finance-report-card {
  background: #ffffff;

  padding: 22px;

  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finance-report-card span {
  color: var(--avila-muted);
  font-size: 14px;
}

.finance-report-card strong {
  font-size: 24px;
  color: var(--avila-text);
}

.finance-report-card small {
  color: var(--avila-muted);
}

/* Income */

.finance-report-card.income {
  border-top: 4px solid var(--avila-sage);
}

/* Expense */

.finance-report-card.expense {
  border-top: 4px solid var(--avila-coral);
}

/* Balance */

.finance-report-card.balance {
  border-top: 4px solid var(--avila-yellow);
}

/* MOBILE */

@media (max-width: 767.98px) {
  .finance-report-wrapper {
    padding-bottom: 90px;
  }

  .finance-report-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .finance-report-card {
    padding: 18px;
  }

  .finance-report-card strong {
    font-size: 21px;
  }
}

/* =========================================================
   FINANCE REPORT FILTER
   ========================================================= */

.finance-report-filter {
  margin-top: 20px;
}

.finance-report-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finance-report-filter select {
  min-width: 160px;
  height: 44px;

  padding: 0 14px;

  border: 1px solid #e3e8e3;
  border-radius: 12px;

  background: #ffffff;
  color: var(--avila-text);

  font-size: 14px;
  outline: none;
}

.finance-report-filter select:focus {
  border-color: var(--avila-sage);
}

.finance-report-filter-button {
  height: 44px;
  padding: 0 20px;

  border: none;
  border-radius: 12px;

  background: var(--avila-sage-dark);
  color: #ffffff;

  font-weight: 600;
  cursor: pointer;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .finance-report-filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .finance-report-filter select {
    width: 100%;
    min-width: 0;
  }

  .finance-report-filter-button {
    width: 100%;
    grid-column: 1 / -1;
  }
}

/* =========================================================
   FINANCE REPORT - CATEGORY BREAKDOWN
   ========================================================= */

.finance-report-breakdown {
  margin-top: 24px;

  background: #ffffff;

  padding: 24px;

  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.finance-report-section-header {
  margin-bottom: 18px;
}

.finance-report-section-header h2 {
  margin: 0 0 4px;

  font-size: 18px;
  font-weight: 700;

  color: var(--avila-text);
}

.finance-report-section-header p {
  margin: 0;

  font-size: 14px;
  color: var(--avila-muted);
}

.finance-report-category-list {
  display: flex;
  flex-direction: column;
}

.finance-report-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 0;

  border-bottom: 1px solid #edf0ed;
}

.finance-report-category-item:last-child {
  border-bottom: none;
}

.finance-report-category-main {
  display: flex;
  align-items: center;

  gap: 14px;
}

.finance-report-category-icon {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--avila-cream);

  border-radius: 14px;

  font-size: 20px;
}

.finance-report-category-info {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.finance-report-category-info strong {
  font-size: 15px;
  color: var(--avila-text);
}

.finance-report-category-info span {
  font-size: 13px;
  color: var(--avila-muted);
}

.finance-report-category-amount {
  font-size: 15px;
  font-weight: 700;

  color: var(--avila-coral);

  white-space: nowrap;
}

.finance-report-empty {
  padding: 30px 10px;

  text-align: center;

  color: var(--avila-muted);
  font-size: 14px;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .finance-report-breakdown {
    padding: 18px;
    margin-top: 16px;
  }

  .finance-report-category-item {
    gap: 12px;
  }

  .finance-report-category-icon {
    width: 40px;
    height: 40px;

    font-size: 18px;
  }

  .finance-report-category-amount {
    font-size: 14px;
  }
}
/* Income amount on finance report */

.finance-report-category-amount.income {
  color: var(--avila-sage-dark);
}

/* =========================================================
   FINANCE REPORT - TREND CHART
   ========================================================= */

.finance-report-chart {
  margin-top: 24px;

  padding: 24px;

  background: #ffffff;

  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.finance-report-chart-container {
  position: relative;

  width: 100%;
  height: 320px;

  margin-top: 18px;
}

@media (max-width: 767.98px) {
  .finance-report-chart {
    margin-top: 16px;
    padding: 18px;
  }

  .finance-report-chart-container {
    height: 280px;
  }
}

/* =========================================================
   FINANCE TOOLS ACCESS
   ========================================================= */

.finance-tools-access {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 10px;
  margin-bottom: 6px;
}

.finance-tools-access a {
  color: var(--avila-sage-dark);

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;
}

.finance-tools-access a:hover {
  text-decoration: underline;
}

.finance-tools-access span {
  color: #c7cec8;
  font-size: 12px;
}

@media (max-width: 767.98px) {
  .finance-tools-access {
    margin-top: 8px;
    gap: 8px;
  }

  .finance-tools-access a {
    font-size: 13px;
  }
}

/* =========================================================
   FINANCE - CATEGORY MANAGEMENT
   ========================================================= */

.finance-category-back {
  margin-bottom: 20px;
}

.finance-category-back a {
  color: var(--avila-sage-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.finance-category-back a:hover {
  text-decoration: underline;
}

/* HEADER */

.finance-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 24px;
}

.finance-category-heading h2 {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 700;
}

.finance-category-heading p {
  margin: 0;
  color: var(--avila-muted);
  font-size: 14px;
}

.finance-category-add {
  border: 0;
  border-radius: 12px;

  padding: 11px 18px;

  background: var(--avila-sage-dark);
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;
}

.finance-category-add:disabled {
  opacity: 1;
}

/* SECTION */

.finance-category-section {
  margin-bottom: 24px;

  padding: 24px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.finance-category-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 18px;
}

.finance-category-section-title h3 {
  margin: 0 0 4px;

  font-size: 18px;
  font-weight: 700;
}

.finance-category-section-title p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 13px;
}

.finance-category-section-title > span {
  padding: 6px 10px;

  background: var(--avila-cream);
  border-radius: 999px;

  color: var(--avila-muted);

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;
}

/* CATEGORY LIST */

.finance-category-list {
  display: flex;
  flex-direction: column;
}

.finance-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 0;

  border-bottom: 1px solid #edf0ed;
}

.finance-category-item:first-child {
  padding-top: 0;
}

.finance-category-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.finance-category-main {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
}

.finance-category-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 13px;

  font-size: 20px;
}

.finance-category-icon.expense {
  background: #fde7e3;
}

.finance-category-icon.income {
  background: #e5f1e4;
}

.finance-category-info {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;
}

.finance-category-info strong {
  font-size: 14px;
  font-weight: 600;
}

/* BADGE */

.finance-category-badge {
  display: inline-flex;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;

  white-space: nowrap;
}

.finance-category-badge.default {
  background: #f3f1ec;
  color: var(--avila-muted);
}

.finance-category-badge.custom {
  background: #e5f1e4;
  color: var(--avila-sage-dark);
}

/* EDIT */

.finance-category-edit {
  border: 0;
  background: transparent;

  color: var(--avila-sage-dark);

  font-size: 13px;
  font-weight: 600;
}

.finance-category-edit:disabled {
  opacity: 1;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .finance-category-heading {
    align-items: flex-start;
  }

  .finance-category-heading h2 {
    font-size: 20px;
  }

  .finance-category-add {
    padding: 10px 13px;
    font-size: 13px;
  }

  .finance-category-section {
    padding: 18px;
  }

  .finance-category-section-title {
    gap: 10px;
  }

  .finance-category-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .finance-category-icon {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    font-size: 18px;
  }
}

/* =========================================================
   FINANCE CATEGORY - ADD FORM
   ========================================================= */

.finance-category-form {
  margin-bottom: 24px;
  padding: 24px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.finance-category-form[hidden] {
  display: none;
}

.finance-category-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 20px;
}

.finance-category-form-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.finance-category-form-header p {
  margin: 0;
  color: var(--avila-muted);
  font-size: 13px;
}

.finance-category-form-close {
  border: 0;
  background: transparent;

  color: var(--avila-muted);
  font-size: 24px;
  line-height: 1;
}

.finance-category-form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
}

.finance-category-form-grid label {
  display: block;
  margin-bottom: 7px;

  font-size: 13px;
  font-weight: 600;
}

.finance-category-form-grid input,
.finance-category-form-grid select {
  width: 100%;

  padding: 11px 12px;

  border: 1px solid #dfe5df;
  border-radius: 12px;

  background: #ffffff;
  color: var(--avila-text);

  font-size: 14px;
  outline: none;
}

.finance-category-form-grid input:focus,
.finance-category-form-grid select:focus {
  border-color: var(--avila-sage);
}

.finance-category-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 20px;
}

.finance-category-cancel,
.finance-category-save {
  padding: 10px 16px;

  border-radius: 11px;

  font-size: 13px;
  font-weight: 600;
}

.finance-category-cancel {
  border: 1px solid #dfe5df;
  background: #ffffff;
  color: var(--avila-muted);
}

.finance-category-save {
  border: 0;
  background: var(--avila-sage-dark);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .finance-category-form {
    padding: 18px;
  }

  .finance-category-form-grid {
    grid-template-columns: 1fr;
  }

  .finance-category-form-actions {
    flex-direction: column-reverse;
  }

  .finance-category-cancel,
  .finance-category-save {
    width: 100%;
  }
}

/* =========================================================
   FINANCE CATEGORY - ICON PICKER
   ========================================================= */

.finance-icon-field {
  grid-column: 1 / -1;
}

.finance-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-icon-option {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid #dfe5df;
  border-radius: 12px;

  background: #ffffff;

  font-size: 20px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.finance-icon-option:hover {
  border-color: var(--avila-sage);
  background: #f5f8f4;
  transform: translateY(-1px);
}

.finance-icon-option.selected {
  border: 2px solid var(--avila-sage-dark);
  background: #eaf2e8;
}

@media (max-width: 767.98px) {
  .finance-icon-option {
    width: 40px;
    height: 40px;

    font-size: 18px;
  }
}

/* =========================================================
   FINANCE CATEGORY - ACTIONS
   ========================================================= */

.finance-category-actions {
  display: flex;
  align-items: center;
  gap: 12px;

  flex-shrink: 0;
}

.finance-category-deactivate-form {
  margin: 0;
}

.finance-category-deactivate {
  padding: 0;

  border: 0;
  background: transparent;

  color: var(--avila-coral);

  font-size: 13px;
  font-weight: 600;
}

.finance-category-deactivate:hover {
  text-decoration: underline;
}

.finance-category-badge.inactive {
  background: #f3f1ec;
  color: var(--avila-muted);
}

/* MOBILE */

@media (max-width: 767.98px) {
  .finance-category-actions {
    gap: 8px;
  }

  .finance-category-edit,
  .finance-category-deactivate {
    font-size: 12px;
  }
}

/* =========================================================
   FINANCE CATEGORY - ACTIVATE
   ========================================================= */

.finance-category-activate-form {
  margin: 0;
}

.finance-category-activate {
  padding: 0;

  border: 0;
  background: transparent;

  color: var(--avila-sage-dark);

  font-size: 13px;
  font-weight: 600;
}

.finance-category-activate:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .finance-category-activate {
    font-size: 12px;
  }
}

/* =========================================================
   KITCHEN DASHBOARD
   ========================================================= */

.kitchen-content {
  padding: 0 32px 40px;
}

.kitchen-quick-section,
.kitchen-overview-section {
  margin-bottom: 28px;
}

.kitchen-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 16px;
}

.kitchen-section-header h2 {
  margin: 0 0 4px;

  font-size: 20px;
  font-weight: 700;
}

.kitchen-section-header p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 13px;
}

.kitchen-section-header > a {
  color: var(--avila-sage-dark);

  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
  white-space: nowrap;
}

/* QUICK ACCESS */

.kitchen-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kitchen-quick-card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 110px;
  padding: 20px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);

  color: var(--avila-text);
  text-decoration: none;
}

.kitchen-quick-card:hover {
  color: var(--avila-text);
  transform: translateY(-2px);
}

.kitchen-quick-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 14px;

  font-size: 22px;
}

.kitchen-quick-card.recipe .kitchen-quick-icon {
  background: var(--avila-peach);
}

.kitchen-quick-card.planner .kitchen-quick-icon {
  background: var(--avila-yellow);
}

.kitchen-quick-card.shopping .kitchen-quick-icon {
  background: var(--avila-blue);
}

.kitchen-quick-content h3 {
  margin: 0 0 4px;

  font-size: 15px;
  font-weight: 700;
}

.kitchen-quick-content p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 12px;
}

.kitchen-quick-arrow {
  margin-left: auto;

  color: var(--avila-muted);
  font-size: 24px;
}

/* EMPTY OVERVIEW */

.kitchen-empty-card {
  min-height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);

  text-align: center;
}

.kitchen-empty-icon {
  margin-bottom: 8px;
  font-size: 28px;
}

.kitchen-empty-card strong {
  margin-bottom: 4px;

  font-size: 14px;
}

.kitchen-empty-card p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 12px;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .kitchen-content {
    padding: 0 16px 95px;
  }

  .kitchen-quick-grid {
    grid-template-columns: 1fr;
  }

  .kitchen-quick-card {
    min-height: auto;
    padding: 16px;
  }

  .kitchen-overview-section {
    margin-bottom: 22px;
  }
}

/* =========================================================
   KITCHEN - MASTER RECIPE
   ========================================================= */

.recipe-page-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;

  margin-bottom: 22px;
}

.recipe-back-link {
  display: inline-block;
  margin-bottom: 12px;

  color: var(--avila-sage-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.recipe-page-action h2 {
  margin: 0 0 5px;

  font-size: 22px;
  font-weight: 700;
}

.recipe-page-action p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 13px;
}

.recipe-add-button {
  padding: 11px 18px;

  background: var(--avila-sage-dark);
  border-radius: 12px;

  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;

  white-space: nowrap;
}

.recipe-add-button:hover {
  color: #ffffff;
  opacity: 0.9;
}

/* FILTER */

.recipe-filter-card {
  display: flex;
  gap: 16px;

  padding: 18px;
  margin-bottom: 22px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.recipe-filter-group {
  flex: 1;
}

.recipe-filter-group label {
  display: block;

  margin-bottom: 6px;

  font-size: 12px;
  font-weight: 600;
}

.recipe-filter-group select {
  width: 100%;

  padding: 10px 12px;

  border: 1px solid #e7eae7;
  border-radius: 10px;

  background: #ffffff;
  color: var(--avila-text);

  font-size: 13px;
}

/* RECIPE GRID */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recipe-card {
  overflow: hidden;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.recipe-card-image {
  height: 155px;

  background: var(--avila-cream);
}

.recipe-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.recipe-image-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff4e9;

  font-size: 42px;
}

.recipe-card-body {
  padding: 16px;
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 10px;
}

.recipe-category-badge,
.recipe-source-badge {
  display: inline-flex;

  padding: 5px 8px;

  border-radius: 20px;

  font-size: 10px;
  font-weight: 600;
}

.recipe-category-badge {
  background: var(--avila-cream);
}

.recipe-source-badge.avila {
  background: var(--avila-peach);
}

.recipe-source-badge.family {
  background: var(--avila-blue);
}

.recipe-card-body h3 {
  margin: 0 0 6px;

  font-size: 16px;
  font-weight: 700;
}

.recipe-card-body > p {
  margin: 0 0 12px;

  color: var(--avila-muted);
  font-size: 12px;
  line-height: 1.5;
}

.recipe-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  color: var(--avila-muted);
  font-size: 11px;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .recipe-page-action {
    align-items: stretch;
    flex-direction: column;
  }

  .recipe-add-button {
    width: 100%;
    text-align: center;
  }

  .recipe-filter-card {
    flex-direction: column;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-card-image {
    height: 180px;
  }
}

/* =========================================================
   KITCHEN - RECIPE FORM
   ========================================================= */

.recipe-form {
  max-width: 900px;
}

.recipe-form-card {
  padding: 22px;
  margin-bottom: 20px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.recipe-form-heading {
  margin-bottom: 20px;
}

.recipe-form-heading h2 {
  margin: 0 0 4px;

  font-size: 18px;
  font-weight: 700;
}

.recipe-form-heading p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 12px;
}

.recipe-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.recipe-form-full {
  grid-column: 1 / -1;
}

.recipe-form-group label {
  display: block;

  margin-bottom: 6px;

  font-size: 12px;
  font-weight: 600;
}

.recipe-form-group input,
.recipe-form-group select,
.recipe-form-group textarea {
  width: 100%;

  padding: 11px 12px;

  border: 1px solid #e7eae7;
  border-radius: 10px;

  background: #ffffff;
  color: var(--avila-text);

  font-size: 13px;
}

.recipe-form-group textarea {
  resize: vertical;
}

.recipe-input-suffix {
  position: relative;
}

.recipe-input-suffix input {
  padding-right: 60px;
}

.recipe-input-suffix span {
  position: absolute;
  top: 50%;
  right: 12px;

  transform: translateY(-50%);

  color: var(--avila-muted);
  font-size: 11px;
}

/* BUILDER PLACEHOLDER */

.recipe-empty-builder {
  min-height: 130px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 20px;

  border: 1px dashed #dde3de;
  border-radius: 14px;

  text-align: center;
}

.recipe-empty-builder > span {
  margin-bottom: 6px;
  font-size: 26px;
}

.recipe-empty-builder strong {
  font-size: 13px;
}

.recipe-empty-builder p {
  margin: 3px 0 0;

  color: var(--avila-muted);
  font-size: 11px;
}

/* ACTION */

.recipe-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 4px;
}

.recipe-cancel-button,
.recipe-save-button {
  padding: 11px 18px;

  border-radius: 11px;

  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
}

.recipe-cancel-button {
  border: 1px solid #e4e8e4;
  background: #ffffff;

  color: var(--avila-text);
}

.recipe-save-button {
  border: 0;
  background: var(--avila-sage-dark);

  color: #ffffff;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .recipe-form {
    max-width: none;
  }

  .recipe-form-card {
    padding: 18px;
  }

  .recipe-form-grid {
    grid-template-columns: 1fr;
  }

  .recipe-form-full {
    grid-column: auto;
  }

  .recipe-form-actions {
    flex-direction: column-reverse;
  }

  .recipe-cancel-button,
  .recipe-save-button {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   KITCHEN - INGREDIENT BUILDER
   ========================================================= */

.recipe-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  margin-bottom: 18px;
}

.recipe-builder-header .recipe-form-heading {
  margin-bottom: 0;
}

.recipe-builder-add {
  padding: 9px 14px;

  border: 0;
  border-radius: 10px;

  background: #eef5ee;
  color: var(--avila-sage-dark);

  font-size: 12px;
  font-weight: 600;
}

.recipe-builder-add:hover {
  background: #e5efe5;
}

.recipe-builder-add-mobile {
  display: none;
}

/* INGREDIENT ROW */

.ingredient-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ingredient-row {
  display: grid;

  grid-template-columns:
    minmax(220px, 2fr)
    minmax(90px, 0.7fr)
    minmax(110px, 0.8fr)
    42px;

  gap: 10px;
  align-items: end;
}

.ingredient-row label {
  display: block;

  margin-bottom: 6px;

  font-size: 11px;
  font-weight: 600;

  color: var(--avila-muted);
}

.ingredient-row input {
  width: 100%;

  padding: 10px 11px;

  border: 1px solid #e7eae7;
  border-radius: 10px;

  background: #ffffff;
  color: var(--avila-text);

  font-size: 13px;
}

.ingredient-remove {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 10px;

  background: #fff0ee;
  color: var(--avila-coral);

  font-size: 20px;
  line-height: 1;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .recipe-builder-header > .recipe-builder-add {
    display: none;
  }

  .recipe-builder-add-mobile {
    display: block;

    width: 100%;
    margin-top: 14px;
  }

  .ingredient-row {
    grid-template-columns:
      minmax(0, 1fr)
      80px
      90px
      40px;

    gap: 7px;
  }

  .ingredient-row label {
    font-size: 10px;
  }

  .ingredient-row input {
    padding: 9px 8px;

    font-size: 12px;
  }
}
/* =========================================================
   KITCHEN - RECIPE STEP BUILDER
   ========================================================= */

.recipe-step-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recipe-step-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 40px;

  gap: 10px;
  align-items: flex-start;
}

.recipe-step-number {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 2px;

  border-radius: 50%;

  background: #eef5ee;
  color: var(--avila-sage-dark);

  font-size: 13px;
  font-weight: 700;
}

.recipe-step-input textarea {
  width: 100%;
  min-height: 70px;

  padding: 11px 12px;

  border: 1px solid #e7eae7;
  border-radius: 10px;

  background: #ffffff;
  color: var(--avila-text);

  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;

  resize: vertical;
}

.recipe-step-remove {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 10px;

  background: #fff0ee;
  color: var(--avila-coral);

  font-size: 20px;
  line-height: 1;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .recipe-step-row {
    grid-template-columns: 32px minmax(0, 1fr) 36px;
    gap: 7px;
  }

  .recipe-step-number {
    width: 32px;
    height: 32px;

    font-size: 12px;
  }

  .recipe-step-remove {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
   KITCHEN - RECIPE DETAIL
   ========================================================= */

.recipe-card {
  color: var(--avila-text);
  text-decoration: none;
}

.recipe-card:hover {
  color: var(--avila-text);
  transform: translateY(-2px);
}

.recipe-detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;

  padding: 22px;
  margin-bottom: 20px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.recipe-detail-image {
  height: 220px;
  overflow: hidden;

  border-radius: 16px;
  background: #fff4e9;
}

.recipe-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-detail-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 60px;
}

.recipe-detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-detail-summary h2 {
  margin: 4px 0 8px;

  font-size: 26px;
  font-weight: 700;
}

.recipe-detail-summary > p {
  max-width: 650px;
  margin: 0 0 20px;

  color: var(--avila-muted);
  font-size: 13px;
  line-height: 1.6;
}

.recipe-detail-info {
  display: flex;
  gap: 30px;
}

.recipe-detail-info > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recipe-detail-info span {
  color: var(--avila-muted);
  font-size: 11px;
}

.recipe-detail-info strong {
  font-size: 13px;
}

/* DETAIL CARD */

.recipe-detail-card {
  padding: 22px;
  margin-bottom: 20px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

/* INGREDIENT */

.recipe-detail-ingredients {
  display: flex;
  flex-direction: column;
}

.recipe-detail-ingredient {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 12px 0;

  border-bottom: 1px solid #f0f2f0;
}

.recipe-detail-ingredient:last-child {
  border-bottom: 0;
}

.recipe-ingredient-name {
  font-size: 13px;
  font-weight: 600;
}

.recipe-ingredient-amount {
  color: var(--avila-muted);
  font-size: 13px;
}

/* STEPS */

.recipe-detail-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recipe-detail-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.recipe-detail-step p {
  margin: 6px 0 0;

  font-size: 13px;
  line-height: 1.6;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .recipe-detail-hero {
    grid-template-columns: 1fr;
    gap: 18px;

    padding: 18px;
  }

  .recipe-detail-image {
    height: 190px;
  }

  .recipe-detail-summary h2 {
    font-size: 21px;
  }

  .recipe-detail-info {
    gap: 24px;
  }

  .recipe-detail-card {
    padding: 18px;
  }
}

/* =========================================================
   KITCHEN - RECIPE DETAIL ACTION
   ========================================================= */

.recipe-detail-actions {
  margin-top: 22px;
}

.recipe-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;

  border-radius: 11px;

  background: var(--avila-sage-dark);
  color: #ffffff;

  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.recipe-edit-button:hover {
  color: #ffffff;
  opacity: 0.9;
}

@media (max-width: 767.98px) {
  .recipe-edit-button {
    width: 100%;
  }
}

/* =========================================================
   KITCHEN - RECIPE DELETE
   ========================================================= */

.recipe-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-detail-actions form {
  margin: 0;
}

.recipe-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;

  border: 1px solid var(--avila-coral);
  border-radius: 11px;

  background: transparent;
  color: var(--avila-coral);

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}

.recipe-delete-button:hover {
  background: #fff2f0;
}

@media (max-width: 767.98px) {
  .recipe-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .recipe-detail-actions form {
    width: 100%;
  }

  .recipe-delete-button {
    width: 100%;
  }
}

/* =========================================================
   KITCHEN - RECIPE STATUS
   ========================================================= */

.recipe-card-inactive {
  opacity: 0.65;
}

.recipe-status-badge {
  display: inline-flex;
  align-items: center;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 600;
}

.recipe-status-badge.inactive {
  background: #f1f1f1;
  color: var(--avila-muted);
}

.recipe-activate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;

  border: 0;
  border-radius: 11px;

  background: var(--avila-sage-dark);
  color: #ffffff;

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}

.recipe-activate-button:hover {
  opacity: 0.9;
}

@media (max-width: 767.98px) {
  .recipe-activate-button {
    width: 100%;
  }
}

/* =========================================================
   KITCHEN - MEAL PLANNER
   ========================================================= */

.meal-planner-page-header {
  margin-bottom: 18px;
}

.meal-planner-page-header h2 {
  margin: 10px 0 3px;

  font-size: 22px;
  font-weight: 700;
}

.meal-planner-page-header p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 13px;
}

/* WEEK NAVIGATION */

.meal-week-navigation {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  margin-bottom: 20px;

  background: #ffffff;
  border-radius: var(--avila-radius);
  box-shadow: var(--avila-shadow);
}

.meal-week-button,
.meal-week-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 8px 13px;

  border-radius: 10px;

  font-size: 11px;
  font-weight: 600;

  text-decoration: none;
}

.meal-week-button {
  border: 1px solid #e5eae6;

  background: #ffffff;
  color: var(--avila-text);
}

.meal-week-button:hover {
  background: var(--avila-cream);
  color: var(--avila-text);
}

.meal-week-today {
  background: #eef5ed;
  color: var(--avila-sage-dark);
}

.meal-week-today:hover {
  color: var(--avila-sage-dark);
}

.meal-week-current {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.meal-week-current span {
  color: var(--avila-muted);
  font-size: 10px;
}

.meal-week-current strong {
  margin-top: 1px;

  font-size: 14px;
}

/* WEEK GRID */

.meal-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* DAY */

.meal-day-card {
  padding: 18px;

  background: #ffffff;

  border: 1px solid transparent;
  border-radius: 18px;

  box-shadow: var(--avila-shadow);
}

.meal-day-card.today {
  border-color: var(--avila-sage);
}

.meal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 13px;
  margin-bottom: 12px;

  border-bottom: 1px solid #f0f2f0;
}

.meal-day-header > div {
  display: flex;
  flex-direction: column;
}

.meal-day-name {
  color: var(--avila-muted);

  font-size: 11px;
  font-weight: 600;
}

.meal-day-date {
  margin-top: 2px;

  font-size: 16px;
}

.meal-today-badge {
  padding: 4px 8px;

  background: #eef5ed;
  color: var(--avila-sage-dark);

  border-radius: 999px;

  font-size: 9px;
  font-weight: 700;
}

/* MEAL SLOT */

.meal-slot {
  margin-top: 13px;
}

.meal-slot-label {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 6px;

  color: var(--avila-muted);

  font-size: 10px;
  font-weight: 600;
}

.meal-slot-icon {
  font-size: 12px;
}

/* EMPTY SLOT */

.meal-slot-empty {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 10px;

  border: 1px dashed #d7ddd8;
  border-radius: 12px;

  background: #fcfdfc;
  color: var(--avila-muted);

  font-family: inherit;
  font-size: 11px;
  font-weight: 600;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.meal-slot-empty:hover {
  border-color: var(--avila-sage);

  background: #f5f9f4;

  color: var(--avila-sage-dark);
}

.meal-slot-plus {
  width: 20px;
  height: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #eef5ed;
  color: var(--avila-sage-dark);

  font-size: 15px;
  font-weight: 500;
}

/* =========================================================
   MEAL PLANNER - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .meal-planner-page-header h2 {
    font-size: 20px;
  }

  .meal-week-navigation {
    display: grid;

    grid-template-columns:
      1fr
      1fr;

    gap: 8px;

    padding: 12px;
  }

  .meal-week-current {
    grid-column: 1 / -1;
    grid-row: 1;

    padding-bottom: 7px;
  }

  .meal-week-today {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .meal-week-button {
    grid-row: 3;
  }

  .meal-week-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meal-day-card {
    padding: 16px;
  }
}

/* =========================================================
   MEAL PLANNER - FILLED SLOT
   ========================================================= */

.meal-slot-filled {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;

  padding: 10px 12px;

  border: 1px solid #dde8dc;
  border-radius: 12px;

  background: #f5f9f4;
  color: var(--avila-text);

  text-align: left;
  font-family: inherit;

  cursor: pointer;
}

.meal-slot-filled:hover {
  border-color: var(--avila-sage);
}

.meal-selected-recipe {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meal-selected-recipe strong {
  font-size: 11px;
}

.meal-selected-recipe small {
  color: var(--avila-muted);
  font-size: 9px;
}

/* =========================================================
   MEAL PICKER MODAL
   ========================================================= */

.meal-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(35, 45, 39, 0.35);
}

.meal-picker-overlay.show {
  display: flex;
}

body.meal-picker-open {
  overflow: hidden;
}

.meal-picker-modal {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;

  display: flex;
  flex-direction: column;

  background: #ffffff;
  border-radius: 20px;

  box-shadow: 0 20px 60px rgba(52, 66, 58, 0.18);

  overflow: hidden;
}

.meal-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  padding: 20px;

  border-bottom: 1px solid #eef1ee;
}

.meal-picker-header h3 {
  margin: 0 0 3px;

  font-size: 18px;
  font-weight: 700;
}

.meal-picker-header p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 11px;
}

.meal-picker-close {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border: 0;
  border-radius: 50%;

  background: #f5f6f5;
  color: var(--avila-muted);

  font-size: 20px;

  cursor: pointer;
}

/* RECIPE LIST */

.meal-picker-recipes {
  max-height: 420px;

  padding: 12px 20px;

  overflow-y: auto;
}

.meal-picker-recipe {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px;

  margin-bottom: 8px;

  border: 1px solid #e8ece9;
  border-radius: 13px;

  cursor: pointer;
}

.meal-picker-recipe:hover {
  border-color: var(--avila-sage);
  background: #fafcfa;
}

.meal-picker-recipe input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.meal-picker-radio {
  width: 18px;
  height: 18px;

  flex-shrink: 0;

  border: 2px solid #ccd5cd;
  border-radius: 50%;
}

.meal-picker-recipe input:checked + .meal-picker-radio {
  border: 5px solid var(--avila-sage-dark);
}

.meal-picker-recipe-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meal-picker-recipe-info strong {
  font-size: 12px;
}

.meal-picker-recipe-info small {
  color: var(--avila-muted);
  font-size: 10px;
}

/* ACTION */

.meal-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  padding: 16px 20px;

  border-top: 1px solid #eef1ee;
}

/* EMPTY */

.meal-picker-empty {
  padding: 30px;

  color: var(--avila-muted);

  text-align: center;
  font-size: 12px;
}

@media (max-width: 767.98px) {
  .meal-picker-overlay {
    align-items: flex-end;

    padding: 0;
  }

  .meal-picker-modal {
    max-width: none;
    max-height: 85vh;

    border-radius: 20px 20px 0 0;
  }

  .meal-picker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   MEAL PICKER - REMOVE ACTION
   ========================================================= */

.meal-picker-actions {
  align-items: center;
  justify-content: space-between;
}

.meal-picker-main-actions {
  display: flex;
  gap: 10px;
}

.meal-remove-button {
  display: none;

  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 8px 13px;

  border: 1px solid #f2cbc7;
  border-radius: 10px;

  background: #fff7f6;
  color: #c96c64;

  font-family: inherit;
  font-size: 11px;
  font-weight: 600;

  cursor: pointer;
}

.meal-remove-button:hover {
  background: #fdece9;
}

@media (max-width: 767.98px) {
  .meal-picker-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .meal-remove-button {
    width: 100%;
  }

  .meal-picker-main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;
  }
}

/* =========================================================
   MEAL PLANNER - RECIPE PICKER MODAL FIX
   Header & footer tetap terlihat, list menu yang scroll
   ========================================================= */

.meal-picker-modal {
  display: flex;
  flex-direction: column;

  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.meal-picker-header {
  flex-shrink: 0;
}

.meal-picker-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.meal-picker-footer {
  flex-shrink: 0;
  background: #fff;
  position: relative;
  z-index: 2;
}

/* MOBILE */
@media (max-width: 767.98px) {
  .meal-picker-modal {
    max-height: calc(100dvh - 24px);
  }
}

/* =========================================================
   SHOPPING LIST
   ========================================================= */

.shopping-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.shopping-list-header h3 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 700;
}

.shopping-list-header p {
  margin: 0;
  color: var(--avila-muted);
  font-size: 14px;
}

.shopping-refresh-button {
  border: 1px solid var(--avila-sage-dark);
  background: var(--avila-white);
  color: var(--avila-sage-dark);

  border-radius: 12px;
  padding: 10px 16px;

  font-weight: 600;
  cursor: pointer;

  transition: 0.2s ease;
}

.shopping-refresh-button:hover {
  background: var(--avila-sage-dark);
  color: var(--avila-white);
}

/* LIST */

.shopping-items {
  width: 100%;
}

.shopping-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;

  gap: 14px;

  width: 100%;

  padding: 16px 4px;

  border-bottom: 1px solid #eeeae4;

  transition: 0.2s ease;
}

.shopping-item:last-child {
  border-bottom: 0;
}

/* CHECKBOX */

.shopping-check {
  position: relative;

  width: 22px;
  height: 22px;

  cursor: pointer;
}

.shopping-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shopping-checkmark {
  display: block;

  width: 22px;
  height: 22px;

  border: 2px solid #cad6cc;
  border-radius: 7px;

  background: #fff;

  transition: 0.2s ease;
}

.shopping-check input:checked + .shopping-checkmark {
  background: var(--avila-sage-dark);
  border-color: var(--avila-sage-dark);
}

.shopping-check input:checked + .shopping-checkmark::after {
  content: "";

  position: absolute;

  left: 7px;
  top: 3px;

  width: 6px;
  height: 11px;

  border: solid #fff;
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

/* CONTENT */

.shopping-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--avila-text);
}

.shopping-item-quantity {
  display: flex;
  align-items: baseline;
  gap: 4px;

  white-space: nowrap;
}

.shopping-item-quantity strong {
  font-size: 15px;
}

.shopping-item-quantity span {
  font-size: 14px;
  color: var(--avila-muted);
}

/* CHECKED STATE */

.shopping-item.is-checked .shopping-item-name,
.shopping-item.is-checked .shopping-item-quantity {
  opacity: 0.5;
  text-decoration: line-through;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .shopping-list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopping-refresh-button {
    width: 100%;
  }

  .shopping-list-header form {
    width: 100%;
  }

  .shopping-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;

    gap: 10px;

    padding: 15px 0;
  }

  .shopping-item-name {
    font-size: 14px;
  }

  .shopping-item-quantity strong,
  .shopping-item-quantity span {
    font-size: 13px;
  }
}

/* =========================================================
   SHOPPING LIST - PROGRESS
   ========================================================= */

.shopping-progress {
  margin-bottom: 22px;
}

.shopping-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 8px;

  font-size: 13px;
  color: var(--avila-muted);
}

.shopping-progress-info strong {
  color: var(--avila-sage-dark);
  font-weight: 700;
}

.shopping-progress-track {
  width: 100%;
  height: 8px;

  background: #edf1ec;
  border-radius: 999px;

  overflow: hidden;
}

.shopping-progress-bar {
  height: 100%;

  background: var(--avila-sage-dark);
  border-radius: 999px;

  transition: width 0.3s ease;
}

/* =========================================================
   DAPUR DASHBOARD - MENU MINGGU INI
   ========================================================= */

.kitchen-week-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* DAY CARD */

.kitchen-week-day {
  background: var(--avila-white);

  border: 1px solid #eeeae4;
  border-radius: 18px;

  padding: 16px;

  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);
}

.kitchen-week-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-bottom: 12px;
  margin-bottom: 12px;

  border-bottom: 1px solid #f0ece7;
}

.kitchen-week-day-header strong {
  font-size: 15px;
  color: var(--avila-text);
}

.kitchen-week-day-header span {
  font-size: 12px;
  color: var(--avila-muted);
}

/* MEALS */

.kitchen-week-day-meals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kitchen-week-meal {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kitchen-week-meal-type {
  font-size: 11px;
  font-weight: 600;

  color: var(--avila-sage-dark);

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kitchen-week-meal strong {
  font-size: 14px;
  font-weight: 600;

  line-height: 1.4;

  color: var(--avila-text);
}

/* TABLET */

@media (max-width: 1100px) {
  .kitchen-week-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 767.98px) {
  .kitchen-week-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;

    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .kitchen-week-day {
    width: 100%;
    min-width: 0;
    padding: 15px 16px;
  }

  .kitchen-week-day-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .kitchen-week-meal {
    width: 100%;
  }

  .kitchen-week-meal strong {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* =========================================================
   DAPUR DASHBOARD - SHOPPING SUMMARY
   ========================================================= */

.kitchen-shopping-summary {
  background: var(--avila-white);

  border: 1px solid #eeeae4;
  border-radius: 18px;

  padding: 20px;

  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);
}

.kitchen-shopping-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}

.kitchen-shopping-summary-top > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kitchen-shopping-label {
  font-size: 12px;
  color: var(--avila-muted);
}

.kitchen-shopping-summary-top strong {
  font-size: 16px;
  color: var(--avila-text);
}

.kitchen-shopping-percent {
  font-size: 22px;
  font-weight: 700;

  color: var(--avila-sage-dark);
}

/* PROGRESS */

.kitchen-shopping-progress-track {
  width: 100%;
  height: 8px;

  margin-top: 16px;

  background: #edf1ec;
  border-radius: 999px;

  overflow: hidden;
}

.kitchen-shopping-progress-bar {
  height: 100%;

  background: var(--avila-sage-dark);
  border-radius: 999px;

  transition: width 0.3s ease;
}

/* PREVIEW ITEMS */

.kitchen-shopping-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 10px 24px;

  margin-top: 18px;
}

.kitchen-shopping-preview-item {
  display: flex;
  align-items: center;

  gap: 9px;

  font-size: 14px;
  color: var(--avila-text);
}

.kitchen-shopping-dot {
  width: 7px;
  height: 7px;

  flex-shrink: 0;

  background: var(--avila-sage);
  border-radius: 50%;
}

.kitchen-shopping-complete {
  grid-column: 1 / -1;

  font-size: 14px;
  font-weight: 600;

  color: var(--avila-sage-dark);
}

/* MOBILE */

@media (max-width: 767.98px) {
  .kitchen-shopping-summary {
    padding: 16px;
  }

  .kitchen-shopping-summary-top {
    align-items: flex-start;
  }

  .kitchen-shopping-summary-top strong {
    font-size: 14px;
  }

  .kitchen-shopping-percent {
    font-size: 20px;
  }

  .kitchen-shopping-preview {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

/* =========================================================
   RUANG ANAK - DASHBOARD FOUNDATION
   ========================================================= */

.child-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.child-welcome-card {
  padding: 26px;

  background: linear-gradient(135deg, #fff4e8, #f8efe8);

  border: 1px solid #f0e6dd;
  border-radius: 22px;

  box-shadow: var(--avila-shadow);
}

.child-welcome-label {
  display: inline-block;

  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 700;

  color: var(--avila-coral);
}

.child-welcome-card h2 {
  margin: 0 0 8px;

  font-size: 24px;
  color: var(--avila-text);
}

.child-welcome-card p {
  margin: 0;

  max-width: 620px;

  color: var(--avila-muted);
  line-height: 1.6;
}

/* QUICK ACCESS */

.child-quick-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.child-quick-card {
  display: flex;
  align-items: center;

  gap: 14px;

  min-height: 110px;

  padding: 18px;

  background: var(--avila-white);

  border: 1px solid #eeeae4;
  border-radius: 18px;

  color: inherit;
  text-decoration: none;

  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.child-quick-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 9px 24px rgba(52, 66, 58, 0.08);

  color: inherit;
}

.child-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  flex-shrink: 0;

  background: #fff4e8;
  border-radius: 14px;

  font-size: 21px;
}

.child-quick-card > div:last-child {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.child-quick-card strong {
  font-size: 15px;
}

.child-quick-card span {
  font-size: 12px;

  color: var(--avila-muted);
  line-height: 1.4;
}

.child-overview-section {
  display: flex;
  flex-direction: column;

  gap: 16px;
}

/* TABLET */

@media (max-width: 1100px) {
  .child-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 767.98px) {
  .child-content {
    gap: 24px;
  }

  .child-welcome-card {
    padding: 20px;
  }

  .child-welcome-card h2 {
    font-size: 20px;
  }

  .child-quick-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .child-quick-card {
    min-height: 90px;
    padding: 15px;
  }
}

/* =========================================================
   RUANG ANAK - ACTIVITY LIST
   ========================================================= */

.child-page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.child-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 16px;

  background: var(--avila-sage-dark);
  color: #fff;

  border-radius: 12px;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;
}

.child-add-button:hover {
  color: #fff;
  opacity: 0.9;
}

.child-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.child-activity-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 230px;

  padding: 18px;

  background: var(--avila-white);

  border: 1px solid #eeeae4;
  border-radius: 20px;

  color: inherit;
  text-decoration: none;

  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.child-activity-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 9px 24px rgba(52, 66, 58, 0.08);

  color: inherit;
}

.child-activity-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 10px;
}

.child-activity-source {
  padding: 5px 9px;

  background: #f2f7f1;

  border-radius: 999px;

  color: var(--avila-sage-dark);

  font-size: 11px;
  font-weight: 700;
}

.child-activity-inactive {
  font-size: 11px;
  font-weight: 600;

  color: var(--avila-coral);
}

.child-activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  margin: 20px 0;

  background: #fff4e8;

  border-radius: 16px;

  font-size: 25px;
}

.child-activity-content {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.child-activity-category {
  color: var(--avila-muted);

  font-size: 11px;
  font-weight: 600;
}

.child-activity-content h3 {
  margin: 0 0 5px;

  font-size: 17px;
  line-height: 1.4;

  color: var(--avila-text);
}

.child-activity-meta {
  font-size: 12px;

  color: var(--avila-muted);
}

.child-activity-card.is-inactive {
  opacity: 0.6;
}

/* TABLET */

@media (max-width: 1100px) {
  .child-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 767.98px) {
  .child-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .child-add-button {
    width: 100%;
  }

  .child-activity-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .child-activity-card {
    min-height: auto;
  }
}

/* =========================================================
   RUANG ANAK - ACTIVITY DETAIL
   ========================================================= */

.child-detail-back {
  margin-bottom: 4px;
}

/* HERO */

.child-detail-hero {
  display: flex;
  gap: 24px;

  padding: 26px;

  background: linear-gradient(135deg, #fff8ee 0%, #f8f4ec 100%);

  border: 1px solid #eee7dd;
  border-radius: 24px;
}

.child-detail-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 90px;

  width: 90px;
  height: 90px;

  background: #ffffff;

  border-radius: 24px;

  font-size: 42px;

  box-shadow: 0 8px 20px rgba(52, 66, 58, 0.06);
}

.child-detail-hero-content {
  flex: 1;
  min-width: 0;
}

.child-detail-badges {
  display: flex;
  flex-wrap: wrap;

  align-items: center;

  gap: 8px;

  margin-bottom: 10px;
}

.child-detail-category {
  padding: 5px 9px;

  background: #fff0e6;

  border-radius: 999px;

  color: #a46c4f;

  font-size: 11px;
  font-weight: 700;
}

.child-detail-hero-content h2 {
  margin: 0 0 8px;

  color: var(--avila-text);

  font-size: 27px;
  line-height: 1.3;
}

.child-detail-hero-content > p {
  max-width: 720px;

  margin: 0;

  color: var(--avila-muted);

  font-size: 14px;
  line-height: 1.7;
}

/* META */

.child-detail-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 20px;
}

.child-detail-meta-item {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 10px 14px;

  background: rgba(255, 255, 255, 0.75);

  border-radius: 14px;
}

.child-detail-meta-item > span {
  font-size: 21px;
}

.child-detail-meta-item div {
  display: flex;
  flex-direction: column;
}

.child-detail-meta-item small {
  color: var(--avila-muted);

  font-size: 10px;
}

.child-detail-meta-item strong {
  color: var(--avila-text);

  font-size: 13px;
}

/* CONTENT GRID */

.child-detail-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  gap: 18px;

  margin-top: 18px;
}

.child-detail-section {
  padding: 22px;

  background: var(--avila-white);

  border: 1px solid #eeeae4;
  border-radius: 20px;

  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);
}

.child-detail-section-title {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 20px;
}

.child-detail-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  background: #f3f7f1;

  border-radius: 13px;

  font-size: 20px;
}

.child-detail-section-title h3 {
  margin: 0 0 2px;

  color: var(--avila-text);

  font-size: 17px;
}

.child-detail-section-title p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 12px;
}

/* MATERIAL */

.child-material-list {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.child-material-item {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 11px 12px;

  background: #fafaf7;

  border-radius: 12px;
}

.child-material-check {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 24px;

  width: 24px;
  height: 24px;

  background: #e9f2e7;

  border-radius: 50%;

  color: var(--avila-sage-dark);

  font-size: 11px;
  font-weight: 800;
}

.child-material-name {
  flex: 1;

  min-width: 0;

  color: var(--avila-text);

  font-size: 13px;
}

.child-material-quantity {
  color: var(--avila-muted);

  font-size: 11px;

  text-align: right;
}

/* STEPS */

.child-step-list {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.child-step-item {
  display: flex;

  align-items: flex-start;

  gap: 12px;
}

.child-step-number {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  background: #fff0e6;

  border-radius: 10px;

  color: #a46c4f;

  font-size: 12px;
  font-weight: 800;
}

.child-step-item p {
  margin: 4px 0 0;

  color: var(--avila-text);

  font-size: 13px;
  line-height: 1.6;
}

.child-detail-empty {
  padding: 16px;

  background: #fafaf7;

  border-radius: 12px;

  color: var(--avila-muted);

  font-size: 13px;

  text-align: center;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .child-detail-hero {
    flex-direction: column;

    gap: 16px;

    padding: 18px;
  }

  .child-detail-hero-icon {
    flex-basis: 68px;

    width: 68px;
    height: 68px;

    border-radius: 19px;

    font-size: 31px;
  }

  .child-detail-hero-content h2 {
    font-size: 22px;
  }

  .child-detail-meta {
    flex-direction: column;
  }

  .child-detail-meta-item {
    width: 100%;
  }

  .child-detail-grid {
    grid-template-columns: 1fr;
  }

  .child-detail-section {
    padding: 17px;
  }
}

/* =========================================================
   RUANG ANAK - ACTIVITY FORM
   ========================================================= */

.child-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.child-form-section {
  padding: 22px;

  background: var(--avila-white);

  border: 1px solid #eeeae4;
  border-radius: 20px;

  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);
}

.child-form-section-header {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 22px;
}

.child-form-section-header h3 {
  margin: 0 0 2px;

  color: var(--avila-text);

  font-size: 17px;
}

.child-form-section-header p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 12px;
}

.child-form-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.child-form-full {
  grid-column: 1 / -1;
}

.child-form-group label {
  display: block;

  margin-bottom: 7px;

  color: var(--avila-text);

  font-size: 12px;
  font-weight: 700;
}

.child-form .form-control,
.child-form .form-select {
  border-color: #e8e5df;
  border-radius: 12px;

  font-size: 13px;
}

.child-form .form-control:focus,
.child-form .form-select:focus {
  border-color: var(--avila-sage);

  box-shadow: 0 0 0 3px rgba(168, 199, 165, 0.18);
}

.child-form .input-group-text {
  background: #f8f7f3;

  border-color: #e8e5df;

  color: var(--avila-muted);

  font-size: 12px;
}

/* DYNAMIC ROW */

.child-dynamic-row {
  display: grid;
  align-items: start;

  gap: 10px;

  margin-bottom: 10px;
}

.material-row {
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(120px, 0.7fr)
    38px;
}

.step-row {
  grid-template-columns:
    34px
    minmax(0, 1fr)
    38px;
}

.child-step-form-number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  margin-top: 3px;

  background: #fff0e6;

  border-radius: 10px;

  color: #a46c4f;

  font-size: 12px;
  font-weight: 800;
}

.child-remove-row {
  width: 38px;
  height: 38px;

  border: 0;
  border-radius: 11px;

  background: #fff0ef;

  color: var(--avila-coral);

  font-size: 20px;
  line-height: 1;
}

.child-add-row {
  margin-top: 5px;

  padding: 9px 13px;

  border: 1px dashed var(--avila-sage);
  border-radius: 11px;

  background: #f7faf6;

  color: var(--avila-sage-dark);

  font-size: 12px;
  font-weight: 700;
}

/* ACTION */

.child-form-actions {
  display: flex;
  justify-content: flex-end;

  gap: 10px;

  padding-bottom: 10px;
}

.child-form-cancel,
.child-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 10px 18px;

  border-radius: 12px;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
}

.child-form-cancel {
  border: 1px solid #e8e5df;

  background: #ffffff;

  color: var(--avila-text);
}

.child-form-submit {
  border: 0;

  background: var(--avila-sage-dark);

  color: #ffffff;
}

/* MOBILE */

@media (max-width: 767.98px) {
  .child-form-section {
    padding: 17px;
  }

  .child-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .child-form-full {
    grid-column: auto;
  }

  .material-row {
    grid-template-columns:
      minmax(0, 1fr)
      38px;
  }

  .material-row input:nth-child(2) {
    grid-column: 1 / 2;
  }

  .material-row .child-remove-row {
    grid-column: 2;
    grid-row: 1;
  }

  .step-row {
    grid-template-columns:
      32px
      minmax(0, 1fr)
      38px;
  }

  .child-form-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;
  }
}

.child-detail-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
}

.child-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;

  background: var(--avila-sage-dark);

  border-radius: 12px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
}

.child-edit-button:hover {
  color: #ffffff;
  opacity: 0.9;
}

@media (max-width: 767.98px) {
  .child-detail-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .child-edit-button {
    width: 100%;
  }
}

/* =========================================================
   RUANG ANAK - ACTIVITY STATUS
   ========================================================= */

.child-detail-family-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.child-status-form {
  margin: 0;
}

.child-status-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  padding: 9px 15px;

  border-radius: 12px;

  font-size: 13px;
  font-weight: 700;
}

.child-status-button.is-inactive {
  border: 1px solid #f2c9c5;

  background: #fff5f4;

  color: var(--avila-coral);
}

.child-status-button.is-active {
  border: 1px solid #cfe1cd;

  background: #f4f9f3;

  color: var(--avila-sage-dark);
}

@media (max-width: 767.98px) {
  .child-detail-family-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    width: 100%;
  }

  .child-status-form,
  .child-status-button,
  .child-edit-button {
    width: 100%;
  }
}

/* =========================================================
   RUANG ANAK - WORKSHEET LIST
   ========================================================= */

.worksheet-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 24px;
}

.worksheet-category-button {
  padding: 9px 16px;

  border: 1px solid #e5e8e5;
  border-radius: 999px;

  background: #ffffff;
  color: var(--avila-muted);

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

.worksheet-category-button:hover,
.worksheet-category-button.active {
  border-color: var(--avila-sage);

  background: #eef5ec;
  color: var(--avila-sage-dark);
}

/* GRID */

.worksheet-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

/* CARD */

.worksheet-card {
  overflow: hidden;

  border: 1px solid #eef0ed;
  border-radius: 20px;

  background: #ffffff;

  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.06);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.worksheet-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 12px 30px rgba(52, 66, 58, 0.1);
}

/* PREVIEW */

.worksheet-card-preview {
  height: 180px;

  overflow: hidden;

  background: #fff7ea;
}

.worksheet-card-preview img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.worksheet-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  font-size: 46px;

  background: linear-gradient(135deg, #fff8e9, #f3f8ef);
}

/* BODY */

.worksheet-card-body {
  padding: 18px;
}

.worksheet-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 10px;
}

.worksheet-category-badge {
  padding: 5px 9px;

  border-radius: 999px;

  background: #eef5ec;
  color: var(--avila-sage-dark);

  font-size: 11px;
  font-weight: 700;
}

.worksheet-age {
  font-size: 12px;
  font-weight: 600;

  color: var(--avila-muted);
}

.worksheet-card h3 {
  margin: 0 0 7px;

  font-size: 17px;
  font-weight: 700;

  color: var(--avila-text);
}

.worksheet-card p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 13px;
  line-height: 1.55;
}

/* TABLET */

@media (max-width: 991.98px) {
  .worksheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 767.98px) {
  .worksheet-category-list {
    flex-wrap: nowrap;

    overflow-x: auto;

    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 4px;

    scrollbar-width: none;
  }

  .worksheet-category-list::-webkit-scrollbar {
    display: none;
  }

  .worksheet-category-button {
    flex: 0 0 auto;
  }

  .worksheet-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .worksheet-card {
    display: grid;

    grid-template-columns: 110px 1fr;
  }

  .worksheet-card-preview {
    height: 100%;
    min-height: 145px;
  }

  .worksheet-card-body {
    padding: 15px;
  }

  .worksheet-card h3 {
    font-size: 15px;
  }

  .worksheet-card p {
    display: -webkit-box;

    overflow: hidden;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* =========================================================
   RUANG ANAK - WORKSHEET DETAIL
   ========================================================= */

.worksheet-detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 32px;

  padding: 24px;

  border: 1px solid #eef0ed;
  border-radius: 24px;

  background: #ffffff;

  box-shadow: 0 10px 30px rgba(52, 66, 58, 0.06);
}

.worksheet-detail-preview {
  overflow: hidden;

  min-height: 420px;

  border-radius: 18px;

  background: #fff8e9;
}

.worksheet-detail-preview img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.worksheet-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 420px;

  font-size: 72px;

  background: linear-gradient(135deg, #fff8e9, #f3f8ef);
}

.worksheet-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 18px 6px;
}

.worksheet-detail-info h2 {
  margin: 10px 0 12px;

  color: var(--avila-text);

  font-size: 28px;
  font-weight: 700;
}

.worksheet-detail-description {
  max-width: 650px;

  margin: 0;

  color: var(--avila-muted);

  line-height: 1.7;
}

.worksheet-detail-note {
  display: flex;
  gap: 10px;

  margin-top: 24px;
  padding: 14px 16px;

  border-radius: 14px;

  background: #fff8e9;
}

.worksheet-detail-note p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 13px;
  line-height: 1.6;
}

.worksheet-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  margin-top: 24px;
  padding: 11px 18px;

  border-radius: 12px;

  background: var(--avila-sage-dark);
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  transition: 0.2s ease;
}

.worksheet-download-button:hover {
  transform: translateY(-1px);

  color: #ffffff;

  opacity: 0.92;
}

@media (max-width: 767.98px) {
  .worksheet-detail-card {
    grid-template-columns: 1fr;

    gap: 18px;

    padding: 16px;
  }

  .worksheet-detail-preview {
    min-height: 300px;
  }

  .worksheet-detail-placeholder {
    min-height: 300px;

    font-size: 56px;
  }

  .worksheet-detail-info {
    padding: 4px 0;
  }

  .worksheet-detail-info h2 {
    font-size: 22px;
  }

  .worksheet-download-button {
    width: 100%;
  }
}

/* =========================================================
   RUANG ANAK - DASHBOARD WORKSHEET
   ========================================================= */

.child-dashboard-worksheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.child-dashboard-worksheet-card {
  display: grid;
  grid-template-columns: 110px 1fr;

  overflow: hidden;

  min-height: 130px;

  border: 1px solid #eef0ed;
  border-radius: 18px;

  background: #ffffff;

  color: inherit;
  text-decoration: none;

  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.child-dashboard-worksheet-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 28px rgba(52, 66, 58, 0.09);
}

.child-dashboard-worksheet-preview {
  overflow: hidden;

  background: #fff8e9;
}

.child-dashboard-worksheet-preview img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.child-dashboard-worksheet-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  min-height: 130px;

  background: linear-gradient(135deg, #fff8e9, #f3f8ef);

  font-size: 34px;
}

.child-dashboard-worksheet-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  padding: 14px;
}

.child-dashboard-worksheet-body h3 {
  margin: 8px 0 5px;

  color: var(--avila-text);

  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .child-dashboard-worksheet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .child-dashboard-worksheet-card {
    grid-template-columns: 90px 1fr;

    min-height: 115px;
  }

  .child-dashboard-worksheet-placeholder {
    min-height: 115px;

    font-size: 30px;
  }
}

/* =========================================================
   RUANG ANAK - FEATURED ACTIVITIES
   ========================================================= */

.child-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* CARD */

.child-featured-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  min-height: 155px;
  padding: 18px;

  border: 1px solid #eef0ed;
  border-radius: 18px;

  background: #ffffff;

  color: inherit;
  text-decoration: none;

  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.child-featured-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 28px rgba(52, 66, 58, 0.09);

  color: inherit;
}

/* ICON */

.child-featured-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 48px;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background: #fff1e7;

  font-size: 24px;
}

/* CONTENT */

.child-featured-content {
  flex: 1;
  min-width: 0;
}

/* CATEGORY + DURATION */

.child-featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 8px;
}

.child-featured-category {
  padding: 4px 8px;

  border-radius: 999px;

  background: #eef5ec;
  color: var(--avila-sage-dark);

  font-size: 11px;
  font-weight: 700;
}

.child-featured-duration {
  color: var(--avila-muted);

  font-size: 12px;
  font-weight: 600;
}

/* TITLE */

.child-featured-content h3 {
  margin: 0 0 5px;

  color: var(--avila-text);

  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

/* AGE */

.child-featured-age {
  display: block;

  color: var(--avila-muted);

  font-size: 12px;
  font-weight: 600;
}

/* DESCRIPTION */

.child-featured-content p {
  display: -webkit-box;

  overflow: hidden;

  margin: 8px 0 0;

  color: var(--avila-muted);

  font-size: 13px;
  line-height: 1.5;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .child-featured-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .child-featured-grid {
    gap: 12px;
  }

  .child-featured-card {
    min-height: auto;
    padding: 15px;

    border-radius: 16px;
  }

  .child-featured-icon {
    flex-basis: 44px;

    width: 44px;
    height: 44px;

    font-size: 21px;
  }

  .child-featured-content h3 {
    font-size: 15px;
  }

  .child-featured-content p {
    font-size: 12px;
  }
}

/* =========================================================
   RUANG ANAK - SCHEDULE ACTIVITY BUTTON
   ========================================================= */

.child-schedule-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 10px 16px;

  background: #eef5ec;
  border: 1px solid #dce9d8;
  border-radius: 12px;

  color: #55745a;
  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.child-schedule-button:hover {
  background: #e3efe0;
  border-color: #c9dec4;

  color: #46634b;
  transform: translateY(-1px);
}

/* MOBILE */

@media (max-width: 767.98px) {
  .child-schedule-button {
    width: 100%;

    margin-top: 10px;
    padding: 11px 14px;
  }
}

/* =========================================================
   RUANG ANAK - ACTIVITY SCHEDULE
   ========================================================= */

.activity-schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;

  margin-top: 24px;
}

/* =========================================================
   ACTIVITY INFO
   ========================================================= */

.activity-schedule-info {
  padding: 24px;

  background: #fff8f3;
  border: 1px solid #f5e9e0;
  border-radius: 20px;
}

.activity-schedule-label {
  display: inline-flex;

  margin-bottom: 12px;
  padding: 5px 10px;

  background: #ffe9da;
  border-radius: 999px;

  color: #b76d48;

  font-size: 11px;
  font-weight: 700;
}

.activity-schedule-info h2 {
  margin: 0 0 10px;

  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.activity-schedule-info p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 13px;
  line-height: 1.6;
}

.activity-schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 18px;
}

.activity-schedule-meta span {
  padding: 6px 10px;

  background: #ffffff;
  border: 1px solid #eee5de;
  border-radius: 999px;

  color: var(--avila-muted);

  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   SCHEDULE CARD
   ========================================================= */

.activity-schedule-card {
  padding: 24px;

  background: #ffffff;
  border: 1px solid #eef0ed;
  border-radius: 20px;

  box-shadow: 0 8px 28px rgba(52, 66, 58, 0.05);
}

.activity-schedule-card-header {
  margin-bottom: 20px;
}

.activity-schedule-card-header h3 {
  margin: 0 0 4px;

  font-size: 18px;
  font-weight: 700;
}

.activity-schedule-card-header p {
  margin: 0;

  color: var(--avila-muted);

  font-size: 13px;
}

/* =========================================================
   SCHEDULE ROW
   ========================================================= */

#scheduleRows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.8fr) 40px;
  gap: 12px;
  align-items: end;

  padding: 14px;

  background: #fafbf9;
  border: 1px solid #edf0eb;
  border-radius: 14px;
}

.activity-schedule-field label,
.activity-schedule-note label {
  display: block;

  margin-bottom: 6px;

  color: var(--avila-text);

  font-size: 12px;
  font-weight: 700;
}

.activity-schedule-field .form-control,
.activity-schedule-note .form-control {
  min-height: 42px;

  border: 1px solid #dfe5dd;
  border-radius: 10px;

  font-size: 13px;

  box-shadow: none;
}

.activity-schedule-field .form-control:focus,
.activity-schedule-note .form-control:focus {
  border-color: #afc9ac;

  box-shadow: 0 0 0 3px rgba(112, 146, 112, 0.1);
}

/* DELETE ROW */

.activity-schedule-remove {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 42px;

  padding: 0;

  background: #fff1f0;
  border: 1px solid #f5d8d5;
  border-radius: 10px;

  color: #c96c64;

  font-size: 21px;
  line-height: 1;

  cursor: pointer;

  transition: 0.2s ease;
}

.activity-schedule-remove:hover:not(:disabled) {
  background: #ffe5e2;
}

.activity-schedule-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =========================================================
   ADD SCHEDULE
   ========================================================= */

.activity-add-schedule {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 14px;
  padding: 9px 14px;

  background: #eef5ec;
  border: 1px dashed #bcd1b8;
  border-radius: 10px;

  color: #55745a;

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}

.activity-add-schedule:hover {
  background: #e3efe0;
}

/* =========================================================
   NOTE
   ========================================================= */

.activity-schedule-note {
  margin-top: 24px;
}

.activity-schedule-note textarea {
  resize: vertical;
}

.activity-schedule-note small {
  display: block;

  margin-top: 6px;

  color: var(--avila-muted);

  font-size: 11px;
}

/* =========================================================
   SAVE
   ========================================================= */

.activity-schedule-submit {
  display: flex;
  justify-content: flex-end;

  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid #eef0ed;
}

.activity-schedule-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 11px 18px;

  background: #6f9271;
  border: 0;
  border-radius: 12px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.activity-schedule-save:hover {
  background: #607f62;
  transform: translateY(-1px);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .activity-schedule-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .activity-schedule-layout {
    gap: 16px;
    margin-top: 18px;
  }

  .activity-schedule-info,
  .activity-schedule-card {
    padding: 18px;
    border-radius: 16px;
  }

  .activity-schedule-info h2 {
    font-size: 18px;
  }

  .activity-schedule-row {
    grid-template-columns: 1fr 1fr 38px;
    gap: 8px;

    padding: 12px;
  }

  .activity-schedule-remove {
    width: 38px;
  }

  .activity-add-schedule {
    width: 100%;
  }

  .activity-schedule-submit {
    display: block;
  }

  .activity-schedule-save {
    width: 100%;
  }
}

/* MOBILE KECIL */

@media (max-width: 480px) {
  .activity-schedule-row {
    grid-template-columns: 1fr 38px;
  }

  .activity-schedule-field:first-child {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   RUANG ANAK - UPCOMING ACTIVITY SCHEDULE
   ========================================================= */

.child-upcoming-section {
  margin-top: 30px;
}

.child-upcoming-section .child-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 16px;
}

.child-upcoming-section .child-section-header h2 {
  margin: 0 0 4px;

  font-size: 18px;
  font-weight: 700;
}

.child-upcoming-section .child-section-header p {
  margin: 0;

  color: var(--avila-muted);
  font-size: 13px;
}

/* LIST */

.child-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ITEM */

.child-upcoming-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;

  padding: 14px 16px;

  background: #ffffff;
  border: 1px solid #eef0ed;
  border-radius: 16px;

  color: inherit;
  text-decoration: none;

  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.child-upcoming-item:hover {
  transform: translateY(-2px);

  border-color: #dce8d9;

  box-shadow: 0 8px 24px rgba(52, 66, 58, 0.07);

  color: inherit;
}

/* DATE */

.child-upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 58px;

  background: #eef5ec;
  border-radius: 13px;

  color: #55745a;
}

.child-upcoming-date strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.child-upcoming-date span {
  margin-top: 4px;

  font-size: 10px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CONTENT */

.child-upcoming-content {
  min-width: 0;
}

.child-upcoming-day {
  margin-bottom: 3px;

  color: #879487;

  font-size: 11px;
  font-weight: 600;
}

.child-upcoming-content h3 {
  margin: 0;

  color: var(--avila-text);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.child-upcoming-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;

  margin-top: 6px;
}

.child-upcoming-meta span {
  color: var(--avila-muted);

  font-size: 11px;
  font-weight: 600;
}

/* ARROW */

.child-upcoming-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  background: #f7f8f6;
  border-radius: 50%;

  color: #849384;

  font-size: 21px;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.child-upcoming-item:hover .child-upcoming-arrow {
  background: #eef5ec;
  transform: translateX(2px);
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.child-upcoming-empty {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 22px;

  background: #ffffff;
  border: 1px dashed #dce4da;
  border-radius: 16px;
}

.child-upcoming-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 54px;
  height: 54px;

  background: #fff3e9;
  border-radius: 15px;

  font-size: 24px;
}

.child-upcoming-empty h3 {
  margin: 0 0 4px;

  font-size: 14px;
  font-weight: 700;
}

.child-upcoming-empty p {
  margin: 0 0 8px;

  color: var(--avila-muted);

  font-size: 12px;
}

.child-upcoming-empty-link {
  color: #55745a;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;
}

.child-upcoming-empty-link:hover {
  text-decoration: underline;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .child-upcoming-section {
    margin-top: 24px;
  }

  .child-upcoming-item {
    grid-template-columns: 54px minmax(0, 1fr) 26px;
    gap: 11px;

    padding: 12px;
    border-radius: 14px;
  }

  .child-upcoming-date {
    min-height: 54px;
    border-radius: 12px;
  }

  .child-upcoming-date strong {
    font-size: 18px;
  }

  .child-upcoming-content h3 {
    font-size: 13px;
  }

  .child-upcoming-meta {
    gap: 5px 9px;
  }

  .child-upcoming-arrow {
    width: 26px;
    height: 26px;

    font-size: 18px;
  }

  .child-upcoming-empty {
    align-items: flex-start;

    padding: 16px;
  }

  .child-upcoming-empty-icon {
    width: 46px;
    height: 46px;

    font-size: 20px;
  }
}

/* =========================================================
   KALENDER KELUARGA
   ========================================================= */

.calendar-content {
  padding-bottom: 32px;
}

/* =========================================================
   CALENDAR TOOLBAR
   ========================================================= */

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-top: 24px;
  margin-bottom: 18px;
}

.calendar-current-month {
  text-align: center;
}

.calendar-current-month h2 {
  margin: 0;

  color: var(--avila-text);

  font-size: 22px;
  font-weight: 700;
}

.calendar-current-month span {
  display: block;

  margin-top: 3px;

  color: var(--avila-muted);

  font-size: 12px;
  font-weight: 500;
}

.calendar-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  background: #ffffff;
  border: 1px solid #e5eae3;
  border-radius: 11px;

  color: #55745a;
  text-decoration: none;

  font-size: 23px;
  line-height: 1;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.calendar-nav-button:hover {
  background: #eef5ec;
  border-color: #d5e3d2;

  color: #46634b;

  transform: translateY(-1px);
}

/* =========================================================
   CALENDAR CONTAINER
   ========================================================= */

.family-calendar {
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #e8ece6;
  border-radius: 18px;

  box-shadow: 0 6px 24px rgba(52, 66, 58, 0.04);
}

/* =========================================================
   WEEK DAYS
   ========================================================= */

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));

  background: #f7f9f6;

  border-bottom: 1px solid #e8ece6;
}

.calendar-weekdays > div {
  padding: 12px 8px;

  color: #718071;

  font-size: 11px;
  font-weight: 700;

  text-align: center;
}

/* =========================================================
   CALENDAR GRID
   ========================================================= */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  position: relative;

  min-width: 0;
  min-height: 118px;

  padding: 9px;

  background: #ffffff;

  border-right: 1px solid #eef1ec;
  border-bottom: 1px solid #eef1ec;
}

/*
 * Hilangkan border kanan setiap kolom Minggu.
 */
.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day-empty {
  background: #fbfcfa;
}

/* =========================================================
   DAY NUMBER
   ========================================================= */

.calendar-day-number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 27px;

  margin-bottom: 7px;

  color: #687368;

  font-size: 12px;
  font-weight: 700;

  border-radius: 50%;
}

/* TODAY */

.calendar-day-today {
  background: #fcfdfb;
}

.calendar-day-today .calendar-day-number {
  background: #6f9271;

  color: #ffffff;
}

/* =========================================================
   EVENTS
   ========================================================= */

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calendar-event {
  display: block;

  min-width: 0;

  padding: 6px 7px;

  border-radius: 8px;

  text-decoration: none;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

/* RUANG ANAK EVENT */

.calendar-event-child {
  background: #fff0e6;

  border-left: 3px solid #e7a678;

  color: #865c40;
}

.calendar-event-child:hover {
  background: #ffe8d8;

  color: #754d34;

  transform: translateX(1px);
}

.calendar-event-time {
  display: block;

  margin-bottom: 2px;

  font-size: 9px;
  font-weight: 800;
}

.calendar-event-title {
  display: block;

  overflow: hidden;

  font-size: 10px;
  font-weight: 700;

  line-height: 1.3;

  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =========================================================
   DESKTOP / TABLET WIDTH
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {
  .calendar-day {
    min-height: 100px;
    padding: 7px;
  }

  .calendar-event {
    padding: 5px;
  }

  .calendar-event-title {
    font-size: 9px;
  }
}

/* =========================================================
   KALENDER - MOBILE AGENDA
   ========================================================= */

.calendar-mobile-agenda {
  display: none;
}

@media (max-width: 767.98px) {
  /*
     * Desktop calendar grid tidak digunakan di mobile.
     */
  .family-calendar {
    display: none;
  }

  .calendar-toolbar {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .calendar-current-month h2 {
    font-size: 18px;
  }

  .calendar-nav-button {
    width: 36px;
    height: 36px;

    border-radius: 10px;
  }

  /*
     * Mobile agenda.
     */
  .calendar-mobile-agenda {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .calendar-agenda-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* DATE HEADER */

  .calendar-agenda-date {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .calendar-agenda-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    background: #eef5ec;
    border-radius: 12px;

    color: #55745a;
  }

  .calendar-agenda-date-box strong {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
  }

  .calendar-agenda-date-box span {
    margin-top: 3px;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
  }

  .calendar-agenda-date > div:last-child {
    display: flex;
    flex-direction: column;
  }

  .calendar-agenda-date > div:last-child strong {
    font-size: 13px;
    font-weight: 700;
  }

  .calendar-agenda-date > div:last-child span {
    margin-top: 2px;

    color: var(--avila-muted);

    font-size: 10px;
  }

  /* EVENTS */

  .calendar-agenda-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .calendar-agenda-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 10px;

    padding: 12px;

    background: #ffffff;
    border: 1px solid #eef0ed;
    border-radius: 14px;

    color: inherit;
    text-decoration: none;

    box-shadow: 0 4px 14px rgba(52, 66, 58, 0.04);
  }

  .calendar-agenda-time {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    background: #fff0e6;
    border-radius: 9px;

    color: #865c40;

    font-size: 11px;
    font-weight: 800;
  }

  .calendar-agenda-info {
    min-width: 0;
  }

  .calendar-agenda-info h3 {
    margin: 0;

    color: var(--avila-text);

    font-size: 13px;
    font-weight: 700;
  }

  .calendar-agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px;

    margin-top: 4px;
  }

  .calendar-agenda-meta span {
    color: var(--avila-muted);

    font-size: 10px;
    font-weight: 600;
  }

  .calendar-agenda-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #8b978b;

    font-size: 20px;
  }

  /* EMPTY */

  .calendar-agenda-empty {
    padding: 28px 18px;

    background: #ffffff;
    border: 1px dashed #dce4da;
    border-radius: 16px;

    text-align: center;
  }

  .calendar-agenda-empty > div {
    margin-bottom: 8px;

    font-size: 25px;
  }

  .calendar-agenda-empty h3 {
    margin: 0 0 4px;

    font-size: 14px;
    font-weight: 700;
  }

  .calendar-agenda-empty p {
    margin: 0;

    color: var(--avila-muted);

    font-size: 11px;
  }
}

/* =========================================================
   DASHBOARD - MOBILE CALENDAR SHORTCUT
   ========================================================= */

.dashboard-calendar-shortcut {
  display: none;
}

@media (max-width: 767.98px) {
  .dashboard-calendar-shortcut {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 11px;

    margin-top: 18px;
    margin-bottom: 18px;
    padding: 12px 14px;

    background: #ffffff;
    border: 1px solid #e8ece6;
    border-radius: 15px;

    color: inherit;
    text-decoration: none;

    box-shadow: 0 4px 16px rgba(52, 66, 58, 0.04);
  }

  .dashboard-calendar-shortcut-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    background: #eef5ec;
    border-radius: 12px;

    font-size: 20px;
  }

  .dashboard-calendar-shortcut-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
  }

  .dashboard-calendar-shortcut-content strong {
    color: var(--avila-text);

    font-size: 13px;
    font-weight: 700;
  }

  .dashboard-calendar-shortcut-content span {
    margin-top: 2px;

    color: var(--avila-muted);

    font-size: 10px;
  }

  .dashboard-calendar-shortcut-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #879487;

    font-size: 20px;
  }
}

/* =========================================================
   KALENDER - MEAL PLANNER EVENT
   ========================================================= */

.calendar-event-meal {
  background: #eef5ec;

  border-left: 3px solid #8fae8e;

  color: #55745a;
}

.calendar-event-meal:hover {
  background: #e3efe0;

  color: #46634b;

  transform: translateX(1px);
}

/* =========================================================
   KALENDER MOBILE - MEAL PLANNER
   ========================================================= */

@media (max-width: 767.98px) {
  .calendar-agenda-item-meal {
    border-color: #e3ebe0;
  }

  .calendar-agenda-meal-type {
    padding: 5px 6px;

    background: #eef5ec;

    color: #55745a;

    font-size: 9px;
    line-height: 1.2;

    text-align: center;
  }
}

/* ========================================
   USER PROFILE LINK
======================================== */

.user-profile-link {
  text-decoration: none;
  color: inherit;
}

.user-profile-link:hover {
  color: inherit;
}

/* ========================================
   SETTINGS
======================================== */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.settings-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(45, 55, 45, 0.06);
}

.settings-card:last-child {
  grid-column: 1 / -1;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.settings-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f4f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.settings-card-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 3px;
}

.settings-card-header p {
  margin: 0;
  font-size: 13px;
  color: #8a8f87;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.settings-field .form-control {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e8e1;
}

.settings-field .form-control:focus {
  border-color: #a8b89b;
  box-shadow: 0 0 0 3px rgba(168, 184, 155, 0.15);
}

.settings-field input[readonly] {
  background: #f7f8f5;
  color: #8a8f87;
}

.settings-field small {
  display: block;
  color: #9a9f97;
  font-size: 11px;
  margin-top: 6px;
}

.settings-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ========================================
   SETTINGS - MOBILE
======================================== */

@media (max-width: 767.98px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-card {
    padding: 20px;
    border-radius: 18px;
  }

  .settings-card:last-child {
    grid-column: auto;
  }

  .settings-card-header {
    margin-bottom: 20px;
  }

  .settings-action {
    justify-content: stretch;
  }

  .settings-action .btn-avila-primary {
    width: 100%;
  }
}

/* =========================================================
   ADMIN PANEL
========================================================= */

.admin-app {
  min-height: 100vh;
  display: flex;
  background: #f8f7f3;
}

/* Sidebar */

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px 20px;

  display: flex;
  flex-direction: column;
}

.admin-brand {
  display: flex;
  flex-direction: column;
  padding: 0 12px 28px;
}

.admin-brand-name {
  font-size: 26px;
  font-weight: 700;
}

.admin-brand-label {
  font-size: 12px;
  opacity: 0.55;
}

/* Navigation */

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;

  border-radius: 12px;

  color: #555;
  text-decoration: none;

  transition: 0.2s;
}

.admin-nav-item:hover {
  background: #f5f4ef;
  color: #333;
}

.admin-nav-item.active {
  background: #e7efe8;
  color: #405847;
  font-weight: 600;
}

/* Sidebar footer */

.admin-sidebar-footer {
  margin-top: auto;
}

.admin-back-link {
  display: block;

  padding: 12px;

  color: #777;
  text-decoration: none;
}

.admin-back-link:hover {
  color: #333;
}

/* Main */

.admin-main {
  flex: 1;
  min-width: 0;
}

/* Topbar */

.admin-topbar {
  min-height: 90px;

  padding: 20px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-topbar h1 {
  margin: 0;

  font-size: 24px;
  font-weight: 700;
}

.admin-topbar p {
  margin: 4px 0 0;

  font-size: 14px;
  color: #888;
}

/* Admin user */

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e7efe8;

  font-weight: 700;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-user-info strong {
  font-size: 14px;
}

.admin-user-info span {
  font-size: 12px;
  color: #999;
}

/* Content */

.admin-content {
  padding: 32px;
}

.admin-welcome {
  padding: 28px;

  background: #ffffff;
  border-radius: 18px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.admin-welcome h2 {
  margin-bottom: 8px;

  font-size: 22px;
}

.admin-welcome p {
  margin: 0;

  color: #777;
}

/* =========================================================
   ADMIN DASHBOARD STATS
========================================================= */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;

  margin-bottom: 24px;
}

.admin-stat-card {
  background: #ffffff;

  border-radius: 18px;
  padding: 22px;

  display: flex;
  align-items: center;
  gap: 16px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #e7efe8;

  font-size: 20px;
}

.admin-stat-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.admin-stat-card span {
  font-size: 13px;
  color: #888;
}

.admin-stat-card strong {
  margin-top: 3px;

  font-size: 26px;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   ADMIN USERS & FAMILIES
========================================================= */

.admin-section-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 24px;
}

.admin-section-header h2 {
  margin: 0 0 4px;

  font-size: 20px;
  font-weight: 700;
}

.admin-section-header p {
  margin: 0;

  font-size: 14px;
  color: #888;
}

/* Table */

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;

  border-collapse: collapse;
}

.admin-table th {
  padding: 13px 14px;

  border-bottom: 1px solid #eee;

  font-size: 12px;
  font-weight: 600;
  color: #888;

  text-align: left;
}

.admin-table td {
  padding: 15px 14px;

  border-bottom: 1px solid #f1f1f1;

  font-size: 14px;
  color: #555;

  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* User */

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-table-avatar {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e7efe8;

  font-size: 13px;
  font-weight: 700;
}

/* Status */

.admin-status {
  display: inline-flex;

  padding: 5px 10px;

  border-radius: 20px;

  font-size: 12px;
  font-weight: 600;

  background: #f1f1f1;
}

.admin-status-active {
  background: #e7f3e9;
  color: #46704e;
}

.admin-status-pending {
  background: #fff4d8;
  color: #94701c;
}

.admin-status-inactive {
  background: #f7e5e5;
  color: #985454;
}

/* Detail */

.admin-detail-link {
  text-decoration: none;

  font-size: 13px;
  font-weight: 600;

  color: #657c69;
}

.admin-detail-link:hover {
  text-decoration: underline;
}

.admin-empty {
  padding: 40px !important;

  text-align: center;

  color: #999 !important;
}

/* =========================================================
   ADMIN USER DETAIL
========================================================= */

.admin-back-page {
  display: inline-block;

  margin-bottom: 18px;

  color: #657c69;
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;
}

.admin-back-page:hover {
  text-decoration: underline;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-detail-heading {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 28px;
}

.admin-detail-avatar {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #e7efe8;

  font-size: 20px;
  font-weight: 700;
}

.admin-detail-heading h2 {
  margin: 0 0 7px;

  font-size: 20px;
}

.admin-detail-card-title {
  margin-bottom: 28px;
}

.admin-detail-card-title h2 {
  margin: 0 0 4px;

  font-size: 20px;
}

.admin-detail-card-title p {
  margin: 0;

  font-size: 13px;
  color: #888;
}

.admin-detail-list {
  display: flex;
  flex-direction: column;
}

.admin-detail-list > div {
  padding: 14px 0;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  border-bottom: 1px solid #f0f0f0;
}

.admin-detail-list > div:last-child {
  border-bottom: none;
}

.admin-detail-list span {
  font-size: 13px;
  color: #888;
}

.admin-detail-list strong {
  font-size: 14px;
  text-align: right;
}

.admin-detail-empty {
  padding: 24px;

  border-radius: 12px;

  background: #f8f7f3;

  font-size: 14px;
  color: #888;
}

@media (max-width: 900px) {
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ADMIN USER ACTIONS
========================================================= */

.admin-user-actions {
  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid #f0f0f0;
}

.admin-danger-button {
  border: none;
  border-radius: 12px;

  padding: 10px 18px;

  background: #f7e5e5;
  color: #985454;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.admin-danger-button:hover {
  background: #f1d5d5;
}

.admin-danger-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =========================================================
   ADMIN ACTIVATION LINK
========================================================= */

.admin-activation-box {
  margin-bottom: 20px;
  padding: 18px;

  background: #ffffff;

  border-radius: 16px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.admin-activation-box strong {
  display: block;
  margin-bottom: 3px;
}

.admin-activation-box p {
  margin: 0 0 12px;

  font-size: 13px;
  color: #888;
}

.admin-activation-box input {
  font-size: 13px;
}

/* =========================
   ACCOUNT ACTIVATION
========================= */

.activation-page {
  min-height: 100vh;
  margin: 0;
  background: #f7f4ee;
}

.activation-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.activation-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.activation-brand {
  margin-bottom: 28px;
}

.activation-brand img {
  max-width: 120px;
  height: auto;
}

.activation-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.activation-greeting {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.activation-description {
  color: #777;
  margin-bottom: 28px;
}

@media (max-width: 576px) {
  .activation-container {
    padding: 16px;
  }

  .activation-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .activation-card h1 {
    font-size: 24px;
  }
}

/* =========================
   ADMIN SUBSCRIPTIONS
========================= */

.admin-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: #777;
}

.admin-empty-state strong {
  display: block;
  color: #333;
  font-size: 16px;
  margin-bottom: 6px;
}

.admin-empty-state p {
  margin: 0;
}

/* =========================
   SUBSCRIPTION REQUIRED
========================= */

.subscription-required-page {
  min-height: 100vh;
  margin: 0;
  background: #f7f4ee;
}

.subscription-required-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.subscription-required-card {
  width: 100%;
  max-width: 520px;
  padding: 42px 36px;
  background: #ffffff;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.subscription-required-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

.subscription-required-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
}

.subscription-required-card p {
  color: #666;
  margin-bottom: 8px;
}

.subscription-required-note {
  margin-bottom: 28px !important;
}

@media (max-width: 576px) {
  .subscription-required-container {
    padding: 16px;
  }

  .subscription-required-card {
    padding: 32px 22px;
    border-radius: 20px;
  }

  .subscription-required-card h1 {
    font-size: 24px;
  }
}

/* ========================================
   AVILA DASHBOARD REDESIGN - STEP 1
   Quick actions
======================================== */

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dashboard-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  color: var(--avila-text);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(91, 112, 96, 0.14);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-action-card:hover {
  color: var(--avila-text);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(52, 66, 58, 0.09);
}

.dashboard-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  font-size: 21px;
  border-radius: 14px;
  background: #eef3eb;
}

.dashboard-action-card:nth-child(1) .dashboard-action-icon {
  background: #fff0e7;
}

.dashboard-action-card:nth-child(2) .dashboard-action-icon {
  background: #e9f3e9;
}

.dashboard-action-card:nth-child(3) .dashboard-action-icon {
  background: #fff4d9;
}

.dashboard-action-card:nth-child(4) .dashboard-action-icon {
  background: #f1eafa;
}

.dashboard-action-copy {
  display: block;
  min-width: 0;
}

.dashboard-action-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.dashboard-action-copy small {
  display: block;
  margin-top: 4px;
  color: var(--avila-muted, #788078);
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-modules-section {
  margin-top: 8px;
}

@media (max-width: 991.98px) {
  .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dashboard-action-grid {
    gap: 10px;
    margin-top: 14px;
  }

  .dashboard-action-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .dashboard-action-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-radius: 12px;
  }

  .dashboard-action-copy strong {
    font-size: 12px;
  }

  .dashboard-action-copy small {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-action-card {
    transition: none;
  }

  .dashboard-action-card:hover {
    transform: none;
  }
}

/* ========================================
   AVILA DASHBOARD - FINANCE OVERVIEW
======================================== */

.dashboard-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.dashboard-finance-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(91, 112, 96, 0.14);
  border-radius: 20px;
  box-shadow: 0 5px 18px rgba(52, 66, 58, 0.04);
}

.dashboard-finance-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.dashboard-finance-label {
  color: var(--avila-muted, #788078);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-finance-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  font-size: 21px;
  border-radius: 14px;
}

.dashboard-expense-icon {
  background: #fff0e7;
}

.dashboard-budget-icon {
  background: #edf4e9;
}

.dashboard-finance-amount {
  color: var(--avila-text, #304b40);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-finance-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--avila-text, #304b40);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-finance-link:hover {
  text-decoration: underline;
}

.dashboard-budget-track {
  overflow: hidden;
  width: 100%;
  height: 9px;
  background: #edf0eb;
  border-radius: 999px;
}

.dashboard-budget-track span {
  display: block;
  height: 100%;
  background: #8ca98a;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.dashboard-budget-detail,
.dashboard-budget-status {
  margin: 0;
  color: var(--avila-muted, #788078);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.dashboard-finance-overview {
  margin-top: 8px;
}

@media (max-width: 767.98px) {
  .dashboard-finance-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .dashboard-finance-card {
    padding: 18px;
    border-radius: 17px;
  }

  .dashboard-finance-amount {
    font-size: 25px;
  }
}

/* ========================================
   AVILA DASHBOARD - ROUNDED SVG ICONS
======================================== */

.avila-icon-svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-calendar-shortcut-icon,
.dashboard-action-icon,
.quick-access-icon,
.dashboard-finance-icon,
.summary-icon,
.schedule-icon {
  color: #55765f;
}

.dashboard-action-card:nth-child(1) .dashboard-action-icon,
.dashboard-expense-icon,
.summary-finance .summary-icon {
  color: #b96b4d;
}

.dashboard-action-card:nth-child(2) .dashboard-action-icon {
  color: #557e5e;
}

.dashboard-action-card:nth-child(3) .dashboard-action-icon,
.summary-meal .summary-icon {
  color: #a47b36;
}

.dashboard-action-card:nth-child(4) .dashboard-action-icon,
.summary-child .summary-icon {
  color: #8267a5;
}

.quick-access-wallet .quick-access-icon {
  color: #557e5e;
}

.quick-access-kitchen .quick-access-icon {
  color: #b96b4d;
}

.quick-access-child .quick-access-icon {
  color: #8267a5;
}

.dashboard-budget-icon {
  color: #557e5e;
}

.dashboard-calendar-shortcut-icon .avila-icon-svg,
.dashboard-action-icon .avila-icon-svg,
.quick-access-icon .avila-icon-svg,
.dashboard-finance-icon .avila-icon-svg,
.summary-icon .avila-icon-svg,
.schedule-icon .avila-icon-svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 767.98px) {
  .dashboard-action-icon .avila-icon-svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avila-icon-svg {
    transition: none;
  }
}

/* ========================================
   AVILA DASHBOARD - DUOTONE ICON POLISH
======================================== */

.avila-icon-svg .avila-icon-fill {
  fill: currentColor;
  fill-opacity: 0.16;
  stroke: none;
}

.dashboard-action-card:hover .dashboard-action-icon,
.quick-access-card:hover .quick-access-icon {
  filter: saturate(1.12);
}

.dashboard-action-icon,
.quick-access-icon,
.dashboard-finance-icon,
.summary-icon,
.schedule-icon,
.dashboard-calendar-shortcut-icon {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-action-icon,
  .quick-access-icon,
  .dashboard-finance-icon,
  .summary-icon,
  .schedule-icon,
  .dashboard-calendar-shortcut-icon {
    transition: none;
  }
}

/* AVILA DASHBOARD FAMILY ILLUSTRATION - V1 */
@media (min-width: 1280px) {
  .dashboard-main .app-topbar {
    position: relative;
  }

  .dashboard-main .app-topbar::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 165px;
    top: -18px;
    width: 200px;
    height: 94px;
    background-image: url("/avila/public/assets/images/background_mobile.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    pointer-events: none;
  }

  .dashboard-main .app-topbar > div:first-child,
  .dashboard-main .app-topbar > .user-profile {
    position: relative;
    z-index: 1;
  }
}

/* AVILA DASHBOARD FAMILY ILLUSTRATION - MOBILE */
.dashboard-family-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .dashboard-main .dashboard-family-mobile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 76px;
    margin: -8px 0 10px;
    overflow: hidden;
    pointer-events: none;
  }

  .dashboard-main .dashboard-family-mobile img {
    display: block;
    width: 170px;
    max-width: 55%;
    height: 76px;
    object-fit: contain;
    object-position: right center;
  }
}

/* AVILA MOBILE FAMILY HEADING ALIGNMENT V2 */
@media (max-width: 767.98px) {
  .dashboard-main .dashboard-quick-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .dashboard-main .dashboard-quick-heading > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .dashboard-main .dashboard-family-mobile {
    flex: 0 0 94px;
    width: 94px;
    height: 68px;
    margin: 0;
    overflow: hidden;
    justify-content: flex-end;
  }

  .dashboard-main .dashboard-family-mobile img {
    width: 100%;
    max-width: none;
    height: 68px;
    object-fit: contain;
    object-position: right center;
  }
}

/* AVILA FAMILY ILLUSTRATION - PROPORTION FIX */

/* Desktop: ilustrasi lebih besar, sisi samping sedikit terpotong */
@media (min-width: 1280px) {
  .dashboard-main .app-topbar::after {
    right: 155px;
    top: -25px;
    width: 230px;
    height: 120px;
    background-size: cover;
    background-position: center center;
  }
}

/* Mobile: keluarga lebih menonjol di samping judul Akses Cepat */
@media (max-width: 767.98px) {
  .dashboard-main .dashboard-family-mobile {
    flex: 0 0 124px;
    width: 124px;
    height: 74px;
  }

  .dashboard-main .dashboard-family-mobile img {
    width: 124px;
    max-width: none;
    height: 74px;
    object-fit: cover;
    object-position: center center;
  }
}

/* AVILA FAMILY MOBILE - NATURAL PROPORTIONS */
@media (max-width: 767.98px) {
  .dashboard-main .dashboard-family-mobile {
    flex-basis: 132px;
    width: 132px;
    height: 78px;
  }

  .dashboard-main .dashboard-family-mobile img {
    width: 132px;
    max-width: none;
    height: 78px;
    object-fit: contain;
    object-position: right center;
  }
}

/* AVILA SIDEBAR FAMILY DECORATION */
.sidebar-family-note {
  display: none;
}

@media (min-width: 768px) {
  .sidebar-family-note {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 16px 4px 14px;
    flex-shrink: 0;
    text-align: center;
  }

  .sidebar-family-note img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0 auto 8px;
    object-fit: contain;
  }

  .sidebar-family-note p {
    margin: 0;
    color: #668373;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
  }

  .sidebar-family-note p span {
    color: #f28b7c;
  }

  .app-sidebar .sidebar-bottom {
    margin-top: 0;
  }
}

/* AVILA NAV ICON COLORS - SAFE V1 */
/* Warna ikon saja: tidak mengubah layout atau ukuran navigasi. */

.app-sidebar .sidebar-nav > .sidebar-link:nth-child(1) .sidebar-icon {
  color: #528a68;
}

.app-sidebar .sidebar-nav > .sidebar-link:nth-child(2) .sidebar-icon {
  color: #d87554;
}

.app-sidebar .sidebar-nav > .sidebar-link:nth-child(3) .sidebar-icon {
  color: #b8812c;
}

.app-sidebar .sidebar-nav > .sidebar-link:nth-child(4) .sidebar-icon {
  color: #8d6ab5;
}

.app-sidebar .sidebar-nav > .sidebar-link:nth-child(5) .sidebar-icon {
  color: #4f9588;
}

.app-sidebar .sidebar-bottom > .sidebar-link .sidebar-icon {
  color: #718477;
}

.app-sidebar .sidebar-bottom form .sidebar-icon {
  color: #c47d68;
}

.mobile-bottom-nav > .mobile-nav-item:nth-child(1) .mobile-nav-icon {
  color: #528a68;
}

.mobile-bottom-nav > .mobile-nav-item:nth-child(2) .mobile-nav-icon {
  color: #d87554;
}

.mobile-bottom-nav > .mobile-nav-item:nth-child(3) .mobile-nav-icon {
  color: #b8812c;
}

.mobile-bottom-nav > .mobile-nav-item:nth-child(4) .mobile-nav-icon {
  color: #8d6ab5;
}

/* ========================================
   AVILA COLORFUL NAV ICONS V1
======================================== */

.app-sidebar .sidebar-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
}

.app-sidebar .sidebar-icon i {
  line-height: 1;
}

.app-sidebar .sidebar-icon-home {
  background: #e8f3e8;
  color: #4e8565;
}

.app-sidebar .sidebar-icon-wallet {
  background: #fff0e8;
  color: #cb704f;
}

.app-sidebar .sidebar-icon-kitchen {
  background: #fff3d9;
  color: #ae7b27;
}

.app-sidebar .sidebar-icon-child {
  background: #f1e8fc;
  color: #8b6ab5;
}

.app-sidebar .sidebar-icon-calendar {
  background: #e6f3ef;
  color: #4e8c80;
}

.app-sidebar .sidebar-icon-report {
  background: #edf2ee;
  color: #617b68;
}

.app-sidebar .sidebar-icon-settings {
  background: #edf2ee;
  color: #617b68;
}

.app-sidebar .sidebar-icon-logout {
  background: #fff0e8;
  color: #cb704f;
}

.mobile-bottom-nav .mobile-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav .mobile-nav-icon i {
  line-height: 1;
}

/* AVILA FAMILY ILLUSTRATION - FINAL PROPORTION TUNING */

/* Desktop */
@media (min-width: 1280px) {
  .dashboard-main .app-topbar::after {
    background-size: contain;
    background-position: center center;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .dashboard-main .dashboard-family-mobile {
    flex-basis: 140px;
    width: 140px;
    height: 84px;
  }

  .dashboard-main .dashboard-family-mobile img {
    width: 140px;
    max-width: none;
    height: 84px;
    object-fit: contain;
    object-position: right center;
  }
}

/* =========================================
   CHILD ACTIVITY THUMBNAIL
========================================= */

.child-activity-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 170px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff3e8;
  margin: 14px 0 16px;
  flex-shrink: 0;
  align-self: stretch;
}

.child-activity-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.child-activity-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: #fff3e8;
}

/* =========================================
   CHILD ACTIVITY DETAIL THUMBNAIL
========================================= */

.child-detail-hero-icon.child-detail-hero-thumbnail {
  overflow: hidden;
  padding: 0;
}

.child-detail-hero-thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   CERITA ANAK - VIDEO PLAYER
========================================= */

.story-player-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.story-player-heading {
  margin-bottom: 18px;
}

.story-player-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: #e8f5ed;
  color: #28764d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.story-player-heading h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.story-player-heading p {
  margin: 0;
  color: #718096;
  line-height: 1.6;
}

.story-player-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.story-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.story-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.story-player-meta span {
  padding: 7px 12px;
  border-radius: 20px;
  background: #f3f5f7;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 768px) {
  .story-player-section {
    padding: 12px 0;
  }

  .story-player-heading h3 {
    font-size: 19px;
  }

  .story-player-frame {
    border-radius: 12px;
  }
}

/* =========================================
   CERITA ANAK - CATALOG
========================================= */

.story-catalog {
  width: 100%;
  padding: 12px 0 30px;
}

.story-catalog-heading {
  margin-bottom: 24px;
}

.story-catalog-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #398064;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.story-catalog-heading h2 {
  margin: 0 0 8px;
  color: #24483d;
  font-size: 24px;
  font-weight: 700;
}

.story-catalog-heading p {
  margin: 0;
  color: #718096;
  line-height: 1.6;
}

.story-catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.story-search-wrapper {
  width: 100%;
  max-width: 420px;
}

.story-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e2e9e4;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #334155;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.story-search-input:focus {
  border-color: #6da88b;
  box-shadow: 0 0 0 3px rgba(78, 145, 108, 0.12);
}

.story-search-input::placeholder {
  color: #a0aab5;
}

.story-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-filter-chip {
  padding: 8px 15px;
  border: 1px solid #e5ebe6;
  border-radius: 20px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-filter-chip:hover {
  border-color: #9fc5ad;
  color: #347354;
}

.story-filter-chip.is-active {
  border-color: #dceee1;
  background: #e8f3eb;
  color: #28764d;
}

.story-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9eee9;
  border-radius: 15px;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(35, 70, 52, 0.08);
}

.story-card[hidden],
.story-empty-state[hidden] {
  display: none !important;
}

.story-card-thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f1f5f2;
}

.story-card-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #28764d;
  font-size: 10px;
  font-weight: 700;
}

.story-card-body {
  padding: 16px;
}

.story-card-body h3 {
  margin: 0 0 8px;
  color: #29483e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.story-card-body p {
  min-height: 42px;
  margin: 0 0 16px;
  color: #7b8794;
  font-size: 12px;
  line-height: 1.6;
}

.story-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.story-card-meta span {
  padding: 6px 9px;
  border-radius: 20px;
  background: #f3f6f4;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.story-empty-state {
  padding: 45px 20px;
  text-align: center;
}

.story-empty-icon {
  margin-bottom: 12px;
  font-size: 30px;
}

.story-empty-state h3 {
  margin: 0 0 8px;
  color: #29483e;
  font-size: 17px;
}

.story-empty-state p {
  margin: 0;
  color: #87929e;
  font-size: 13px;
}

@media (max-width: 992px) {
  .story-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .story-catalog {
    padding-top: 8px;
  }

  .story-catalog-heading h2 {
    font-size: 21px;
  }

  .story-search-wrapper {
    max-width: none;
  }

  .story-filter-list {
    gap: 7px;
  }

  .story-filter-chip {
    padding: 7px 12px;
    font-size: 11px;
  }

  .story-catalog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .story-card-body {
    padding: 14px;
  }
}

/* CERITA ANAK - CLICKABLE CARD */

.story-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.story-card-link:focus-visible {
  outline: 3px solid #6da88b;
  outline-offset: 3px;
}
