a, h1, h2, h3, h4, h5, h6 span, hgroup, select, input, textarea, button, table, th, td, ul, ol, li, dl, dt, dd, form, fieldset, legend, p, input, figure, figcaption, header, footer, nav, section, article, aside, main, menu, video, canvas, progress, summary, details, dialog, menuitem, button, span , div {
    font-family: "IBM Plex Sans Arabic", "tahoma" !important;


    /* font-family: 'Noto Kufi Arabic', tahoma; */
}

/* body > div#app {
    min-width: 100%;
} */

th, td {
    text-align: right !important;;
}

.menu-item-detials img {
    width: 16px;
    display: inline-block;
    margin-left: .25rem;
  }
  
  .menu-item-detials {
    display: flex;
    gap: .75rem;
  }
  
  .menu-item-detials > span {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
  }
  .menus-item-card  {
    /* background: #f8f8f8; */
    padding: 16px;
    border-radius: 6px;
    border: 1px dotted #ddd;
}
.menu-item-title {
    font-size: 18px;
    margin-bottom: .5rem;
}

.menus-item-card img {
    border-radius: 5px;
}

.default-logo {
    max-height: 54px;
}

.image-overlay-text-container img {
    display: block;
    width: 100%;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
    min-height: 0;
}

.image-overlay-text-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.image-overlay-text-container:after {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    background: linear-gradient(0deg, #333333b0, transparent);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.3s;
}

.image-overlay-text-container .overlay {
    position: absolute;
    bottom: 0px;
    z-index: 10;
    width: 100%;
    bottom: 16px;
    left: 0px;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease 0.2s;
   
}
.image-overlay-text-container:hover:after {
    opacity: 1;

} 
.image-overlay-text-container:hover .overlay{
    opacity: 1;
    transform: translateY(0);
}



.v-btn__content{
    letter-spacing: 0px;
  }
  

  .site-logo{
    max-width: 100%;

    object-fit: contain;
  }

  .icon-image {
    width: 32px;
    /* height: 32px; */
    object-fit: contain;
    object-position: center;
}

img.table-thumbnail {
    width: 48px;
    aspect-ratio: 1;
    object-fit: contain;
}

.input-item {
    margin: 1rem 0px;
}
.v-selection-control .v-label {
    color: #111;
}


.dropdown-menu-button {
    /* background: transparent !important; */
    color: #333 !important;
    border: 0px solid #ccc !important;
    /* border-bottom: 1px solid #ccc !important; */
    /* border-radius: 0px !important; */
    width: 100%;
}



.bootstrap-datetimepicker-widget.dropdown-menu.usetwentyfour {
    position: absolute;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 2px 64px 3px #eee;
    border-radius: 5px;
    border: 1px solid #ddd;
  }
  
  .datepicker tbody tr>td span.hour.active, .datepicker tbody tr>td span.hour.active.focused:hover, .datepicker tbody tr>td span.hour.active:hover, .datepicker tbody tr>td span.hour.focused, .datepicker tbody tr>td span.hour.focused:hover, .datepicker tbody tr>td span.minute.active, .datepicker tbody tr>td span.minute.active.focused:hover, .datepicker tbody tr>td span.minute.active:hover, .datepicker tbody tr>td span.minute.focused, .datepicker tbody tr>td span.minute.focused:hover, .datepicker tbody tr>td span.month.active, .datepicker tbody tr>td span.month.active.focused:hover, .datepicker tbody tr>td span.month.active:hover, .datepicker tbody tr>td span.month.focused, .datepicker tbody tr>td span.month.focused:hover, .datepicker tbody tr>td span.year.active, .datepicker tbody tr>td span.year.active.focused:hover, .datepicker tbody tr>td span.year.active:hover, .datepicker tbody tr>td span.year.focused, .datepicker tbody tr>td span.year.focused:hover{
    background : var(--color-primary) !important;
  }
  
  .datepicker-container {
    position: relative;
  }

  
  .image-overlay-text-container.shown .overlay {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay-text-container.shown:after {
    opacity: 1;
}
.border-green {
    border-color: #8de991;
}

.border-orange {
    border-color: #FFC107;
}
.coming-soon-component {
    background: #fff;
    box-shadow: 1px 4px 10px #eee;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.coming-soon-component h2 {
    color: #555;
    font-size: 2em;
    margin-top: 3rem;
}

.lottie-container dotlottie-player {
    margin: 1rem  auto;
    width: 80%;
}



.website-link-item {
    display: block;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 6px 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.website-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: white;
    text-decoration: none;
}

.website-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.website-link-item:hover::before {
    transform: translateX(100%);
}

.website-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.website-link-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.website-link-text {
    flex: 1;
    min-width: 0;
}

.website-link-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.rating-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    min-width: 0;
    overflow: hidden;
}

.rating-item .item-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rating-item .item-header img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.rating-item .item-header > div {
    min-width: 0;
    flex: 1;
}

.rating-item .item-header h4 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    overflow-wrap: anywhere;
}

