/* Step38 CMS PRO: dashboard readability, real calendar grid, firewall tables */
.dash-layout {
    align-items: start;
}
.dash-sidebar {
    position: sticky;
    top: 92px;
}
.dash-pro-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef6ff 100%);
    border: 1px solid rgba(37,99,235,.08);
}
.dash-stats--pro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dash-pro-card {
    border: 1px solid rgba(15,23,42,.08);
    overflow: hidden;
    position: relative;
}
.dash-pro-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37,99,235,.08);
}
.dash-pro-card.is-red strong { color: #dc2626; }
.dash-pro-card.is-green strong { color: #059669; }
.dash-pro-card.is-orange strong { color: #ea580c; }
.dash-pro-card.is-violet strong { color: #7c3aed; }
.dash-pro-card.is-dark strong { color: #111827; }
.dash-pro-card.is-cyan strong { color: #0891b2; }
.dash-two-columns--wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 24px;
}
.dash-mini-item--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}
.dash-mini-item--row > a,
.dash-mini-item--row > span {
    flex-shrink: 0;
}
.dash-inline-form {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.dash-inline-form input {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    padding: 12px 14px;
    font: inherit;
}

/* Calendar hard reset: prevents theme typography from turning it into a text list */
.scheduler-calendar,
.scheduler-calendar * {
    box-sizing: border-box;
}
.scheduler-calendar {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
}
.scheduler-weekdays,
.scheduler-week {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100%;
}
.scheduler-weekdays b {
    display: block;
    padding: 12px 8px;
    text-align: center;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    line-height: 1.1;
}
.scheduler-day {
    min-width: 0;
    min-height: 136px;
    padding: 8px;
    border-right: 1px solid #edf1f5;
    border-top: 1px solid #edf1f5;
    background: #fff;
    overflow: hidden;
}
.scheduler-day-num {
    font-size: 14px;
}
.scheduler-event {
    text-decoration: none !important;
    overflow: hidden;
    display: block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}
.scheduler-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f5;
}
.scheduler-row:last-child { border-bottom: 0; }
.scheduler-row strong { display: block; line-height: 1.25; }
.scheduler-row span { display: block; color: #64748b; margin-top: 4px; }

@media (max-width: 900px) {
    .dash-stats--pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-two-columns--wide { grid-template-columns: 1fr; }
    .dash-inline-form { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
}
@media (max-width: 760px) {
    .dash-layout { padding: 12px !important; gap: 14px; }
    .dash-sidebar { border-radius: 20px; padding: 18px; }
    .dash-sidebar h2 { font-size: 26px !important; }
    .dash-sidebar a { font-size: 16px !important; margin-bottom: 12px; }
    .dash-header { padding: 22px !important; border-radius: 22px; }
    .dash-header h1 { font-size: 34px !important; line-height: 1.05 !important; }
    .dash-panel { padding: 18px !important; border-radius: 22px; }
    .dash-panel__head h2 { font-size: 24px !important; }
    .dash-stats--pro { grid-template-columns: 1fr; }
    .dash-stats a { padding: 18px !important; border-radius: 20px; }
    .dash-stats strong { font-size: 38px !important; }
    .scheduler-weekdays { display: none !important; }
    .scheduler-week { display: block !important; }
    .scheduler-day {
        min-height: 0;
        border-right: 0;
        padding: 12px;
    }
    .scheduler-day.is-empty { display: none; }
    .scheduler-day-num {
        width: auto;
        height: auto;
        border-radius: 0;
        background: transparent;
        margin-bottom: 8px;
        font-size: 18px;
    }
    .scheduler-event {
        padding: 10px 12px !important;
        margin: 6px 0 !important;
        font-size: 14px !important;
    }
}
