@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'Gravitica';
    src: url('/fonts/Gravitica-Medium.otf');
    src: format('opentype');
}

@font-face {
    font-family: 'Gravitica';
    src: url('/fonts/Gravitica-MediumItalic.otf');
    src: format('opentype');
}

html, body {
    font-family: 'Gravitica', Helvetica, Arial, sans-serif;
    width: 100%;
    min-height: 100dvh;
}

body {
    background: transparent;
}

.secondary-txt {
    color: var(--text-soft);
}

footer {
    background-color: rgba(0, 0, 0, 0.78);
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    -moz-animation: inherit;
    -o-animation: inherit;
    -webkit-animation: inherit;
    animation: inherit;
}

footer hr {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 0.5rem auto;
    width: 80%;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    -moz-animation: inherit;
    -o-animation: inherit;
    -webkit-animation: inherit;
    animation: inherit;
}

/* Dashboard shell — horizontal nav below 1500px, sidebar at 1500px+ */
/* overflow-x: clip (not hidden) — hidden makes the browser treat this as a
   scroll container, which breaks position: sticky on the nav child below. */
.page.dashboard-shell {
    flex-direction: column;
    overflow-x: clip;
}

.page.dashboard-shell .main,
.page.dashboard-shell .dashboard-main {
    min-width: 0;
    width: 100%;
}


.noDataChart {
    height: 450px !important;
}

@media (min-width: 1500px) {
    .page.dashboard-shell {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Dashboard mobile */
@media (max-width: 767.98px) {
    #root-content [style*="min-height: 820px"],
    #dashboard-page-root [style*="min-height: 820px"] {
        min-height: min(55vh, 22rem) !important;
    }

    .headerbtn {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }

    .chart-header-actions {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .custom-charts-grid,
    .charts-container .custom-charts-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .template-card {
        width: min(14rem, 100%) !important;
        max-width: 100%;
    }

    .webhook-embed-row {
        flex-direction: column !important;
    }

    .webhook-embed-row > * {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Syncfusion dialogs used on dashboard pages */
    .e-dialog.e-popup {
        max-width: calc(100vw - 1rem) !important;
    }

    .e-dialog .e-dlg-content {
        max-height: min(75dvh, 40rem);
        overflow-y: auto;
    }

    .noDataChart {
        height: min(50vh, 18rem) !important;
    }
}