.rating-item p {
    margin: 0;
    color: #4b5563;
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.website-link-subtitle {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.website-link-arrow {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.website-link-item:hover .website-link-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Dark mode support */
.dark .website-link-item {
    background: linear-gradient(135deg, #1a365d 0%, #2a4a6b 100%);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.dark .website-link-item:hover {
    background: linear-gradient(135deg, #2a4a6b 0%, #1a365d 100%);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
}

/* Animation for pulse effect */
@keyframes websitePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    }
}

.website-link-item {
    animation: websitePulse 3s ease-in-out infinite;
}

.website-link-item:hover {
    animation: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .website-link-item {
        margin: 6px 8px;
        padding: 10px;
    }

    .website-link-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .website-link-title {
        font-size: 13px;
    }

    .website-link-subtitle {
        font-size: 10px;
    }
}

/* ==========================================================================
   Sidebar navigation - links, active state, groups, scrolling & mobile
   ========================================================================== */

.sidebar-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.sidebar-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.045);
    transform: translateX(-1px);
}

.dark .sidebar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.sidebar-nav-link:focus-visible {
    outline: 2px solid var(--tw-primary);
    outline-offset: 2px;
}

.sidebar-nav-link-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 2px;
    width: 3px;
    border-radius: 4px;
    background-color: var(--tw-primary);
    opacity: 0;
    transform: scaleY(.3);
    transition: opacity .18s ease, transform .18s ease;
}

.sidebar-nav-link-active {
    background-color: var(--tw-primary-light);
}

.sidebar-nav-link-active:hover {
    background-color: var(--tw-primary-light);
    transform: none;
}

.sidebar-nav-link-active .sidebar-nav-link-indicator {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-nav-link-icon i {
    transition: color .18s ease, transform .18s ease;
}

.sidebar-nav-link:hover .sidebar-nav-link-icon i {
    transform: scale(1.05);
}

/* Collapsible sidebar groups (accordion) - expanded by default */
.sidebar-nav-group {
    margin-top: 2px;
}

.sidebar-nav-group-toggle {
    min-height: 34px;
    transition: background-color .15s ease;
}

.sidebar-nav-group-toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.dark .sidebar-nav-group-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-group-arrow i {
    transition: transform .2s ease;
}

.sidebar-nav-group.show > .sidebar-nav-group-toggle .sidebar-nav-group-arrow i {
    transform: rotate(180deg);
}

.sidebar-nav-group.show > .sidebar-nav-group-toggle .sidebar-nav-group-title,
.sidebar-nav-group.active > .sidebar-nav-group-toggle .sidebar-nav-group-title {
    color: var(--tw-primary);
}

.sidebar-nav-group-body {
    padding: 2px 0 4px 0;
}

/* Keep collapsed groups hidden even after Splade swaps the DOM */
.sidebar-nav-group:not(.show):not(.transitioning) > .menu-accordion,
.sidebar-nav-group:not(.show):not(.transitioning) > .sidebar-nav-group-body {
    display: none !important;
    height: auto !important;
    overflow: hidden !important;
}

.sidebar-nav-group.show > .menu-accordion,
.sidebar-nav-group.show > .sidebar-nav-group-body,
.sidebar-nav-group.transitioning > .menu-accordion,
.sidebar-nav-group.transitioning > .sidebar-nav-group-body {
    display: flex !important;
    flex-direction: column;
}

.sidebar-nav-group-body .sidebar-nav-link {
    padding-right: 20px;
}

/* Sidebar header on mobile: fixed height, clean border */
.sidebar-header .default-logo,
.sidebar-header .site-logo {
    max-width: min(168px, 62vw);
}

@media (max-width: 1023px) {
    .sidebar {
        width: min(280px, 85vw) !important;
    }
}

/* Keep the sidebar menu scrollable without relying on Metronic JS height */
#sidebar {
    max-height: 100vh;
}

