/*
|--------------------------------------------------------------------------
| Charter Sidebar
|--------------------------------------------------------------------------
| Right-side citizen charter summary list.
|--------------------------------------------------------------------------
*/

.charter-sidebar {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.charter-sidebar-shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;

    display: grid;
    grid-template-rows: 50px minmax(0, 1fr);

    background: #eef4ff;
    border-radius: 8px;
}

/*
|--------------------------------------------------------------------------
| Heading
|--------------------------------------------------------------------------
*/

.charter-sidebar-heading {
    height: 50px;
    min-height: 50px;
    max-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0d4fa8;
    color: #ffffff;

    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.charter-sidebar-heading h1 {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 0;
    padding: 0 12px;

    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 50px;
    text-align: center;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.charter-sidebar-heading i {
    font-size: 16px;
    flex: 0 0 auto;
}

/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.charter-sidebar-body {
    min-height: 0;
    overflow: hidden;

    padding: 8px;
}

.charter-sidebar-scroll {
    height: 100%;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 4px 6px 4px 4px;

    scrollbar-width: none;
    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;
}

.charter-sidebar-scroll::-webkit-scrollbar {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Summary Card
|--------------------------------------------------------------------------
*/

.charter-summary-card {
    margin: 0 0 8px;
    padding: 10px;

    background: #ffffff;
    border: 1px solid rgba(34, 67, 182, 0.12);
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.08);

    overflow: hidden;
}

.charter-summary-card:last-child {
    margin-bottom: 0;
}

.charter-summary-card-clickable {
    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.charter-summary-card-clickable:hover,
.charter-summary-card-clickable:focus {
    background: #f8fbff;
    border-color: rgba(34, 67, 182, 0.35);
    box-shadow: 0 6px 16px rgba(15, 35, 95, 0.16);
    transform: translateX(-2px);
    outline: none;
}

.charter-summary-card-clickable:hover .charter-summary-icon,
.charter-summary-card-clickable:focus .charter-summary-icon {
    background: rgba(34, 67, 182, 0.15);
    color: #2243B6;
}

.charter-summary-card-clickable:hover .charter-summary-id,
.charter-summary-card-clickable:focus .charter-summary-id {
    background: #128557;
}

/*
|--------------------------------------------------------------------------
| Card Header
|--------------------------------------------------------------------------
*/

.charter-summary-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;

    padding-bottom: 7px;
    margin-bottom: 7px;

    border-bottom: 1px solid rgba(34, 67, 182, 0.1);
}

.charter-summary-icon {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;
    background: rgba(34, 67, 182, 0.1);
    color: #2243B6;

    font-size: 15px;
    line-height: 1;
}

.charter-summary-icon i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.charter-summary-header h2 {
    margin: 0 !important;

    color: #1f2d3d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.charter-summary-id {
    min-width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #169b62;
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
    line-height: 1;

    box-shadow: 0 3px 8px rgba(22, 155, 98, 0.24);
}

/*
|--------------------------------------------------------------------------
| Card Content
|--------------------------------------------------------------------------
*/

.charter-summary-content {
    display: grid;
    gap: 6px;
}

.charter-summary-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    align-items: start;

    color: #334155;
    font-size: 12px;
    line-height: 1.35;
}

.charter-summary-row-icon {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    background: rgba(22, 155, 98, 0.1);
    color: #169b62;

    font-size: 12px;
    line-height: 1;

    flex: 0 0 auto;
}

.charter-summary-row-icon i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.charter-summary-row strong {
    color: #0f172a;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Hidden Scrollbar Support
|--------------------------------------------------------------------------
*/

.charter-sidebar,
.charter-sidebar-body,
.charter-sidebar-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 4px 2px 2px;
}

.charter-sidebar::-webkit-scrollbar,
.charter-sidebar-body::-webkit-scrollbar,
.charter-sidebar-scroll::-webkit-scrollbar {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Small Height Safety
|--------------------------------------------------------------------------
*/

@media (max-height: 760px) {
    .charter-sidebar-shell {
        grid-template-rows: 46px minmax(0, 1fr);
    }

    .charter-sidebar-heading {
        height: 46px;
        min-height: 46px;
        max-height: 46px;
    }

    .charter-sidebar-heading h1 {
        font-size: 15px;
        line-height: 46px;
    }

    .charter-sidebar-body {
        padding: 6px;
    }

    .charter-summary-card {
        margin-bottom: 6px;
        padding: 8px;
        border-radius: 12px;
    }

    .charter-summary-header {
        gap: 7px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .charter-summary-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .charter-summary-header h2 {
        font-size: 13px;
    }

    .charter-summary-id {
        min-width: 29px;
        height: 29px;
        font-size: 13px;
    }

    .charter-summary-row {
        font-size: 11px;
        gap: 6px;
    }

    .charter-summary-row-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}