/* EventFlow Studio Pro - Premium Design Stylesheet */

:root {
    --bg-base: #090d16;
    --bg-surface: rgba(18, 25, 41, 0.6);
    --bg-surface-solid: #121929;
    --bg-surface-hover: rgba(30, 41, 67, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(255, 255, 255, 0.2);
    
    /* Canvas Dark Theme Variables */
    --canvas-grid: rgba(255, 255, 255, 0.03);
    --canvas-label-color: #ffffff;
    --canvas-label-color-secondary: rgba(255, 255, 255, 0.6);
    --canvas-seat-free-fill: rgba(255, 255, 255, 0.2);
    --canvas-seat-free-stroke: rgba(255, 255, 255, 0.4);
    --canvas-seat-occupied-stroke: #ffffff;
    --canvas-wc-fill: rgba(255, 255, 255, 0.05);
    
    /* Dynamic Theme Colors (Customizable via Design Studio) */
    --primary-h: 295;
    --primary-s: 82%;
    --primary-l: 61%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
    --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 8%));
    
    --secondary-h: 270;
    --secondary-s: 91%;
    --secondary-l: 65%;
    --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Functional Colors */
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.2);
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.2);
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.2);
    --rose: #f43f5e;
    --rose-glow: rgba(244, 63, 94, 0.2);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.2);
    
    /* System Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-light {
    --bg-base: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-surface-solid: #ffffff;
    --bg-surface-hover: rgba(241, 245, 249, 0.9);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-focus: rgba(15, 23, 42, 0.2);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Canvas Light Theme Variables */
    --canvas-grid: rgba(15, 23, 42, 0.05);
    --canvas-label-color: #0f172a;
    --canvas-label-color-secondary: rgba(15, 23, 42, 0.6);
    --canvas-seat-free-fill: rgba(15, 23, 42, 0.08);
    --canvas-seat-free-stroke: rgba(15, 23, 42, 0.2);
    --canvas-seat-occupied-stroke: #0f172a;
    --canvas-wc-fill: rgba(15, 23, 42, 0.05);
}

body.theme-light .sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
}

body.theme-light .event-selector-container {
    background: rgba(0, 0, 0, 0.03);
}

body.theme-light select option,
body.theme-light .styled-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.theme-light .nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

body.theme-light .nav-item.active {
    color: var(--primary);
    background: var(--primary-glow);
}

body.theme-light .user-badge {
    background: rgba(0, 0, 0, 0.03);
}

body.theme-light .custom-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.02);
}

body.theme-light .canvas-container-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
}

body.theme-light .app-header {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
}

body.theme-light .role-selector label {
    color: var(--text-secondary);
}