#sidebar_content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#sidebar_scrollable,
.sidebar-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Slim, unobtrusive scrollbar for the sidebar menu */
.sidebar-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .45) transparent;
}

.sidebar-scrollable::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, .45);
    border-radius: 10px;
}

.sidebar-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

/* Comfortable, still-compact tap targets on touch/mobile screens */
@media (max-width: 1023px) {
    .sidebar-nav-link {
        min-height: 40px;
        padding: 8px 12px;
    }

    .sidebar-nav-group-toggle {
        min-height: 38px;
    }

    .menu-title {
        font-size: .875rem;
    }
}

/* Backdrop blur for the mobile drawer overlay */
.drawer-backdrop {
    backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-nav-link,
    .sidebar-nav-link-indicator,
    .sidebar-nav-link-icon i,
    .website-link-item {
        transition: none !important;
        animation: none !important;
    }
}

/* Separator styles */
.menu-separator {
    padding: 6px 20px;
}

.separator-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(156, 163, 175, 0.3), transparent);
    border-radius: 1px;
}

.dark .separator-line {
    background: linear-gradient(90deg, transparent, rgba(75, 85, 99, 0.4), transparent);
}



/* Links Management - Ultra Compact Professional Design */
.link-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.link-card:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.link-card-header {
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
}

.link-card-header:hover {
    background: #f3f4f6;
}

.link-card-header h3 {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
}

.link-card-body {
    padding: 0.625rem 0.75rem;
    background: #ffffff;
}

.link-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 80px 120px;
    gap: 0.5rem;
    align-items: center;
}

.link-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.link-info-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.link-info-value {
    font-size: 0.8rem;
    color: #1f2937;
    word-break: break-word;
    line-height: 1.3;
}

