/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Resource planning: a day-based calendar without external calendar services. */
.planning-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.planning-switch { display: inline-flex; padding: 4px; background: #e9edf3; border-radius: 10px; gap: 4px; }
.planning-switch a { padding: 8px 18px; color: #475569; font-size: 14px; font-weight: 600; border-radius: 7px; }
.planning-switch a.is-active { color: #1d4ed8; background: white; box-shadow: 0 1px 3px #0f172a15; }
.planning-calendar-shell { border: 1px solid #dce3ed; border-radius: 14px; background: white; overflow: hidden; box-shadow: 0 2px 6px #0f172a05; }
.planning-calendar-intro { padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.planning-calendar-intro h2 { font-size: 17px; font-weight: 650; color: #0f172a; }
.planning-calendar-intro p { margin-top: 5px; font-size: 13px; color: #64748b; }
.planning-calendar-scroll { overflow: auto; max-height: 680px; }
.planning-calendar { width: 100%; min-width: 1180px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.planning-calendar th, .planning-calendar td { border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; vertical-align: top; text-align: left; }
.planning-calendar tr > :last-child { border-right: 0; }
.planning-calendar tbody tr:last-child > * { border-bottom: 0; }
.planning-calendar thead th { position: sticky; top: 0; z-index: 2; padding: 14px 12px; background: #f8fafc; color: #334155; height: 88px; }
.planning-calendar .planning-person { width: 205px; position: sticky; left: 0; z-index: 1; background: white; padding: 20px 16px; }
.planning-calendar thead .planning-person { z-index: 3; background: #f8fafc; }
.planning-day-name { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin-bottom: 4px; }
.planning-calendar time { font-size: 15px; font-weight: 650; }
.planning-calendar .is-weekend { background: #f8fafc; }
.planning-calendar .is-today { background: #eff6ff; }
.planning-today { display: block; font-size: 10px; color: #1d4ed8; margin-top: 2px; }
.planning-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #e0e7ff; color: #4338ca; border-radius: 9px; font-size: 11px; margin-bottom: 9px; }
.planning-person-name { display: block; font-size: 13px; font-weight: 600; color: #1e293b; overflow-wrap: anywhere; }
.planning-person-hours { display: block; font-size: 12px; color: #64748b; font-weight: 400; margin-top: 5px; }
.planning-cell { min-height: 148px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.planning-day-total { color: #64748b; font-size: 11px; font-weight: 650; align-self: flex-end; }
.planning-day-total.is-over { background: #fff1d6; color: #92400e; border-radius: 4px; padding: 2px 5px; }
.planning-warning { font-size: 11px; line-height: 1.4; color: #92400e; }
.planning-event { padding: 10px; background: #eaf1ff; border: 1px solid #cbdcff; border-left: 3px solid #4f72dc; border-radius: 7px; overflow-wrap: anywhere; }
.planning-event strong { display: block; color: #1e3a8a; font-size: 12px; line-height: 1.5; }
.planning-event-link { display: block; }
.planning-event:has(a:hover) { background: #dfeaff; border-color: #8ca9ee; }
.planning-event-customer { display: block; font-size: 11px; color: #52648a; margin-top: 3px; }
.planning-event-hours { display: inline-block; color: #1e40af; background: #fff9; padding: 2px 5px; border-radius: 4px; font-size: 11px; font-weight: 650; margin-top: 8px; }
.planning-event-note { font-size: 11px; color: #475569; white-space: pre-line; margin-top: 7px; }
.planning-add { display: flex; gap: 6px; align-items: center; justify-content: center; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 7px 4px; color: #64748b; font-size: 11px; margin-top: auto; }
.planning-add:hover { background: #eff6ff; color: #1d4ed8; border-color: #93b4ef; }
.planning-add:focus-visible, .planning-event-link:focus-visible, .planning-switch a:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.planning-free { color: #94a3b8; font-size: 11px; }
.planning-no-users { padding: 24px; color: #64748b; }
@media (max-width: 640px) { .planning-calendar-intro { padding: 16px; } .planning-calendar .planning-person { width: 150px; } }

/* Allocation editor */
.allocation-page { max-width: 1080px; margin: 0 auto; padding: 12px 0 40px; color: #172033; }
.allocation-back { display: inline-flex; align-items: center; gap: 9px; color: #64748b; font-size: 13px; font-weight: 500; margin-bottom: 26px; }
.allocation-back:hover { color: #1d4ed8; }
.allocation-page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.allocation-eyebrow { color: #64748b; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.allocation-page-header h1 { font-size: clamp(25px, 3vw, 32px); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; margin: 0; }
.allocation-page-description { font-size: 14px; color: #64748b; margin-top: 10px; line-height: 1.6; }
.allocation-type-badge { display: inline-flex; align-items: center; gap: 7px; background: #eef2ff; border: 1px solid #dce3ff; color: #465bb3; padding: 6px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.allocation-type-badge > span { width: 6px; height: 6px; background: #6579d2; border-radius: 50%; }
.allocation-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.allocation-form-card { background: #fff; border: 1px solid #dce3ec; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 10px #17203304, 0 1px 2px #17203304; }
.allocation-form-body { padding: 28px 30px; }
.allocation-section + .allocation-section { margin-top: 26px; padding-top: 26px; border-top: 1px solid #edf0f5; }
.allocation-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.allocation-step { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 29px; height: 29px; border: 1px solid #e3e8f0; background: #f8fafc; border-radius: 8px; color: #64748b; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.allocation-section-heading h2 { font-size: 14px; font-weight: 650; margin: 0; line-height: 1.4; color: #1e293b; }
.allocation-section-heading p { font-size: 12px; line-height: 1.5; color: #64748b; margin-top: 4px; }
.allocation-field + .allocation-field { margin-top: 19px; }
.allocation-field label { display: block; color: #344256; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.allocation-form .allocation-input { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 7px; background-color: #fff; color: #1e293b; font: inherit; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 2px #0f172a04; transition: border-color .15s, box-shadow .15s; }
.allocation-form select.allocation-input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.allocation-form .allocation-input:hover { border-color: #94a3b8; }
.allocation-form .allocation-input:focus { outline: none; border-color: #5572d9; box-shadow: 0 0 0 3px #5572d91a; }
.allocation-form .allocation-input::placeholder { color: #94a3b8; }
.allocation-form textarea.allocation-input { resize: vertical; min-height: 96px; }
.allocation-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.allocation-field-grid > .allocation-field { margin-top: 0; }
.allocation-hours-input { position: relative; }
.allocation-hours-input .allocation-input { padding-right: 56px; font-variant-numeric: tabular-nums; }
.allocation-hours-input > span { position: absolute; top: 12px; right: 35px; pointer-events: none; font-size: 13px; color: #64748b; }
.allocation-field-hint { color: #64748b; font-size: 11px; margin-top: 7px; }
.allocation-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.allocation-label-row > span { color: #64748b; font-size: 11px; }
.allocation-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 30px; border-top: 1px solid #e5eaf1; background: #fafbfd; }
.allocation-footer-note { color: #64748b; font-size: 11px; max-width: 160px; line-height: 1.5; }
.allocation-form-actions { display: flex; gap: 10px; align-items: center; }
.allocation-button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; white-space: nowrap; }
.allocation-button-primary { color: #fff; background: #3355c5; border-color: #3355c5; box-shadow: 0 1px 2px #1e3a8a1a; }
.allocation-button-primary:hover { background: #2947ab; }
.allocation-button-secondary { color: #475569; background: #fff; border-color: #d8e0ea; }
.allocation-button-secondary:hover { background: #f1f5f9; }
.allocation-button:focus-visible, .allocation-back:focus-visible { outline: 2px solid #3355c5; outline-offset: 3px; }
.allocation-sidebar { padding: 22px 4px; }
.allocation-guide-icon { color: #52658e; margin-bottom: 17px; }
.allocation-sidebar h2 { color: #334155; font-size: 13px; font-weight: 650; margin-bottom: 9px; }
.allocation-sidebar h3 { color: #475569; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.allocation-sidebar p { color: #64748b; font-size: 12px; line-height: 1.8; }
.allocation-guide-divider { height: 1px; background: #e2e8f0; margin: 23px 0; }
.allocation-errors { margin: 24px 30px 0; padding: 14px 16px; border: 1px solid #fecaca; border-radius: 8px; background: #fff5f5; color: #991b1b; font-size: 13px; }
.allocation-errors ul { list-style: disc; padding-left: 18px; margin-top: 6px; }
.allocation-form .field_with_errors .allocation-input { border-color: #dc2626; }
@media (max-width: 850px) { .allocation-editor-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; } .allocation-sidebar { padding: 20px 4px; max-width: 560px; } }
@media (max-width: 520px) { .allocation-page-header { align-items: flex-start; } .allocation-type-badge { display: none; } .allocation-form-body { padding: 22px 18px; } .allocation-field-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .allocation-form-footer { padding: 18px; flex-direction: column; align-items: stretch; } .allocation-footer-note { max-width: none; } .allocation-form-actions { justify-content: flex-end; flex-wrap: wrap; } .allocation-errors { margin: 18px 18px 0; } }

/* Application shell */
.app-navigation { background: #fff; border-bottom: 1px solid #dce3ec; }
.app-navigation-top { max-width: 1280px; margin: auto; min-height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.app-brand { display: inline-flex; align-items: center; gap: 10px; color: #172033; font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.app-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #fff; background: #3355c5; border-radius: 8px; font-size: 16px; }
.app-account { display: flex; align-items: center; gap: 16px; min-width: 0; }
.app-account-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #64748b; }
.app-logout { font-size: 12px; font-weight: 500; color: #475569; padding: 7px 12px; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; }
.app-logout:hover { background: #f8fafc; }
.app-nav-panel { max-width: 1280px; margin: auto; padding: 0 24px; }
.app-nav-list { display: flex; align-items: stretch; gap: 4px; }
.app-nav-item { position: relative; display: flex; }
.app-nav-link, .app-nav-trigger { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 44px; padding: 10px 12px; font-size: 13px; font-weight: 500; color: #475569; background: none; border-bottom: 2px solid transparent; cursor: pointer; }
.app-nav-link:hover, .app-nav-trigger:hover, .app-nav-trigger[aria-expanded=true] { color: #172033; background: #f8fafc; }
.app-nav-link[aria-current=page], .app-nav-trigger.is-active { color: #3355c5; border-bottom-color: #3355c5; }
.app-nav-chevron { width: 15px; height: 15px; color: #94a3b8; transition: transform .15s ease; }
.app-nav-trigger.is-active .app-nav-chevron { color: #3355c5; }
.app-nav-trigger[aria-expanded=true] .app-nav-chevron { transform: rotate(180deg); }
.app-nav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 240px; padding: 6px; background: #fff; border: 1px solid #dce3ec; border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06); }
.app-nav-item:last-child .app-nav-menu { left: auto; right: 0; }
.app-nav-menu[hidden] { display: none; }
.app-nav-menu-link { display: flex; align-items: center; padding: 9px 12px; border-radius: 6px; font-size: 13px; color: #334155; white-space: nowrap; }
.app-nav-menu-link:hover, .app-nav-menu-link:focus-visible { color: #172033; background: #f1f5f9; }
.app-nav-menu-link[aria-current=page] { color: #3355c5; background: #eef2ff; font-weight: 600; }
.app-nav-toggle, .app-nav-account { display: none; }
.app-navigation a:focus-visible, .app-navigation button:focus-visible { outline: 2px solid #3355c5; outline-offset: -3px; }
.app-main { min-height: calc(100vh - 170px); }
.planning-filter { border: 1px solid #dce3ec; box-shadow: none; border-radius: 12px; padding: 20px 24px; }
.planning-filter input, .planning-filter select { min-height: 42px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 13px; max-width: 100%; }
@media(max-width: 900px) { .app-navigation-top .app-account, .app-nav-panel { display: none; } .app-nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 13px; font-weight: 500; color: #334155; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; } .app-nav-toggle svg { width: 18px; height: 18px; } .app-nav-toggle[aria-expanded=true] { background: #f1f5f9; } .app-nav-panel.is-open { display: block; padding: 8px 16px 16px; border-top: 1px solid #eef2f6; } .app-nav-list { flex-direction: column; gap: 2px; } .app-nav-item { flex-direction: column; } .app-nav-link, .app-nav-trigger { width: 100%; justify-content: space-between; border-bottom: 0; border-radius: 6px; } .app-nav-link[aria-current=page] { background: #eef2ff; } .app-nav-menu, .app-nav-item:last-child .app-nav-menu { position: static; min-width: 0; margin: 2px 0 6px 12px; padding: 2px 0 2px 10px; border: 0; border-left: 1px solid #e2e8f0; border-radius: 0; box-shadow: none; } .app-nav-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #eef2f6; font-size: 12px; color: #64748b; } .app-nav-account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media(max-width: 640px) { .app-navigation-top { padding: 0 16px; min-height: 58px; } .app-brand { font-size: 16px; } .planning-toolbar { flex-wrap: wrap; } .planning-filter { padding: 18px; } }
