/* Evanelle platform - admin components, themed to the prototype palette (evanelle.css provides the base design system). */
:root { --ev-brand: #4a2c4f; --ev-brand-dark: #3a223e; --ev-gold: #b8955a; --ev-cream: #fdf9f8; --ev-line: #e7e5e4; }
body { font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; color: #262626; }
.ev-serif, h1, h2, h3 { font-family: Georgia, Cambria, 'Times New Roman', serif; }
.ev-card { background: #fff; border: 1px solid var(--ev-line); border-radius: 1rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ev-label { display: block; font-size: .875rem; font-weight: 500; color: #262626; margin-bottom: .375rem; }
.ev-input, .ev-select, .ev-textarea { display: block; width: 100%; border: 1px solid #d6d3d1; border-radius: .5rem; padding: .55rem .75rem; background: #fff; color: #262626; font-size: .875rem; }
.ev-input:focus, .ev-select:focus, .ev-textarea:focus { outline: none; border-color: #7a4f7f; box-shadow: 0 0 0 2px #dcc6dd; }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ev-brand); color: #fff; border-radius: .5rem; padding: .625rem 1rem; font-weight: 600; font-size: .875rem; transition: background .15s; cursor: pointer; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ev-btn:hover { background: var(--ev-brand-dark); }
.ev-btn:disabled { opacity: .5; cursor: not-allowed; }
.ev-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--ev-brand); color: var(--ev-brand); border-radius: .5rem; padding: .55rem 1rem; font-size: .875rem; font-weight: 600; background: #fff; cursor: pointer; }
.ev-btn-outline:hover { background: #f8f3f8; }
.ev-btn-sm { padding: .3rem .75rem; font-size: .75rem; }
.ev-btn-danger { background: #b91c1c; }
.ev-btn-danger:hover { background: #991b1b; }
.ev-chip { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .125rem .625rem; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.ev-chip-green { background: #ecfdf5; color: #065f46; } .ev-chip-amber { background: #fffbeb; color: #92400e; }
.ev-chip-red { background: #fef2f2; color: #991b1b; } .ev-chip-grey { background: #f5f5f4; color: #57534e; }
.ev-chip-blue { background: #eff6ff; color: #1e40af; } .ev-chip-brand { background: #f6eeec; color: #4a2c4f; }
.ev-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.ev-table th { text-align: left; font-weight: 600; color: #6b6b6b; font-size: .75rem; text-transform: uppercase; letter-spacing: .025em; padding: .5rem .75rem; background: #fafaf9; white-space: nowrap; }
.ev-table td { padding: .625rem .75rem; border-bottom: 1px solid #f5f5f4; vertical-align: top; }
.ev-table tr:hover td { background: #fdf9f8; }
.ev-toggle { position: relative; width: 2.6rem; height: 1.45rem; border-radius: 999px; background: #d6d3d1; cursor: pointer; transition: background .15s; border: 0; flex-shrink: 0; }
.ev-toggle::after { content: ''; position: absolute; top: .18rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ev-toggle[aria-checked="true"] { background: #4a2c4f; }
.ev-toggle[aria-checked="true"]::after { transform: translateX(1.12rem); }
.ev-nav a { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: .5rem; color: rgba(255, 255, 255, .8); font-size: .875rem; font-weight: 500; transition: background .15s; }
.ev-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ev-nav a[aria-current="page"] { background: rgba(255, 255, 255, .15); color: #fff; }
.ev-modal-bg { position: fixed; inset: 0; background: rgba(42, 24, 45, .45); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; z-index: 50; overflow-y: auto; }
.ev-modal { background: #fff; border-radius: 1rem; width: 100%; max-width: 40rem; padding: 1.5rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.ev-modal.wide { max-width: 64rem; }
.ev-modal h2 { color: #4a2c4f; }
.ev-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); padding: .75rem 1.25rem; border-radius: .75rem; color: #fff; font-size: .9rem; z-index: 60; box-shadow: 0 10px 25px rgba(0, 0, 0, .2); max-width: 90vw; }
.ev-cal-grid { display: grid; grid-template-columns: 4rem repeat(var(--cols), minmax(9rem, 1fr)); }
.ev-cal-slot { border-bottom: 1px dashed #f1ece9; }
.ev-cal-event { position: absolute; left: 3px; right: 3px; border-radius: .5rem; padding: .25rem .45rem; font-size: .72rem; overflow: hidden; cursor: pointer; border-left: 3px solid; line-height: 1.25; }
.ev-day { width: 1.15rem; height: 1.15rem; border-radius: .2rem; font-size: .55rem; display: flex; align-items: center; justify-content: center; }
.ev-slot { border: 1px solid #d6d3d1; border-radius: .5rem; padding: .5rem; text-align: center; font-size: .875rem; font-weight: 500; cursor: pointer; background: #fff; }
.ev-slot:hover { border-color: #7a4f7f; background: #f8f3f8; }
.ev-slot[aria-pressed="true"] { background: #4a2c4f; color: #fff; border-color: #4a2c4f; }
.ev-block { border: 1px solid var(--ev-line); border-radius: .75rem; padding: .75rem; background: #fdf9f8; }
[hidden] { display: none !important; }
@media print { .print\:hidden { display: none !important; } .print\:p-0 { padding: 0 !important; } }
#view:focus, #view:focus-visible { outline: none; box-shadow: none; }