.child-link-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-right: 2px solid #3b82f6;
    border-radius: 4px;
    padding: 0.5rem 0.625rem;
    margin-bottom: 0.375rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-link-card:hover {
    background: white;
    border-right-color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.child-link-card:last-child {
    margin-bottom: 0;
}

.child-link-card h5 {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.2;
}

.collapse-icon {
    transition: transform 0.25s ease;
    display: inline-block;
    font-size: 0.875rem;
}

.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.children-container {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 1;
}

.children-container.collapsed {
    max-height: 0;
    opacity: 0;
}

.children-container h4 {
    font-size: 0.75rem;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.action-buttons {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    min-width: auto;
}

.action-buttons .btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .link-card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0.625rem;
        gap: 0.4rem;
    }

    .link-info-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .action-buttons {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .child-link-card {
        padding: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

.expand-all-btn {
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Status Toggle Switch - Compact */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

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

.switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s;
    border-radius: 20px;
}

.switch-label:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.switch input[type="checkbox"]:checked + .switch-label {
    background-color: #3b82f6;
}

.switch input[type="checkbox"]:checked + .switch-label:before {
    transform: translateX(20px);
}

.switch input[type="checkbox"]:focus + .switch-label {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Status label styling */
.action-buttons .text-xs {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Badge sizing improvements */
.badge-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

/* Orphan links warning */
.link-card[style*="border-color: #f59e0b"] {
    border-width: 2px;
}

.link-card[style*="border-color: #f59e0b"] .link-card-header {
    background: #fffbeb;
}

.link-card[style*="border-color: #f59e0b"] .link-card-header:hover {
    background: #fef3c7;
}





.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.survey-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.survey-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.survey-stat-card {
    background: linear-gradient(135deg, var(--bg-color-start), var(--bg-color-end));
    border: 1px solid var(--border-color);
}

.survey-stat-card.blue {
    --bg-color-start: #eff6ff;
    --bg-color-end: #dbeafe;
    --border-color: #bfdbfe;
}

.survey-stat-card.green {
    --bg-color-start: #f0fdf4;
    --bg-color-end: #dcfce7;
    --border-color: #bbf7d0;
}

.availability-indicator {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.action-btn {
    transition: all 0.2s ease-in-out;
}

.action-btn:hover {
    transform: translateY(-1px);
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    .survey-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .survey-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Enhanced tooltips */
.tooltip-trigger {
    position: relative;
}

/* Status indicators */
.status-active {
    background-color: #10b981;
}

.status-inactive {
    background-color: #6b7280;
}

.status-draft {
    background-color: #f59e0b;
}

/* Menu Builder - Modern Interactive Redesign */
.menu-parent-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-parent-card:hover {
    border-color: #3b82f6 !important;
}

.menu-parent-header {
    transition: background-color 0.2s ease, border-radius 0.2s ease;
}

.menu-parent-header.collapsed {
    border-radius: 12px;
}

.collapse-trigger-btn {
    transition: transform 0.25s ease, background-color 0.2s ease;
}

.menu-parent-header:hover .collapse-trigger-btn {
    border-color: #3b82f6;
    color: #3b82f6;
}

.menu-child-item {
    transition: all 0.2s ease;
}

.menu-child-item:hover {
    border-color: #93c5fd !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.add-parent-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-parent-card:hover {
    background-color: rgba(59, 130, 246, 0.04) !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
}

.switch-sm {
    width: 36px !important;
    height: 18px !important;
}

.switch-sm .switch-label:before {
    height: 12px !important;
    width: 12px !important;
    left: 3px !important;
    bottom: 3px !important;
}

.switch-sm input[type="checkbox"]:checked + .switch-label:before {
    transform: translateX(18px) !important;
}

.badge-light-primary {
    background-color: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
}

.badge-light-secondary {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
}

.badge-light-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: #f59e0b !important;
}

.btn-light-primary {
    background-color: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
}

.btn-light-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: #f59e0b !important;
}

.btn-light-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

.dir-ltr {
    direction: ltr !important;
}

/* Menu builder */
.menu-builder {
    max-width: 920px;
}

.menu-builder-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.menu-stat-badge {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.menu-save-hint {
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

.menu-builder-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-parent-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.menu-parent-item.is-dragging,
.menu-child-item.is-dragging {
    opacity: 0.45;
}

.menu-parent-item.is-drag-over,
.menu-child-item.is-drag-over {
    outline: 2px dashed #3b82f6;
    outline-offset: -2px;
}

.menu-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
    background: #fff;
}

.menu-row.is-child {
    padding: 0.55rem 0.7rem;
    background: #fff;
    border: 0;
    border-radius: 8px;
}

.menu-row.is-inactive {
    opacity: 0.62;
}

.menu-row.is-orphan {
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
}

.menu-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: grab;
    border-radius: 8px;
    flex-shrink: 0;
}

.menu-drag-handle:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.menu-drag-handle:active {
    cursor: grabbing;
}

.menu-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 0.35rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.menu-order-badge.is-child {
    background: #f3f4f6;
    color: #4b5563;
}

.menu-row-main {
    appearance: none;
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.15rem 0;
    text-align: start;
    cursor: pointer;
}

button.menu-row-main:hover .menu-row-title {
    color: #2563eb;
}

.menu-row-main.is-static {
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.menu-row-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.menu-expand-icon {
    color: #9ca3af;
    font-size: 0.68rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.menu-parent-item.is-collapsed .menu-expand-icon {
    transform: rotate(90deg);
}

.menu-row-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-row-url {
    direction: ltr;
    text-align: right;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.menu-row-url:hover {
    color: #2563eb;
}

.menu-target-badge,
.menu-children-count {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    background: #f3f4f6;
    color: #4b5563;
}

.menu-target-badge.is-blank {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.menu-children-count {
    background: #ecfdf5;
    color: #047857;
}

.menu-children-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.menu-parent-item.is-expanded .menu-children-chip {
    background: #eff6ff;
    color: #2563eb;
}

.menu-target-dot {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.menu-parent-item.is-collapsed .menu-children {
    display: none;
}

.menu-text-btn {
    border: 0;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
}

.menu-text-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.menu-row-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.menu-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    transition: 0.15s ease;
}

.menu-icon-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.menu-children {
    padding: 0.15rem 0.7rem 0.75rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.menu-children > [data-menu-sortable],
.menu-children > div {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.menu-children-empty {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    padding: 0.7rem;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.menu-add-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(59, 130, 246, 0.06);
    border: 1px dashed #93c5fd;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    width: 100%;
}

.menu-add-child:hover {
    background: rgba(59, 130, 246, 0.1);
}

.menu-add-parent-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
    cursor: pointer;
    transition: 0.2s ease;
}

.menu-add-parent-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.menu-add-parent-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

.menu-add-parent-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.1rem;
}

.menu-orphans {
    margin-top: 1.5rem;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: #fffbeb;
    padding: 1rem;
}

.menu-orphans-header {
    margin-bottom: 0.75rem;
}

.menu-orphans-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    color: #b45309;
}

@media (max-width: 768px) {
    .menu-row {
        flex-wrap: wrap;
    }

    .menu-row-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.35rem;
    }

    .menu-row-title,
    .menu-row-url {
        white-space: normal;
    }
}

/* Perfect alignment grid for tree list */
.links-grid-row {
    display: grid !important;
    grid-template-columns: 4fr 3fr 2fr 1fr 1fr 1fr !important;
    gap: 1rem !important;
    align-items: center !important;
    width: 100% !important;
}

@media (max-width: 991px) {
    .links-grid-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

/* ==========================================================================
   Dashboard home
   ========================================================================== */

.dash-home {
    padding-bottom: 1.5rem;
}

.dash-home-welcome-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 0.35rem;
}

.dash-home-welcome-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.dash-home-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 1.75rem 0 1rem;
}

.dash-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dash-home-stats-more {
    margin-top: 1rem;
}

.dash-stats-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.4rem;
    border: 0;
    background: transparent;
    color: #0d9488;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.dash-stats-toggle:hover {
    color: #0f766e;
}

.dash-stats-toggle i {
    font-size: 0.7rem;
}

.dash-stat-card,
.dash-quick-card,
.dash-home-activity,
.dash-home-banner {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1.2rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.dash-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dash-stat-copy {
    min-width: 0;
    text-align: right;
}

.dash-stat-card:hover,
.dash-quick-card:hover,
.dash-activity-row:hover {
    text-decoration: none;
    color: inherit;
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    border-color: #dbe3ea;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dash-stat-icon,
.dash-quick-icon,
.dash-activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
}

.dash-stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.dash-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.dash-stat-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.dash-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
}

.dash-stat-trend {
    color: #10b981;
    font-size: 0.85rem;
}

.dash-home-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dash-quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 168px;
    padding: 1.25rem 1.25rem 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.dash-quick-card:hover {
    transform: translateY(-2px);
    border-color: #dbe3ea;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dash-quick-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.dash-quick-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.4rem;
}

.dash-quick-about {
    margin: 0 0 1.4rem;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.7;
}

.dash-quick-arrow {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: #f3f4f6;
    font-size: 0.85rem;
}

.dash-home-activity {
    overflow: hidden;
}

.dash-activity-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease;
}

.dash-activity-row:last-child {
    border-bottom: 0;
}

.dash-activity-row:hover {
    background: #f9fafb;
}

.dash-activity-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.dash-activity-message {
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 500;
}

.dash-activity-time {
    color: #9ca3af;
    font-size: 0.8rem;
    white-space: nowrap;
}

.dash-activity-empty {
    padding: 1.5rem 1.15rem;
    color: #9ca3af;
    text-align: center;
}

.dash-home-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.75rem;
    padding: 1.5rem 1.75rem;
    background: #ecfdf5;
    border-color: #d1fae5;
}

.dash-home-banner-copy {
    max-width: 520px;
}

.dash-home-banner-copy h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #065f46;
}

.dash-home-banner-copy p {
    margin: 0 0 1rem;
    color: #047857;
    font-size: 0.9rem;
    line-height: 1.8;
}

.dash-home-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.1rem;
    border-radius: 10px;
    background: #0d9488;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.dash-home-banner-btn:hover {
    background: #0f766e;
    color: #fff !important;
    text-decoration: none;
}

.dash-home-banner-art {
    width: 210px;
    flex-shrink: 0;
}

.dash-home-banner-art svg {
    width: 100%;
    height: auto;
    display: block;
}

.dash-tone-green {
    background: #ecfdf5;
    color: #059669;
}

.dash-tone-blue {
    background: #eff6ff;
    color: #2563eb;
}

.dash-tone-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.dash-tone-orange {
    background: #fff7ed;
    color: #ea580c;
}

.dash-tone-pink {
    background: #fdf2f8;
    color: #db2777;
}

.dash-tone-teal {
    background: #f0fdfa;
    color: #0d9488;
}

@media (max-width: 1199px) {
    .dash-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-home-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dash-home-stats,
    .dash-home-quick {
        grid-template-columns: 1fr 1fr;
    }

    .dash-activity-row {
        grid-template-columns: 38px 1fr;
    }

    .dash-activity-time {
        grid-column: 2;
    }

    .dash-home-banner {
        flex-direction: column-reverse;
        align-items: flex-end;
        /* display: block; */
        padding: 1.2rem;
    }

    .dash-home-banner-art {
        width: 160px;
        align-self: flex-start;
    }
}

.dash-home-alerts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.75rem;
}