body.theme-light #btn-toggle-theme {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-light .styled-select,
body.theme-light .styled-input,
body.theme-light .styled-textarea,
body.theme-light .search-box input {
    background-color: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-light .dashboard-banner {
    background: linear-gradient(135deg, #ffffff, #f3e8ff);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.theme-light .event-title-display {
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-light .countdown-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

body.theme-light .countdown-number {
    color: var(--text-primary);
    text-shadow: none;
}

body.theme-light .budget-summary-banner {
    background: linear-gradient(90deg, #ffffff, #f8fafc);
    border: 1px solid var(--border-color);
}

body.theme-light .budget-pill {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
}

body.theme-light .bp-val {
    color: var(--text-primary);
}

body.theme-light .progress-bar-bg {
    background-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .canvas-ruler-top {
    background-color: #ffffff;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

body.theme-light ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

body.theme-light ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

body.theme-light .selected-summary-totals {
    background: rgba(15, 23, 42, 0.04);
}

body.theme-light .total-row.grand-total {
    color: var(--text-primary);
}

body.theme-light .qty-pill-control {
    background: rgba(15, 23, 42, 0.04);
}

body.theme-light .kanban-col {
    background-color: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
}

body.theme-light .contract-form-fields {
    background-color: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
}

body.theme-light .color-picker-item {
    background-color: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Scrollbars styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Layout Framework */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    background-color: #0c111e;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 16px;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 24px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-icon {
    width: 20px;
    height: 20px;
    color: #fff;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

/* Event Selector */
.event-selector-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 20px;
}

.selector-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.selector-label i {
    width: 14px;
    height: 14px;
}

.event-select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.event-select option {
    background-color: #0c111e;
    color: var(--text-primary);
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-glow), transparent);
    border-left: 3px solid var(--primary);
    font-weight: 600;
    padding-left: 11px;
}

.nav-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge .user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.btn-logout:hover {
    color: var(--rose, #f43f5e);
    border-color: var(--rose, #f43f5e);
    background-color: rgba(244, 63, 94, 0.08);
}

.avatar {
    width: 32px;
    height: 32px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Main Area Layout */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* App Header */
.app-header {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.root-crumb {
    color: var(--text-muted);
}

.separator {
    color: var(--text-muted);
}

.active-crumb {
    color: var(--text-primary);
    font-weight: 600;
}

.event-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    max-width: 280px;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(6, 182, 212, 0.1);
    margin: 0 4px;
}

.event-chip i {
    color: var(--primary-glow, #06b6d4);
    flex-shrink: 0;
}

.event-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.role-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
}

.role-selector select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-focus);
}

.btn-success {
    background-color: var(--emerald);
    color: #fff;
    box-shadow: 0 4px 14px var(--emerald-glow);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--rose);
    color: #fff;
    box-shadow: 0 4px 14px var(--rose-glow);
}

.btn-danger:hover {
    background-color: #e11d48;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    font-size: 0.85rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-hover);
}

/* View Viewport */
.view-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}


/* View SPA show/hide */
.app-view {
    display: none;
}

.app-view.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* General Layout Elements */
.grid-card {
    background-color: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.section-header-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-header-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dashboard Banner style */
.dashboard-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(20, 10, 35, 0.9), rgba(10, 15, 30, 0.9));
    border: 1px solid rgba(255,255,255,0.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, var(--primary-glow), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.event-type-badge {
    background-color: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
}

.event-title-display {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.event-meta-info {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-info i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.countdown-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats Summary Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.bg-emerald {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-icon.bg-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-icon.bg-purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-info {
    flex: 1;
    padding-left: 16px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-ring-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.ring-percentage {
    position: absolute;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Dashboard Columns Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Simplified Timeline */
.timeline-simplified {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 16px;
}

.timeline-simplified::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item-simple {
    position: relative;
}

.timeline-item-simple::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-surface-solid);
    border: 2px solid var(--primary);
    z-index: 2;
}

.time-bubble {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.timeline-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Guest Pills dashboard widget */
.guest-summary-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.guest-stats-row {
    display: flex;
    gap: 10px;
}

.guest-stat-pill {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid transparent;
}

.guest-stat-pill.confirmed {
    background-color: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
}

.guest-stat-pill.pending {
    background-color: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
    color: var(--amber);
}

.guest-stat-pill.declined {
    background-color: rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.15);
    color: var(--rose);
}

.pill-number {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.pill-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.alert-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.alert-success {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.1);
}

.alert-icon i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.alert-success .alert-icon i {
    color: var(--emerald);
}

.alert-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.alert-content strong {
    color: var(--text-primary);
}

/* Styled Fields & Textareas */
.styled-textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    resize: none;
    height: 140px;
    outline: none;
    transition: var(--transition);
}

.styled-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.note-full-textarea {
    height: 380px;
    font-size: 0.95rem;
}

.note-save-status {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Event List Table UI */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.custom-table th {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-emerald {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-rose {
    background-color: rgba(244, 63, 94, 0.1);
    color: var(--rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-amber {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Calendar Month Layout */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 100px;
    gap: 4px;
    margin-top: 8px;
}

.calendar-day {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.calendar-day:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.calendar-day.today .day-number {
    color: var(--primary);
    font-weight: 700;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
}

.day-event-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
}

.day-event-tag.wedding {
    background-color: rgba(217, 70, 239, 0.1);
    color: #f472b6;
    border: 1px solid rgba(217, 70, 239, 0.2);
}

/* Budget View Components */
.budget-summary-banner {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.6));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.budget-pill {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    min-width: 140px;
}

.bp-lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.bp-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.warning-glow .bp-val {
    color: var(--primary);
}

.budget-pill-progress {
    flex: 1;
    min-width: 240px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Budget Program Split Grid */
.budget-catalog-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.cat-tab-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-tab-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.cat-tab-btn.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.catalog-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Catalog Card Item */
.catalog-item-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.catalog-item-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color-focus);
}

.catalog-item-info {
    display: flex;
    flex-direction: column;
}

.cat-item-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.cat-item-delivery {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.catalog-item-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cat-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* Selected Budget Table in PDF view style */
.summary-pdf-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.selected-items-table-wrapper {
    max-height: 380px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.summary-table th {
    text-align: left;
    padding: 10px 8px;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.summary-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.summary-item-name {
    font-weight: 500;
}

.qty-pill-control {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: 600;
}

.qty-val {
    width: 24px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-item:hover {
    color: var(--rose);
}

.selected-summary-totals {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.total-row.grand-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

/* Designer Workspace Layout */
.designer-workspace {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    height: 700px;
}

.symbology-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.symbology-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    overflow-y: auto;
    flex: 1;
}

.symbol-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.symbol-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
    transform: translateX(2px);
}

/* Symbol Icons styling */
.symbol-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mesa-redonda-icon {
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--blue);
}

.mesa-rect-icon {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--emerald);
}

.silla-icon {
    width: 24px;
    height: 24px;
    margin: 8px;
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--amber);
}

.tarima-icon {
    background-color: rgba(139, 92, 246, 0.1);
    border-color: var(--purple);
}

.pista-icon {
    background-color: rgba(244, 63, 94, 0.1);
    border-color: var(--rose);
}

.symbol-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.symbol-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
}

.item-properties-panel {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.prop-group {
    margin-bottom: 12px;
}

.prop-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

/* Designer Canvas elements */
.canvas-wrapper {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

.canvas-ruler-top {
    height: 30px;
    background-color: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.canvas-container-box {
    flex: 1;
    position: relative;
    overflow: auto;
    background-color: #0d121f;
}

.venue-canvas-svg {
    width: 800px;
    height: 570px;
    display: block;
    position: relative;
}

/* Seating / Table Assignment styles */
.seating-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.active-table-info-box {
    background-color: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.no-table-selected {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.table-details {
    text-align: left;
}

.table-details h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.seats-status {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
}

.seating-guests-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 140px;
    overflow-y: auto;
}

.seated-guest-tag {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seated-guest-tag button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
}

.seated-guest-tag button:hover {
    color: var(--rose);
}

.guests-to-seat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.search-mini {
    margin: 8px 0;
}

.compact-input {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.unseated-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.draggable-guest-card {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.draggable-guest-card:hover {
    border-color: var(--primary);
    background-color: rgba(255,255,255,0.04);
}

.dg-allotment {
    font-size: 0.68rem;
    background-color: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 50px;
    color: var(--text-secondary);
}

/* SVG Canvas Object Drawing Styles */
.venue-element {
    cursor: move;
    transition: stroke-width 0.2s;
}

.venue-element:hover {
    stroke: var(--primary);
    stroke-width: 1.5;
}

.venue-element.selected {
    stroke: var(--primary);
    stroke-width: 2;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.table-chair {
    fill: rgba(255,255,255,0.2);
    stroke: rgba(255,255,255,0.4);
    stroke-width: 1;
}

.table-chair.occupied {
    fill: var(--primary);
    stroke: var(--primary-glow);
}

/* Guest Workspace Grid */
.guests-workspace-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.list-filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.list-filters-bar .search-box {
    flex: 1;
    min-width: 200px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px 8px 36px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
}

.styled-select, .styled-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
}

.styled-select:focus, .styled-input:focus {
    border-color: var(--primary);
}

#active-contract-select option,
.styled-select option {
    background-color: #ffffff !important;
    color: #090d16 !important;
}

.compact-select {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.table-wrapper {
    overflow-x: auto;
}

.groups-pie-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.group-stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gs-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
}

.gs-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.03);
    border-radius: 10px;
    overflow: hidden;
}

.gs-bar-fill {
    height: 100%;
    border-radius: 10px;
}

/* Detailed Itinerary Timeline */
.timeline-detailed-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
    max-height: 480px;
    overflow-y: auto;
}

.timeline-detailed-wrapper::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.itinerary-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    position: relative;
}

.itinerary-card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.itinerary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.itinerary-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.itinerary-card-actions {
    display: flex;
    gap: 6px;
}

.itinerary-card-actions button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.itinerary-card-actions button:hover {
    color: var(--rose);
}

.itinerary-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.itinerary-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Kanban Board Styling */
.itinerary-tasks-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tasks-kanban-board {
    display: flex;
    gap: 16px;
}

.kanban-col {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 400px;
    flex: 1 1 0;
    min-width: 0;
    transition: flex 0.2s ease;
}

.kanban-col-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.kanban-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    transition: var(--transition);
}

.kanban-list.drag-over {
    background-color: rgba(6, 182, 212, 0.05);
    outline: 2px dashed var(--primary);
    outline-offset: -2px;
}

.kanban-card {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: grab;
    transition: var(--transition);
}

.kanban-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.kanban-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.kanban-card-actions {
    display: flex;
    gap: 4px;
}

.kanban-card-actions button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.kanban-card-actions button:hover {
    color: var(--rose);
}

/* Contracts Panel Styles */
.contracts-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.contract-editor-container {
    margin-top: 16px;
}

.contract-form-fields {
    background: rgba(0,0,0,0.15);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

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

.col-6 {
    flex: 1;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.contract-document-preview {
    background-color: #fff;
    color: #0f172a;
    border-radius: var(--radius-sm);
    padding: 24px;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    font-family: 'Times New Roman', serif;
}

.signature-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 16px;
}

.signature-box {
    flex: 1;
    text-align: center;
}

.sig-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sig-line {
    border-bottom: 1px solid var(--border-color);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
}

.sig-line.clickable {
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
}

.sig-line.clickable:hover {
    border-color: var(--primary);
}

.signature-overlay {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.doc-item {
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-info i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.doc-name {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.doc-size {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.doc-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

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

/* Design Studio Styles */
.design-studio-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    align-items: start;
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.color-picker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.15);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.color-picker-item label {
    font-size: 0.85rem;
    font-weight: 500;
}

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

.color-picker-wrapper input[type="color"] {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.color-hex {
    font-family: monospace;
    font-size: 0.85rem;
}

.preset-palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.palette-preset {
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.palette-preset:hover {
    transform: scale(1.02);
}

.moodboard-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    max-height: 450px;
    overflow-y: auto;
}

.mood-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
}

.mood-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mood-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background-color: rgba(244,63,94,0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Digital Invitation Simulator layout */
.invitation-preview-split {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    justify-content: center;
    align-items: start;
}

.mobile-simulator-frame {
    width: 360px;
    height: 640px;
    border: 12px solid #1e293b;
    border-radius: 36px;
    background-color: #0f172a;
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mobile-scrollable-content {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
    color: #1e293b;
}

/* Mobile Invitation Styling */
.inv-hero {
    background-size: cover;
    background-position: center;
    height: 240px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    color: #fff;
}

.inv-hero-bg-default {
    background-image: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=600&auto=format&fit=crop');
}

.inv-hero-content {
    z-index: 2;
}

.inv-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 50px;
}

.inv-names {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-top: 6px;
    margin-bottom: 2px;
}

.inv-date-lbl {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.inv-section {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.text-center {
    text-align: center;
}

.font-playfair {
    font-family: var(--font-serif);
}

.inv-body-text {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: 8px;
}

.inv-divider {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 12px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    margin-bottom: 12px;
}

.inv-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.venue-info-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.8rem;
}

.venue-info-card strong {
    display: block;
    color: #0f172a;
}

.venue-info-card p {
    color: #64748b;
    margin-top: 2px;
}

.inv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-outline-custom {
    background: transparent;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: #fff;
}

.rsvp-inputs-form label, .form-group-custom label {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.styled-input-custom {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    outline: none;
}

.styled-input-custom:focus {
    border-color: var(--primary);
}

.rsvp-choices {
    display: flex;
    gap: 8px;
}

.choice-btn {
    flex: 1;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.choice-btn.active {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--emerald);
    color: #047857;
}

.search-result-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

/* Ticket Design */
.digital-ticket {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.ticket-header {
    background-color: #f1f5f9;
    padding: 10px 16px;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-header h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.ticket-body {
    padding: 16px;
    text-align: center;
}

.ticket-body h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.ticket-meta {
    display: flex;
    justify-content: space-around;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.t-lbl {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    display: block;
}

.t-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.ticket-qr-container {
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.ticket-qr-container canvas {
    width: 140px;
    height: 140px;
}

.ticket-disclaimer {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Modals styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 450px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-4 { margin-bottom: 16px !important; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .designer-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .canvas-wrapper {
        height: 450px;
    }
    
    .guests-workspace-grid {
        grid-template-columns: 1fr;
    }
    
    .itinerary-tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-kanban-board {
        flex-direction: column;
    }
    
    .contracts-grid {
        grid-template-columns: 1fr;
    }
    
    .design-studio-grid {
        grid-template-columns: 1fr;
    }
    
    .invitation-preview-split {
        grid-template-columns: 1fr;
    }
}

/* ---- Feature #6: Dietary preferences & allergies ---- */
.diet-badge {
    text-transform: capitalize;
}

.allergy-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    margin-left: 4px;
    cursor: help;
    vertical-align: middle;
}

.catering-summary-box {
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.catering-summary-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.meal-counts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.meal-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 0.82rem;
}

.meal-count-value {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.allergies-report .allergies-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.allergies-report .allergies-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- Feature #4: Enriched task kanban ---- */
.task-filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.task-filters-bar select {
    flex: 1;
    min-width: 160px;
}

.task-card {
    border-left: 3px solid transparent;
}

.task-card.status-overdue {
    border-left-color: var(--rose);
    box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.2);
}

.task-card.status-due-soon {
    border-left-color: var(--amber);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.task-card.status-done {
    opacity: 0.75;
}

.kanban-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.task-reminder-icon {
    display: inline-flex;
    align-items: center;
    color: var(--amber);
}

.task-assignee-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 6px 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-due-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-task-edit {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-task-edit:hover {
    color: var(--primary-glow);
}

/* Due-mode toggle inside task modal */
.due-mode-toggle {
    display: flex;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.due-mode-toggle .tab-btn {
    flex: 1;
}

.relative-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---- Feature #7: Enriched budget table + role hiding ---- */
body.role-cliente .planner-only {
    display: none !important;
}

.budget-grid th,
.budget-grid td {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 8px 6px;
}

.budget-inline-input {
    width: 84px;
    padding: 4px 6px;
    font-size: 0.78rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-align: right;
}

.budget-inline-input:focus {
    outline: none;
    border-color: var(--primary-glow);
    background-color: rgba(255, 255, 255, 0.06);
}

.sel-visible {
    accent-color: var(--primary-glow);
    cursor: pointer;
}

.budget-summary-banner {
    flex-wrap: wrap;
}

.budget-summary-banner .budget-pill {
    min-width: 140px;
}

/* ---- Feature #1: Templates view ---- */
.templates-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.template-card {
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.template-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.template-card-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.template-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.template-preview {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 250px;
    overflow-y: auto;
}

.template-preview li {
    margin-bottom: 4px;
}

.template-preview-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* Column headers for template item lists */
.tpl-item-columns {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Item rows share the same column layout as the header */
.tpl-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    list-style: none;
    margin-left: 0;
}

.tpl-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tpl-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpl-actions {
    justify-content: flex-end;
    gap: 4px;
}

/* Tasks columns: Categoría (100px) · Tarea (flex:1) · Vencimiento (200px) · Acciones (60px) */
.tpl-cols-tasks > :nth-child(1) { width: 100px; flex-shrink: 0; }
.tpl-cols-tasks > :nth-child(2) { flex: 1; min-width: 0; }
.tpl-cols-tasks > :nth-child(3) { width: 200px; flex-shrink: 0; }
.tpl-cols-tasks > :nth-child(4) { width: 60px; flex-shrink: 0; }

/* Itinerary columns: Hora (70) · Categoría (110) · Actividad (flex) · Descripción (flex) · Acciones (60) */
.tpl-cols-itinerary > :nth-child(1) { width: 70px; flex-shrink: 0; white-space: nowrap; }
.tpl-cols-itinerary > :nth-child(2) { width: 110px; flex-shrink: 0; }
.tpl-cols-itinerary > :nth-child(3) { flex: 1; min-width: 0; }
.tpl-cols-itinerary > :nth-child(4) { flex: 1; min-width: 0; }
.tpl-cols-itinerary > :nth-child(5) { width: 60px; flex-shrink: 0; }

/* Header user chip (logged-in user display + logout) */
.header-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 4px;
    background-color: var(--bg-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-left: 8px;
}

.header-user-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    max-width: 140px;
}

.header-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-role {
    font-size: 0.68rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout-header {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-logout-header:hover {
    color: var(--rose, #f43f5e);
    background-color: rgba(244, 63, 94, 0.1);
}

/* Password input with show/hide toggle */
.password-input-wrapper {
    position: relative;
    display: block;
}
.password-input-wrapper input {
    width: 100%;
    padding-right: 42px !important;
}
.password-toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.password-toggle-btn:hover {
    color: var(--primary-glow);
}

.password-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--emerald);
    font-weight: 500;
}

.password-status-chip.hidden {
    display: none;
}

/* No-active-event visual dimming */
.nav-item-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-item-disabled:hover {
    background-color: transparent !important;
}

body.no-active-event #btn-new-event {
    animation: pulse-highlight 2s ease-in-out infinite;
}

@keyframes pulse-highlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(217, 70, 239, 0); }
}

/* Catálogos view */
.catalog-add-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    margin-bottom: 14px;
    align-items: center;
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.catalog-item-row .catalog-item-input {
    flex: 1;
}

.note-cat-row {
    gap: 8px;
    flex-wrap: wrap;
}

/* Budget catalog blocks */
.budget-cat-block {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.budget-cat-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.budget-cat-articles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-item-columns {
    display: grid;
    grid-template-columns: 110px 1fr 100px 110px 42px;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0 6px;
    letter-spacing: 0.5px;
}

.article-item-row {
    display: grid;
    grid-template-columns: 110px 1fr 100px 110px 42px;
    gap: 8px;
    align-items: center;
    padding: 4px 6px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.new-article-row {
    display: grid;
    grid-template-columns: 110px 1fr 100px 110px 42px;
    gap: 8px;
    align-items: center;
    padding: 6px;
    background-color: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    margin-top: 6px;
}

/* Contract template picker dropdown */
.contract-tpl-picker {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 260px;
    background-color: var(--card-bg, #fff);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 8px;
}

.contract-tpl-picker-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.contract-tpl-picker-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
}

.contract-tpl-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.contract-tpl-picker-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--primary-glow);
}

/* Attachments modal & paperclip badges */
.attachments-upload-zone {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.attachment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.attachment-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.attachment-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.attach-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: var(--primary-glow);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1;
    min-width: 14px;
    text-align: center;
}

.btn-task-attach {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-task-attach:hover {
    color: var(--primary-glow);
}

/* Kanban column collapse/expand */
.kanban-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-col-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.15s ease;
}

.kanban-col-toggle:hover {
    color: var(--primary-glow);
    border-color: var(--primary-glow);
}

.kanban-col.collapsed {
    flex: 0 0 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    overflow: hidden;
}

.kanban-col.collapsed .kanban-list {
    display: none;
}

.kanban-col.collapsed .kanban-col-title {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 8px 0;
}

.kanban-col.collapsed .kanban-col-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
}

.kanban-col.collapsed .kanban-col-toggle i {
    transform: rotate(180deg);
}

/* Template selection inside New Event modal */
.new-event-templates-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.new-event-tpl-block {
    margin-bottom: 12px;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.new-event-tpl-header {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.new-event-tpl-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 140px;
    overflow-y: auto;
}

.tpl-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.tpl-checkbox-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.tpl-checkbox-item input[type="checkbox"] {
    accent-color: var(--primary-glow);
    cursor: pointer;
}

/* Budget columns: Artículo (flex) · Cantidad (60) · Precio (100) · Acciones (60) */
.tpl-cols-budget > :nth-child(1) { flex: 1; min-width: 0; }
.tpl-cols-budget > :nth-child(2) { width: 60px; flex-shrink: 0; }
.tpl-cols-budget > :nth-child(3) { width: 100px; flex-shrink: 0; }
.tpl-cols-budget > :nth-child(4) { width: 60px; flex-shrink: 0; }

/* ---- Feature #5: Note cards grid ---- */
.notes-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 4px;
}

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

.note-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, border-color 0.15s ease;
    min-height: 140px;
}

.note-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-glow);
}

.note-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.note-card-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.note-card:hover .note-card-actions {
    opacity: 1;
}

.note-card-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.note-card-actions button:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.note-card-actions .btn-note-del:hover {
    color: var(--rose);
}

.note-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.note-card-content {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
}

.note-card-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

/* ---- Users & Roles catalog ---- */
.modal-box-lg {
    max-width: 720px;
}

.section-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
}

.roles-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    padding: 16px;
}

.role-card {
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.role-card-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.role-card-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.role-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.role-perm-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.permissions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-height: 340px;
    overflow-y: auto;
}

.permission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

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

.permission-label {
    font-size: 0.82rem;
    color: var(--text-primary);
}

.permission-buttons {
    display: flex;
    gap: 4px;
}

.perm-level-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    cursor: pointer;
}

.perm-level-btn.active {
    background-color: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-glow);
    color: var(--primary-glow);
    font-weight: 600;
}

.permission-flags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.perm-flag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
}

.perm-flag-item input[type="checkbox"] {
    accent-color: var(--primary-glow);
}

/* Permission enforcement */
.hidden-by-role {
    display: none !important;
}

/* Readonly view: hide add/save/delete/edit buttons */
.readonly-view .btn-primary,
.readonly-view [id^="btn-add-"],
.readonly-view [id^="btn-save-"],
.readonly-view [id^="btn-del-"],
.readonly-view [id^="btn-edit-"],
.readonly-view .btn-remove-item,
.readonly-view .qty-btn,
.readonly-view input[type="text"],
.readonly-view input[type="number"],
.readonly-view input[type="date"],
.readonly-view input[type="email"],
.readonly-view textarea,
.readonly-view select {
    pointer-events: none;
    opacity: 0.7;
}

.readonly-view .btn-primary,
.readonly-view [id^="btn-add-"],
.readonly-view [id^="btn-save-"],
.readonly-view [id^="btn-del-"],
.readonly-view [id^="btn-edit-"],
.readonly-view .btn-remove-item {
    display: none !important;
}

/* Flag-based hiding */
body.flag-planner-costs-off .planner-only {
    display: none !important;
}

body.flag-guest-pii-off .guest-pii {
    filter: blur(4px);
    pointer-events: none;
}

body.flag-manage-users-off .nav-item[data-view="usuarios"] {
    display: none !important;
}

/* --- Contract Template Editor Modal & Sidebar Styles --- */
.template-editor-sidebar .sidebar-tab-btn {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.template-editor-sidebar .sidebar-tab-btn.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.03);
}
.template-editor-sidebar .sidebar-tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.editor-sidebar-panel {
    animation: fadeIn 0.2s ease-in-out;
}

/* Custom styles for variables panel */
.variable-category {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.btn-var-insert {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}
.btn-var-insert:hover {
    background-color: var(--primary);
    color: var(--bg-app);
    border-color: var(--primary);
    transform: translateX(3px);
}
.btn-var-insert::after {
    content: "+";
    font-weight: bold;
    opacity: 0.6;
}

/* Version History Timeline */
.history-timeline-item {
    position: relative;
    padding-bottom: 12px;
    font-size: 0.72rem;
}
.history-timeline-item::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}
.history-version-badge {
    background-color: var(--primary);
    color: var(--bg-app);
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
}
.history-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 2px 0;
}
.history-comment {
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Workspace tab buttons */
.template-editor-workspace .workspace-tab-btn {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.template-editor-workspace .workspace-tab-btn.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}
.template-editor-workspace .workspace-tab-btn:hover {
    color: var(--text-primary);
}

/* Accordion styled details arrow */
.contract-fields-accordion summary::-webkit-details-marker {
    display: none;
}
.contract-fields-accordion[open] summary i {
    transform: rotate(180deg);
}

/* Quill Editor Dark Mode Override styling */
.ql-toolbar.ql-snow {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: var(--border-color) !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
.ql-container.ql-snow {
    border-color: var(--border-color) !important;
    background-color: var(--bg-surface-solid) !important;
    color: var(--text-primary) !important;
    font-size: 0.88rem !important;
}
.ql-snow .ql-stroke {
    stroke: var(--text-secondary) !important;
}
.ql-snow .ql-fill {
    fill: var(--text-secondary) !important;
}
.ql-snow .ql-picker {
    color: var(--text-secondary) !important;
}
.ql-snow .ql-picker-options {
    background-color: var(--bg-surface-solid) !important;
    border-color: var(--border-color) !important;
}
.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected {
    color: var(--primary) !important;
}
.ql-snow .ql-active .ql-stroke {
    stroke: var(--primary) !important;
}
.ql-snow .ql-active .ql-fill {
    fill: var(--primary) !important;
}

/* Template status and classification badges */
.badge-service-type {
    background-color: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}
.badge-inactive-status {
    background-color: rgba(244, 63, 94, 0.15) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
}

/* Readonly overrides */
.readonly-view .btn-rename-tpl,
.readonly-view .btn-delete-tpl,
.readonly-view .btn-edit-contract-body,
.readonly-view #btn-create-template,
.readonly-view #btn-editor-export-word,
.readonly-view #btn-editor-export-pdf,
.readonly-view #btn-save-contract-template {
    display: none !important;
}


/* Scope overrides for light website preview workspace */
#web-live-preview-container {
    --text-primary: #1e293b !important;
    --text-secondary: #475569 !important;
    --text-muted: #64748b !important;
    --border-color: #cbd5e1 !important;
    --card-bg: #ffffff !important;
}

#web-live-preview-container .web-chat-client {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}
#web-live-preview-container .web-chat-client .web-chat-sender-name {
    color: #475569 !important;
}

/* Event Website Builder custom styles */
.web-builder-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
}

/* Chat bubble styling inside preview */
.web-chat-bubble {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.76rem;
    line-height: 1.4;
    max-width: 80%;
    margin-bottom: 4px;
    position: relative;
    word-break: break-word;
}
.web-chat-organizer {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}
.web-chat-client {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}
.web-chat-sender-name {
    font-size: 0.62rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.7);
}
.web-chat-client .web-chat-sender-name {
    color: var(--text-secondary);
}
.web-chat-time {
    font-size: 0.58rem;
    opacity: 0.6;
    text-align: right;
    margin-top: 3px;
}

/* Photo gallery styling inside preview */
.web-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.1);
}
.web-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.web-photo-item:hover .web-photo-img {
    transform: scale(1.05);
}
.web-photo-overlay-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(239, 68, 68, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}
.web-photo-item:hover .web-photo-overlay-btn {
    opacity: 1;
}

/* Timeline itinerary items inside preview */
.web-itin-row {
    display: flex;
    gap: 12px;
    position: relative;
    padding-left: 14px;
}
.web-itin-row::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: -12px;
    width: 2px;
    background-color: var(--border-color);
}
.web-itin-row:last-child::before {
    display: none;
}
.web-itin-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--card-bg);
}
.web-itin-time {
    font-weight: 700;
    font-size: 0.74rem;
    color: var(--text-primary);
    white-space: nowrap;
}
.web-itin-content {
    flex: 1;
}
.web-itin-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}
.web-itin-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Document items inside website preview */
.web-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.web-doc-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.web-doc-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.web-doc-size {
    font-size: 0.64rem;
    color: var(--text-muted);
}
.web-doc-download-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s ease;
}
.web-doc-download-btn:hover {
    color: var(--primary);
}

/* Note cards inside website preview */
.web-note-row {
    padding: 10px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}
.web-note-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
}
.web-note-content {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: pre-wrap;
    line-height: 1.35;
}

/* Locks visibilities tags */
.doc-action-btn.btn-toggle-doc-visibility,
.note-visibility-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s ease;
}
.doc-action-btn.btn-toggle-doc-visibility.visible-public,
.note-visibility-toggle-btn.visible-public {
    color: var(--emerald) !important;
}

