/* GoDash date picker — global compact size (admin, website, kiosk)
 * Single: 280px | Range: 520px — change only --godash-drp-panel-width below */
.godash-drp {
    --godash-drp-accent: #dc2626;
    --godash-drp-panel-width: 520px;
    position: relative;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.godash-drp-single {
    --godash-drp-panel-width: 280px;
}

@media (max-width: 699px) {
    .godash-drp:not(.godash-drp-single) {
        --godash-drp-panel-width: 300px;
    }
}

.godash-drp-trigger {
    width: 100%;
    text-align: left;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.godash-drp-trigger:hover {
    border-color: #94a3b8;
}

.godash-drp-trigger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.godash-drp-trigger-cell {
    padding: 0.75rem;
    border-right: 1px solid #e2e8f0;
}

.godash-drp-trigger-cell:last-child {
    border-right: none;
}

.godash-drp-trigger-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.godash-drp-trigger-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.godash-drp-trigger-value.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

.godash-drp-single .godash-drp-trigger-cell {
    border-right: none;
}

/* Panel — CSS variables set on element (needed when portaled to body) */
.godash-drp-panel {
    --godash-drp-accent: #dc2626;
    --godash-drp-surface: #ffffff;
    --godash-drp-text: #0f172a;
    --godash-drp-muted: #64748b;
    --godash-drp-border: #e2e8f0;
    --godash-drp-range-bg: rgba(220, 38, 38, 0.12);
    --godash-drp-footer-bg: #f8fafc;
    --godash-drp-continue-bg: #f1f5f9;
    --godash-drp-continue-text: #0f172a;
    position: fixed;
    z-index: 100060;
    left: 0;
    right: auto;
    margin-top: 0;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    background: var(--godash-drp-surface);
    color: var(--godash-drp-text);
    border: 1px solid var(--godash-drp-border);
    width: min(var(--godash-drp-panel-width), calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    pointer-events: auto;
}

.godash-drp-panel.godash-drp-panel--dark {
    --godash-drp-surface: #333652;
    --godash-drp-text: #ffffff;
    --godash-drp-muted: rgba(255, 255, 255, 0.65);
    --godash-drp-border: rgba(255, 255, 255, 0.08);
    --godash-drp-range-bg: rgba(255, 255, 255, 0.12);
    --godash-drp-footer-bg: rgba(0, 0, 0, 0.15);
    --godash-drp-continue-bg: rgba(255, 255, 255, 0.12);
    --godash-drp-continue-text: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.45);
    border-color: transparent;
}

.godash-drp.godash-drp-is-open {
    position: relative;
    z-index: 100050;
}

.godash-drp-header {
    background: var(--godash-drp-accent);
    color: #fff;
    padding: 0.7rem 1rem 0.8rem;
}

.godash-drp-header-title {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.godash-drp-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.godash-drp-header-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.godash-drp-header-date {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.1rem;
}

.godash-drp-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.65rem;
    background: var(--godash-drp-footer-bg);
    border-bottom: 1px solid var(--godash-drp-border);
}

.godash-drp-nav-btn {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid var(--godash-drp-border);
    border-radius: 0.4rem;
    background: var(--godash-drp-surface);
    color: var(--godash-drp-text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.godash-drp-nav-btn:hover {
    border-color: var(--godash-drp-accent);
    color: var(--godash-drp-accent);
}

.godash-drp-nav-select {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--godash-drp-border);
    border-radius: 0.5rem;
    background: var(--godash-drp-surface);
    color: var(--godash-drp-text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.4rem;
    cursor: pointer;
}

.godash-drp-nav-year {
    flex: 0 0 4.25rem;
}

.godash-drp-body {
    padding: 0.5rem 0.75rem 0.35rem;
    max-height: min(260px, 45vh);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.5rem;
}

.godash-drp-single .godash-drp-body {
    display: block;
}

.godash-drp-month {
    margin-bottom: 0.65rem;
}

.godash-drp-month-title {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
    color: var(--godash-drp-text);
}

.godash-drp-weekdays,
.godash-drp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.godash-drp-weekday {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--godash-drp-accent);
    padding: 0.25rem 0;
}

.godash-drp-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--godash-drp-text);
    cursor: pointer;
    border-radius: 9999px;
    position: relative;
    z-index: 1;
}

.godash-drp-day:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

.godash-drp-day.is-other-month {
    opacity: 0.35;
}

.godash-drp-day.is-in-range::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--godash-drp-range-bg);
    z-index: -1;
    border-radius: 0;
}

.godash-drp-day.is-range-start::before {
    left: 50%;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
}

.godash-drp-day.is-range-end::before {
    right: 50%;
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
}

.godash-drp-day.is-range-start.is-range-end::before {
    left: 0;
    right: 0;
    border-radius: 9999px;
}

.godash-drp-day.is-selected,
.godash-drp-day.is-range-start,
.godash-drp-day.is-range-end {
    background: var(--godash-drp-accent);
    color: #fff;
}

.godash-drp-panel:not(.godash-drp-panel--dark) .godash-drp-day.is-today:not(.is-selected):not(.is-range-start):not(.is-range-end) {
    box-shadow: inset 0 0 0 2px var(--godash-drp-accent);
}

.godash-drp-panel--dark .godash-drp-day.is-today:not(.is-selected):not(.is-range-start):not(.is-range-end) {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.godash-drp-footer {
    padding: 0.55rem 0.75rem 0.75rem;
    background: var(--godash-drp-footer-bg);
}

.godash-drp-continue {
    width: 100%;
    border: none;
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--godash-drp-continue-bg);
    color: var(--godash-drp-continue-text);
    cursor: pointer;
}

.godash-drp-continue:hover:not(:disabled) {
    filter: brightness(0.95);
}

.godash-drp-panel--dark .godash-drp-continue:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    filter: none;
}

.godash-drp-continue:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.godash-drp-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.5rem;
    padding: 0 1rem 0.75rem;
}

.godash-drp-panel--dark .godash-drp-error {
    color: #fecaca;
}

.kiosk-page .godash-drp-trigger {
    background: rgba(255, 255, 255, 0.93);
}