.dash-home-alerts:has(.dash-alert:only-child) {
    grid-template-columns: 1fr;
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    border-radius: 14px;
    border: 1px solid transparent;
}

.dash-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.dash-alert-copy {
    min-width: 0;
    flex: 1;
}

.dash-alert-copy h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

.dash-alert-copy p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.7;
}

.dash-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.95rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-alert-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.dash-alert-warning .dash-alert-icon {
    background: #ffedd5;
    color: #c2410c;
}

.dash-alert-warning .dash-alert-copy h3 {
    color: #9a3412;
}

.dash-alert-warning .dash-alert-copy p {
    color: #c2410c;
}

.dash-alert-warning .dash-alert-btn {
    background: #ea580c;
    color: #fff !important;
}

.dash-alert-warning .dash-alert-btn:hover {
    background: #c2410c;
    color: #fff !important;
    text-decoration: none;
}

.dash-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dash-alert-info .dash-alert-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.dash-alert-info .dash-alert-copy h3 {
    color: #1e3a8a;
}

.dash-alert-info .dash-alert-copy p {
    color: #1d4ed8;
}

.dash-alert-info .dash-alert-btn {
    background: #2563eb;
    color: #fff !important;
}

.dash-alert-info .dash-alert-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 1199px) {
    .dash-home-alerts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dash-alert {
        flex-wrap: wrap;
    }

    .dash-alert-btn {
        width: 100%;
    }
}

