﻿@import url('font-awesome/css/all.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}


.body-content {
    padding: 0.5rem;
}

/* All touch/mobile devices */
@media (hover: none) and (pointer: coarse) {
    .body-content {
        padding-bottom: 58px;
    }
}

/* iOS specifically - extra padding for Safari toolbar */
@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .body-content {
            padding-bottom: 80px;
        }
    }
}

.grid-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.loading-panel {
    flex: 1 1 auto;
}

.grid-fill {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-fill > .card {
    display: flex;
    height: 100%;
}

    .grid-fill > .card > .dxbs-grid-vsd {
        flex: 1 1 auto;
        height: 100%;
    }

    .grid-fill > .card > div:not(.dxbs-grid-vsd) {
        flex: 1 0 auto;
    }


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        line-height: 1;
        color: #555;
        text-decoration: none;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.grid-row
{

}

.custom-drop-zone {
    padding: 0 !important;
    border-style: dashed;
    border-width: 2px !important;
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(183, 183, 183, 0.1);
}

    .custom-drop-zone.custom-drop-zone-hover {
        border-style: solid;
    }

    .custom-drop-zone svg {
        width: 42px;
        height: 42px;
    }

    .custom-drop-zone > *:not(#overviewDemoSelectButton) {
        pointer-events: none;
    }

.drop-file-label {
    font-weight: 500;
    font-size: 1rem;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--bs-primary, #0d6efd);
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
    font-size: 0.8rem;
    user-select: none;
}

.chip-size {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.75rem;
}

.chip-remove {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    color: var(--bs-primary, #0d6efd);
    font-size: 0.75rem;
    line-height: 1;
}

    .chip-remove:hover {
        color: var(--bs-danger, #dc3545);
    }

.page-toolbar-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
    z-index: 50;
    background-color: var(--bs-body-bg, #fff);
}

.html-editor-container {
    min-height: 200px;
}

.download {
    cursor: pointer;
}

.cr-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background-color: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary-color, #495057);
}

    .cr-status-badge.cr-status-new {
        background: #cfe2ff;
        color: #084298;
    }

    .cr-status-badge.cr-status-inprogress {
        background: #fff3cd;
        color: #664d03;
    }

    .cr-status-badge.cr-status-holdmeeting {
        background: #f8d7da;
        color: #842029;
    }

    .cr-status-badge.cr-status-resolved {
        background: #d1e7dd;
        color: #0a3622;
    }

    .cr-status-badge.cr-status-closed {
        background: #e2e3e5;
        color: #41464b;
    }

.dxbl-toolbar-btn-ellipsis.dxbl-toolbar-hidden-item {
    display: none !important;
}

.grid-title-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

    .grid-title-link:hover {
        text-decoration: underline;
        opacity: 0.75;
    }

@media (max-width: 768px) {
    .phone-grid{
        min-height: 48px;
    }

}

/* ── cc-panel ──────────────────────────────────────────────────────────────
   Generic bordered card with an optional labelled header and detail rows.
   Usage: <div class="cc-panel"> ... </div>
────────────────────────────────────────────────────────────────────────── */
.cc-panel {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.cc-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-secondary-color, #6c757d);
    background: var(--bs-tertiary-bg, rgba(0,0,0,.03));
    border-bottom: 1px solid var(--bs-border-color);
}

.cc-panel-icon {
    font-size: 0.85rem;
}

/* ── cc-row ────────────────────────────────────────────────────────────────
   A label+description / control row inside a cc-panel (or standalone).
────────────────────────────────────────────────────────────────────────── */
.cc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.cc-row:last-child {
    border-bottom: none;
}

.cc-row-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.cc-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.4rem;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cc-row-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.cc-row-desc {
    font-size: 0.78rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 1px;
}

.cc-row-control {
    flex-shrink: 0;
}

/* ── cc-profile-header ─────────────────────────────────────────────────────
   Avatar + name/subtitle + optional badge strip (e.g. top of Settings).
────────────────────────────────────────────────────────────────────────── */
.cc-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .cc-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 0.6rem;
    }

    .cc-profile-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .cc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cc-row-control {
        width: 100%;
    }
}

.cc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cc-profile-info {
    flex: 1;
    min-width: 0;
}

.cc-profile-name {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-profile-subtitle {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 1px;
}

/* ── cc-badge ──────────────────────────────────────────────────────────────
   Small pill badge. Pair with a colour modifier: cc-badge-primary,
   cc-badge-warning, cc-badge-success, cc-badge-danger.
────────────────────────────────────────────────────────────────────────── */
.cc-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cc-badge-primary {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
}

.cc-badge-warning {
    background: rgba(var(--bs-warning-rgb), 0.15);
    color: var(--bs-warning-text-emphasis, #997404);
    border: 1px solid rgba(var(--bs-warning-rgb), 0.35);
}

.cc-badge-success {
    background: rgba(var(--bs-success-rgb), 0.12);
    color: var(--bs-success-text-emphasis, #0a3622);
    border: 1px solid rgba(var(--bs-success-rgb), 0.25);
}

.cc-badge-danger {
    background: rgba(var(--bs-danger-rgb), 0.12);
    color: var(--bs-danger-text-emphasis, #58151c);
    border: 1px solid rgba(var(--bs-danger-rgb), 0.25);
}

/* ── cc-tile ───────────────────────────────────────────────────────────────
   Navigation/shortcut tile. Wrap in cc-tile-grid for auto-wrapping layout.
   Usage: <a href="..." class="cc-tile"> <i class="fas fa-x cc-tile-icon"></i>
          <span class="cc-tile-label">Label</span> </a>
────────────────────────────────────────────────────────────────────────── */
.cc-tile-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cc-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 130px;
    height: 110px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--bs-body-color);
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
    cursor: pointer;
}

.cc-tile:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    color: var(--bs-body-color);
    text-decoration: none;
}

.cc-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cc-tile-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    padding: 0 0.25rem;
}