/* ═══════════════════════════════════════════════════════════════
   Pujari Today's Schedule — D2KSS layout (matches Users Admin)
   ═══════════════════════════════════════════════════════════════ */

.pujari-schedule-page {
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.pujari-schedule-banner__top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pujari-schedule-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pujari-schedule-banner .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--d2kss-navy, #061a31);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.pujari-schedule-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .pujari-schedule-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pujari-schedule-kpi {
    background: var(--d2kss-surface, #fff);
    border: 1px solid rgba(6, 26, 49, 0.08);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: var(--d2kss-card-shadow, 0 4px 20px rgba(6, 26, 49, 0.06));
}

.pujari-schedule-kpi__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.pujari-schedule-kpi__value {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--d2kss-navy, #061a31);
}

.pujari-schedule-kpi__hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.pujari-schedule-kpi--puja .pujari-schedule-kpi__value {
    color: #1d4ed8;
}

.pujari-schedule-kpi--offering .pujari-schedule-kpi__value {
    color: #0e7490;
}

.pujari-schedule-kpi--donation .pujari-schedule-kpi__value {
    color: #b45309;
}

.pujari-schedule-panel {
    background: var(--d2kss-surface, #fff);
    border: 1px solid rgba(6, 26, 49, 0.08);
    border-radius: 16px;
    box-shadow: var(--d2kss-card-shadow, 0 4px 20px rgba(6, 26, 49, 0.06));
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.pujari-schedule-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.pujari-schedule-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

@media (max-width: 575.98px) {
    .pujari-schedule-panel__actions .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

.pujari-schedule-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--d2kss-navy, #061a31);
    margin: 0;
}

/* Unified filter panel — mobile first */
.pujari-schedule-unified-filters {
    margin-bottom: 1rem;
}

.pujari-schedule-unified-filters.pujari-schedule-panel {
    padding: 0.75rem;
}

.pujari-schedule-panel__head {
    margin-bottom: 0.65rem;
}

/* Date filter — mobile first: type full width, from|to row, apply full width */
.pujari-schedule-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    align-items: end;
}

.pujari-schedule-field--date-mode {
    grid-column: 1 / -1;
}

.pujari-schedule-date-row__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    grid-column: 1 / -1;
    min-width: 0;
}

.pujari-schedule-field--apply {
    grid-column: 1 / -1;
}

.pujari-schedule-date-row .form-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.pujari-schedule-date-row .form-control,
.pujari-schedule-date-row .form-select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.5rem 0.55rem;
    font-size: 16px;
    border-radius: 10px;
    border-color: rgba(6, 26, 49, 0.12);
    box-sizing: border-box;
}

.pujari-schedule-date-row .form-select {
    padding-right: 2rem;
}