/* ==========================================================================
   General info page
   ========================================================================== */

.ginfo {
    padding-bottom: 2rem;
}

.ginfo-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.ginfo-overview-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.ginfo-overview-card:hover {
    transform: translateY(-2px);
    border-color: #dbe3ea;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
}

.ginfo-overview-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.ginfo-overview-card.is-ready .ginfo-overview-icon {
    background: #ecfdf5;
    color: #059669;
}

.ginfo-overview-card.is-missing .ginfo-overview-icon {
    background: #fff7ed;
    color: #ea580c;
}

.ginfo-overview-copy {
    min-width: 0;
}

.ginfo-overview-copy strong {
    display: block;
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 0.15rem;
}

.ginfo-overview-copy span {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}

.ginfo-overview-card.is-missing .ginfo-overview-copy span {
    color: #c2410c;
    font-weight: 600;
}

.ginfo-section {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 1.35rem 1.4rem 1.5rem;
    margin-bottom: 1.25rem;
}

.ginfo-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.ginfo-section-head h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.ginfo-section-head p {
    margin: 0;
    color: #6b7280;
    font-size: 0.86rem;
    line-height: 1.7;
}

.ginfo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ginfo-editor {
    border: 1px solid #eef0f3;
    border-radius: 14px;
    overflow: hidden;
    background: #fafbfc;
}

.ginfo-editor-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
}

.ginfo-editor-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: #fff;
    flex-shrink: 0;
}

.ginfo-tone-green {
    background: #ecfdf5;
    color: #047857;
}

.ginfo-tone-teal {
    background: #f0fdfa;
    color: #0f766e;
}

.ginfo-editor-head h3 {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.ginfo-editor-head p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.ginfo-editor-body {
    padding: 1.1rem 1.15rem 0.4rem;
    background: #fff;
}

.ginfo-hint {
    display: block;
    margin-top: 0.35rem;
    color: #9ca3af;
    font-size: 0.78rem;
}

.ginfo-goal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ginfo-goal-card,
.ginfo-list,
.ginfo-empty {
    border: 1px solid #eef0f3;
    border-radius: 14px;
    background: #fff;
}

.ginfo-goal-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.15rem;
}

.ginfo-goal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #0d9488;
    font-size: 1.25rem;
}

.ginfo-goal-body {
    min-width: 0;
}

.ginfo-goal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.ginfo-goal-top h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
}

.ginfo-goal-body p {
    margin: 0 0 0.55rem;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.7;
}

.ginfo-goal-meta {
    color: #9ca3af;
    font-size: 0.78rem;
}

.ginfo-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.ginfo-status.is-active {
    background: #ecfdf5;
    color: #047857;
}

.ginfo-status.is-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.ginfo-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ginfo-list {
    overflow: hidden;
}

.ginfo-list-row {
    display: grid;
    grid-template-columns: 42px 1fr auto auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid #f3f4f6;
}

.ginfo-list-row:last-child {
    border-bottom: 0;
}

.ginfo-list-order {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 700;
}

.ginfo-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.ginfo-empty {
    text-align: center;
    padding: 2.4rem 1.5rem;
}

.ginfo-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0fdfa;
    color: #0d9488;
    font-size: 1.4rem;
}

.ginfo-empty h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.ginfo-empty p {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.86rem;
}