.pujari-schedule-date-row .form-control:focus,
.pujari-schedule-date-row .form-select:focus {
    border-color: var(--d2kss-teal, #0088a8);
    box-shadow: 0 0 0 3px rgba(0, 136, 168, 0.15);
}

.pujari-schedule-apply-btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pujari-schedule-date-row .pujari-schedule-field {
    min-width: 0;
}

/* Tablet+: single row — date filter | from | to | apply */
@media (min-width: 640px) {
    .pujari-schedule-date-row {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(7.5rem, auto);
        gap: 0.5rem;
    }

    .pujari-schedule-field--date-mode,
    .pujari-schedule-date-row__inputs,
    .pujari-schedule-field--apply {
        grid-column: auto;
    }

    .pujari-schedule-date-row__inputs {
        display: contents;
    }

    .pujari-schedule-field--apply {
        align-self: end;
    }

    .pujari-schedule-date-row .form-control,
    .pujari-schedule-date-row .form-select {
        font-size: 0.9375rem;
        min-height: 44px;
    }
}

@media (min-width: 768px) {
    .pujari-schedule-date-row {
        gap: 0.65rem;
    }
}

.pujari-schedule-quick-dates {
    margin-top: 0.5rem;
}

.pujari-schedule-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.pujari-schedule-filter-grid--secondary {
    margin-top: 0.65rem;
}

.pujari-schedule-field--span {
    grid-column: 1 / -1;
}

.pujari-schedule-field .form-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.pujari-schedule-field .form-control,
.pujari-schedule-field .form-select {
    min-height: 44px;
    border-radius: 12px;
    border-color: rgba(6, 26, 49, 0.12);
    font-size: 0.9375rem;
}

.pujari-schedule-field .form-select {
    padding-right: 2.25rem;
}

.pujari-schedule-field .form-control:focus,
.pujari-schedule-field .form-select:focus {
    border-color: var(--d2kss-teal, #0088a8);
    box-shadow: 0 0 0 3px rgba(0, 136, 168, 0.15);
}

.pujari-schedule-field--apply .btn {
    min-height: 48px;
    font-weight: 600;
    border-radius: 12px;
}

.pujari-schedule-filter-divider {
    height: 1px;
    background: rgba(6, 26, 49, 0.08);
    margin: 0.5rem 0 0;
}

/* Secondary filters: 2 columns from small tablets up */
@media (min-width: 480px) {
    .pujari-schedule-filter-grid--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop: three secondary filters (search is separate above) */
@media (min-width: 992px) {
    .pujari-schedule-filter-grid--secondary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.pujari-schedule-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    align-items: end;
    margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
    .pujari-schedule-dates {
        grid-template-columns: 1fr 1fr auto;
    }
}

.pujari-schedule-date-field .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.pujari-schedule-date-field .form-control {
    min-height: 44px;
    border-radius: 10px;
    border-color: rgba(6, 26, 49, 0.12);
}

.pujari-schedule-apply {
    grid-column: 1 / -1;
    min-height: 44px;
    font-weight: 600;
    border-radius: 10px;
}

@media (min-width: 576px) {
    .pujari-schedule-apply {
        grid-column: auto;
        min-width: 7rem;
    }
}

.pujari-schedule-quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pujari-schedule-quick-dates .btn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    min-height: 34px;
    padding: 0.25rem 0.65rem;
}

.pujari-schedule-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

@media (min-width: 576px) {
    .pujari-schedule-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .pujari-schedule-filters {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.pujari-schedule-filter-field .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.pujari-schedule-filter-field .form-select {
    min-height: 46px;
    border-radius: 10px;
    border-color: rgba(6, 26, 49, 0.12);
    font-size: 0.95rem;
    padding-right: 2.25rem;
}

.pujari-schedule-filter-field .form-select:focus {
    border-color: var(--d2kss-teal, #0088a8);
    box-shadow: 0 0 0 3px rgba(0, 136, 168, 0.15);
}

.pujari-schedule-search {
    margin-bottom: 0.85rem;
}

.pujari-schedule-search .input-group-text {
    background: #f8fafc;
    border-color: rgba(6, 26, 49, 0.12);
    color: #64748b;
    border-radius: 12px 0 0 12px;
    min-height: 46px;
}

.pujari-schedule-search .form-control {
    border-color: rgba(6, 26, 49, 0.12);
    min-height: 46px;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
}

.pujari-schedule-search .form-control:focus {
    border-color: var(--d2kss-teal, #0088a8);
    box-shadow: 0 0 0 3px rgba(0, 136, 168, 0.15);
}

.pujari-schedule-search .btn {
    min-height: 46px;
    border-radius: 0 12px 12px 0;
    border-color: rgba(6, 26, 49, 0.12);
}

.pujari-schedule-tabbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.3rem;
    margin-top: 0.65rem;
    background: #f8fafc;
    border: 1px solid rgba(6, 26, 49, 0.08);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pujari-schedule-tabbar::-webkit-scrollbar {
    display: none;
}

.pujari-schedule-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 0;
    min-width: 4.5rem;
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .pujari-schedule-tabbar {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .pujari-schedule-tab {
        flex: 1 1 auto;
        font-size: 0.88rem;
        padding: 0.55rem 1rem;
        gap: 0.4rem;
    }
}

.pujari-schedule-tab:hover {
    background: rgba(6, 26, 49, 0.04);
    color: var(--d2kss-navy, #061a31);
}

.pujari-schedule-tab.is-active {
    background: var(--d2kss-navy, #061a31);
    border-color: var(--d2kss-navy, #061a31);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 26, 49, 0.22);
}

.pujari-schedule-section {
    margin-bottom: 1.5rem;
}

.pujari-schedule-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--d2kss-navy, #061a31);
    margin: 0 0 0.85rem;
}

.pujari-schedule-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}

.pujari-schedule-empty {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border: 1px dashed rgba(6, 26, 49, 0.15);
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    color: #64748b;
}

.pujari-schedule-empty__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.55;
    color: var(--d2kss-navy, #061a31);
}

.pujari-schedule-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.pujari-schedule-card {
    border: 1px solid rgba(6, 26, 49, 0.08);
    border-radius: 16px;
    background: #fff;
    margin-bottom: 0.85rem;
    overflow: hidden;
    box-shadow: var(--d2kss-card-shadow, 0 4px 20px rgba(6, 26, 49, 0.06));
}

.pujari-schedule-card__header {
    padding: 0.9rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #061a31 100%);
}

.pujari-schedule-card__header--offering {
    background: linear-gradient(135deg, #0088a8 0%, #061a31 100%);
}

.pujari-schedule-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.pujari-schedule-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.pujari-schedule-card__badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    white-space: nowrap;
}

.pujari-schedule-card__meta {
    margin: 0.45rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.82rem;
    opacity: 0.92;
    color: rgba(255, 255, 255, 0.95);
}

.pujari-schedule-card__meta i {
    margin-right: 0.15rem;
}

.pujari-schedule-kind {
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
}

.pujari-schedule-kind.is-booking {
    background: rgba(251, 191, 36, 0.35);
}

.pujari-schedule-card__body {
    padding: 0.85rem 1rem 1rem;
    background: #fff;
}

.pujari-schedule-page .table {
    font-size: 0.88rem;
}

.pujari-schedule-page .devotee-booking-card {
    border-radius: 12px;
}

.pujari-schedule-card--grid {
    padding: 0.65rem;
}

@media (min-width: 992px) {
    .pujari-schedule-card--grid {
        padding: 0;
    }
}

.pujari-schedule-card--grid .pujari-schedule-empty {
    margin: 0.5rem;
}

/* Mobile-first schedule row cards */
.schedule-row-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-row-card {
    background: #fff;
    border: 1px solid rgba(6, 26, 49, 0.1);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 10px rgba(6, 26, 49, 0.05);
    border-left-width: 4px;
    border-left-style: solid;
}

.schedule-row-card.is-puja {
    border-left-color: #1d4ed8;
}

.schedule-row-card.is-offering {
    border-left-color: #0088a8;
}

.schedule-row-card.is-donation {
    border-left-color: #d97706;
}

.schedule-row-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.schedule-row-card__amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--d2kss-navy, #061a31);
    white-space: nowrap;
}

.schedule-row-card__service {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--d2kss-navy, #061a31);
    word-break: break-word;
}

.schedule-row-card__name {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    word-break: break-word;
}

.schedule-row-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
    margin: 0;
}

.schedule-row-card__fact {
    min-width: 0;
}

.schedule-row-card__fact--wide {
    grid-column: 1 / -1;
}

.schedule-row-card__fact dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.schedule-row-card__fact dd {
    margin: 0.12rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    word-break: break-word;
    line-height: 1.4;
}

.schedule-row-card__notes {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(6, 26, 49, 0.06);
}

.schedule-row-card__notes-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.schedule-row-card__notes-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #334155;
    word-break: break-word;
    white-space: pre-wrap;
}

.schedule-row-card__foot {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(6, 26, 49, 0.08);
}

.schedule-row-card__ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    word-break: break-all;
}

.pujari-schedule-grid-wrap {
    border-radius: 12px;
    overflow: auto;
    border: 1px solid rgba(6, 26, 49, 0.08);
    background: #fff;
}

.pujari-schedule-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.pujari-schedule-grid thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f5f9;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(6, 26, 49, 0.1);
}

.pujari-schedule-grid tbody td {
    vertical-align: top;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid rgba(6, 26, 49, 0.06);
    color: #334155;
}

.pujari-schedule-grid tbody tr:last-child td {
    border-bottom: none;
}

.pujari-schedule-grid tbody tr:hover td {
    background: #f8fafc;
}

.schedule-grid__service {
    font-weight: 700;
    color: var(--d2kss-navy, #061a31);
    min-width: 7rem;
}

.schedule-grid__name {
    font-weight: 600;
    min-width: 6rem;
}

.schedule-grid__date {
    white-space: nowrap;
}

.schedule-grid__details {
    font-size: 0.82rem;
    color: #475569;
    max-width: 11rem;
    word-break: break-word;
}

.schedule-grid__amount {
    font-weight: 700;
    white-space: nowrap;
    color: var(--d2kss-navy, #061a31);
}

.schedule-grid__contact {
    font-size: 0.82rem;
    max-width: 10rem;
    word-break: break-word;
}

.schedule-grid__notes {
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 16rem;
    min-width: 10rem;
    word-break: break-word;
    white-space: normal;
    color: #475569;
}

.pujari-schedule-grid__ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: #64748b;
    word-break: break-all;
    max-width: 9rem;
}

.pujari-schedule-type {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.pujari-schedule-type.is-puja {
    background: #dbeafe;
    color: #1d4ed8;
}

.pujari-schedule-type.is-offering {
    background: #cffafe;
    color: #0e7490;
}

.pujari-schedule-type.is-donation {
    background: #ffedd5;
    color: #b45309;
}

@media (max-width: 575.98px) {
    .schedule-row-card {
        padding: 0.85rem 0.9rem;
    }

    .schedule-row-card__facts {
        grid-template-columns: 1fr;
    }

    .schedule-row-card__fact--wide {
        grid-column: auto;
    }
}

.pujari-schedule-grid-hint {
    padding: 0 0.25rem;
}

.pujari-schedule-section.history-unified-section {
    margin-top: 1rem;
}

.pujari-schedule-page .history-unified-panel {
    border: 1px solid rgba(139, 105, 20, 0.12);
}

/* ── Mobile-first: devotee search first ── */
.pujari-schedule-field--search {
    margin-bottom: 0.75rem;
}

.pujari-schedule-search-wrap {
    position: relative;
}

.pujari-schedule-search-wrap__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 1rem;
}

.pujari-schedule-search-wrap .form-control {
    min-height: 48px;
    padding-left: 2.5rem;
    font-size: 16px;
    border-radius: 12px;
    border-color: rgba(6, 26, 49, 0.12);
}

.pujari-schedule-field .form-control,
.pujari-schedule-field .form-select {
    font-size: 16px;
}

@media (min-width: 768px) {
    .pujari-schedule-field .form-control,
    .pujari-schedule-field .form-select {
        font-size: 0.9375rem;
    }
}

.pujari-schedule-more-filters-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.35rem 0 0.5rem;
    padding: 0.65rem 0.85rem;
    min-height: 44px;
    border: 1px dashed rgba(6, 26, 49, 0.18);
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .pujari-schedule-filter-grid--secondary:not(.is-open) {
        display: none;
    }

    .pujari-schedule-tabbar--sticky {
        position: sticky;
        top: 0;
        z-index: 30;
        margin-top: 0.75rem;
        box-shadow: 0 6px 16px rgba(6, 26, 49, 0.08);
        background: #fff;
    }

    .pujari-schedule-tab {
        min-width: 3.75rem;
        flex: 0 0 auto;
        padding: 0.45rem 0.55rem;
        font-size: 0.78rem;
    }

    .pujari-schedule-tab .history-section-count {
        font-size: 0.68rem;
        min-width: 1.15rem;
        padding: 0.05rem 0.3rem;
    }

    .pujari-schedule-panel__actions .btn-sm {
        min-height: 40px;
    }

    .admin-grid-pagination {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }

    .admin-grid-pagination .btn {
        flex: 1 1 auto;
        min-width: 44px;
    }
}

/* ── Pujari daily duty cards ── */
.pujari-duty-board {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.pujari-duty-day {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2744;
}

.pujari-duty-group__head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.pujari-duty-group__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f2744;
}

.pujari-duty-group__meta {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.pujari-duty-type {
    flex-shrink: 0;
    margin-top: 0.15rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pujari-duty-type.is-puja {
    background: #dbeafe;
    color: #1d4ed8;
}

.pujari-duty-type.is-offering {
    background: #cffafe;
    color: #0e7490;
}

.pujari-duty-type.is-donation {
    background: #ffedd5;
    color: #b45309;
}

.pujari-duty-type.is-cart,
.pujari-duty-type.is-other {
    background: #e2e8f0;
    color: #334155;
}

.pujari-duty-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .pujari-duty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }
}

.pujari-duty-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0.95rem 1rem 0.85rem;
    background: #fff;
    border: 1px solid rgba(15, 39, 68, 0.1);
    border-left: 4px solid #94a3b8;
    border-radius: 12px;
}

.pujari-duty-card.is-puja {
    border-left-color: #1d4ed8;
}

.pujari-duty-card.is-offering {
    border-left-color: #0e7490;
}

.pujari-duty-card.is-donation {
    border-left-color: #b45309;
}

.pujari-duty-card .pujari-duty-type {
    margin-top: 0;
}

.pujari-duty-card__service {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f2744;
}

.pujari-duty-card__when {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.pujari-duty-card__time {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f2744;
}

.pujari-duty-card__date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.pujari-duty-card__devotee {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f2744;
    word-break: break-word;
}

.pujari-duty-card__phone {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.pujari-duty-card__phone i {
    margin-right: 0.25rem;
    color: #64748b;
}

.pujari-duty-card__detail,
.pujari-duty-card__qty {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #475569;
}

.pujari-duty-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.pujari-duty-card__foot .btn {
    flex-shrink: 0;
}

.pujari-schedule-page .pujari-duty-board {
    margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
    .pujari-duty-card__time {
        font-size: 1.1rem;
    }
}

/* Seva collect styles moved to css/seva-collect-page.css (loaded last). */