@media (max-width: 1199px) {
    .ginfo-overview,
    .ginfo-pair,
    .ginfo-goal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ginfo-section-head,
    .ginfo-goal-top {
        flex-direction: column;
    }

    .ginfo-goal-card {
        grid-template-columns: 46px 1fr;
    }

    .ginfo-card-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .ginfo-list-row {
        grid-template-columns: 32px 1fr auto;
    }

    .ginfo-list-row .ginfo-card-actions {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Dashboard mobile / overflow
   ========================================================================== */

html,
body.demo1 {
    max-width: 100%;
    overflow-x: hidden;
}

body.demo1,
#app,
.wrapper,
.grow.content,
main#content {
    min-width: 0;
}

.wrapper,
.grow.content,
main#content,
.container-fixed,
.card,
.card-body,
.dash-home,
.app-layout {
    max-width: 100%;
}

.app-layout {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .app-layout {
        padding-left: 0;
        padding-right: 0;
    }
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.image-overlay-text-container .overlay {
    padding: 0 8px;
    box-sizing: border-box;
}

.image-overlay-text-container .overlay > div {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.image-overlay-text-container .overlay h2,
.image-overlay-text-container .overlay .w-max {
    width: auto !important;
    max-width: calc(100% - 4.5rem);
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-responsive,
.scrollable-x-auto {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
    .demo1 .header {
        height: 56px;
    }

    .demo1.header-fixed .wrapper {
        padding-top: 56px;
    }

    .header .container-fixed {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.5rem;
        min-width: 0;
    }

    .header .site-logo {
        max-width: 132px;
        width: auto;
        height: auto;
        max-height: 28px;
    }

    .container-fixed {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .sidebar.drawer,
    .drawer.drawer-start {
        width: min(280px, 86vw) !important;
        max-width: 86vw !important;
    }

    .card-header,
    .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        min-height: auto;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .v-tabs,
    .v-slide-group,
    .v-slide-group__container,
    .v-window {
        max-width: 100%;
    }

    .v-slide-group__content {
        flex-wrap: nowrap;
    }

    .filepond--root,
    .filepond--panel-root {
        max-width: 100%;
    }

    .splade-modal,
    .v-overlay__content,
    .v-dialog > .v-overlay__content {
        max-width: calc(100vw - 1.5rem) !important;
        margin-left: auto;
        margin-right: auto;
    }

    .coming-soon-component {
        padding: 1.25rem;
    }

    .coming-soon-component h2 {
        font-size: 1.35em;
        margin-top: 1.25rem;
    }
}

.dash-toasts {
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .dash-toasts {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .dash-toasts {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
    }

    .dash-toasts > .relative {
        display: contents;
    }

    .dash-toasts .absolute {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .content .grid.grid-cols-3,
    .content .grid.grid-cols-4,
    .content .grid.grid-cols-5 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .image-overlay-text-container img {
        height: 180px;
    }

    .dash-home-welcome-title {
        font-size: 1.35rem;
    }

    .tabs-container .pl-8,
    .tabs-container .pr-8 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .file-item-row,
    .files-center-actions {
        flex-wrap: wrap;
    }

    .login-page,
    .page-bg {
        padding: 1rem;
        min-height: 100dvh;
        box-sizing: border-box;
    }

    .page-bg > .card {
        max-width: 100%;
    }

    .page-bg .card-body.p-10 {
        padding: 1.5rem;
    }

    .survey-page-head,
    .survey-page-actions {
        flex-wrap: wrap;
    }

    .survey-page-actions {
        width: 100%;
    }

    .survey-page-actions .btn {
        flex: 1 1 auto;
    }

    .icons-search-row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .menu-builder-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .w-max {
        max-width: 100%;
        white-space: normal;
    }

    .table-responsive table,
    .scrollable-x-auto table {
        min-width: 640px;
    }

    .btn {
        white-space: nowrap;
    }

    .flex.w-100.gap-2.mb-4.justify-between {
        flex-wrap: wrap;
    }

    .menus-item-card {
        padding: 12px;
    }

    .menu-item-title {
        font-size: 15px;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .content .grid.grid-cols-3,
    .content .grid.grid-cols-4,
    .content .grid.grid-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}