/* Application Specific - START */
:root {
    --cw-primary: #003f6c;
    --cw-primary-hover: #002f51;
}

.size-extra-large {
    max-width: 1330px !important;
}

.signature-pad {
    border: 1px solid grey;
    border-radius: 8px;
    padding: 0px;
}

h1.title {
    font-size: 21px;
    margin: 0px 0 10px 0;
    border-bottom: 1px dotted #eaeaea;
    padding-bottom: 5px;
    font-variant: small-caps;
    text-align: left;
}
h1.title small {
    font-size:16px;
}

    h1.title span {
        display: block;
        font-size: 20px;
        font-weight: normal;
        font-variant: normal;
        margin-top: 10px;
        margin-bottom: 10px;
        color: #0a777c;
    }

    h1.title img {
        width: 232px;
        margin-top: 40px;
    }

.tiny {
    font-size: 12px !important;
}

.fed-form {

}
    .fed-form .header {
        border-top: 1px solid;
        padding-top: 5px;
        border-bottom: 1px solid;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
        .fed-form .sub {
            border-bottom: 1px solid;
            padding-bottom: 5px;
        }

    .fed-form .fed-section2 .fed-lines {
        border-collapse: collapse;
        margin-left: 10px;
    }

    .fed-form .fed-section2 .fed-lines td {
        padding: 4px 6px;
        vertical-align: top;
    }

    .fed-form .fed-section2 .fed-letter {
        width: 26px;
        white-space: nowrap;
    }

    .fed-form .fed-section2 .fed-dollar {
        width: 16px;
        text-align: right;
        white-space: nowrap;
    }

    .fed-form .fed-section2 .fed-value {
        width: 140px;
    }

    .fed-form .fed-section2 .fed-underline {
        display: inline-block;
        min-width: 120px;
        border-bottom: 1px solid #000;
        line-height: 1.1;
        padding: 0 2px 1px 2px;
        text-align: right;
    }

.grid .row > * {
    padding-left: 2px;
    padding-right: 2px;
}


.form-check-input.inline {
    display: block;
    width: 30px;
    height: 30px;
    margin-top: 0px;
    margin-left: 0px !important;
}

html, body {
    overflow-x: hidden;
}

* {
    font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif !important;
}

.logo {
    width: 210px;
    margin-top: 11px;
    margin-left: 6px;
}


.number-hist label {
    font-size: 30px;
    color: #933935;
    font-variant: small-caps;
    font-weight: lighter;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #933935;
    width: 100%;
}
.number-hist .num {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: dotted 1px #933935;
    color: #5a2522;
}

.logout a {
    cursor: pointer;
}

.add {
    padding: 5px 10px 10px 10px;
    border: 1px dashed green;
    border-radius: 10px;
    text-align: center;
    margin-top: 7px;
    margin-bottom: -12px;
}
a.add {
    color: green;
    text-decoration: none;
    font-size: 27px;
    font-weight: lighter;
    vertical-align: middle;
    font-variant: small-caps;
}
    a.add:hover {
        background: #e3f0ea;
    }

.nav-link.selected {
    background-color: rgba(255,255,255,0.1);
    color: white;
    pointer-events: none;
    cursor: default;
}

.mr-1 {
    margin-right: 5px;
}
.ml-1 {
    margin-left: 5px;
}

.display-content {
    display: flex;
}

.payments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #bdbdbd;
}

.month {
    padding: 10px;
    margin: 10px;
    border: 1px solid #bdbdbd;
    border-radius: 10px;
    font-size: 15px;
}
    .month.totals {
        background-color: #f7efef;
    }
    .month .name {
        font-size: 22px;
        font-weight: lighter;
        border-bottom: 1px solid #d9d9d9;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }
    .month .grand-total {
        font-size: 19px;
        border-top: 1px solid #d9d9d9;
        margin-top: 10px;
        padding-top: 5px;
    }



.nav {
    margin-right: 10px;
}

    .nav a {
        margin-bottom: 10px;
    }

.topbar {
    width: 100%;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5d0cf;
    background-color: var(--cw-primary);
}

    .topbar.admin {
        margin-bottom: 0px;
        border-bottom: 1px solid #582220;
        height: 115px;
    }
    .topbar.admin h2 {
        margin-left: 250px;
    }

    .topbar img {
        width: 30%;
        padding: 10px 15px 5px 15px;
        max-width: 410px;
    }

    .topbar h2 {
        display: block;
        vertical-align: bottom;
        text-align: center;
        font-variant: small-caps;
        margin-top: -55px;
        font-size: 30px;
        color: white;
    }

.main-content {
    width: 100%;
}



.title {
    text-align: center;
    font-size: 34px;
    font-weight: lighter;
    margin: 0px 0 25px 0;
}


.personal {
    border: 2px dashed #c6d4ff;
    padding: 15px 0px;
    border-radius: 10px;
    position: relative;
}
.status {
    position: absolute;
    right: 7px;
    top: 0px;
    width: unset;
    font-variant: small-caps;
    font-size: 41px;
    font-weight: lighter;
}
.status.success {
    color: green;
}
    .status.warning {
        color: orange;
    }

    .personal h3 {
        text-align: left;
        font-size: 34px;
        font-weight: lighter;
        margin: 0px 0 5px 0;
        padding: 0px 20px 10px 30px;
    }
        .personal h3 b {
            font-size: 24px;
            font-variant: small-caps;
            top: -10px;
            position: relative;
            color: #003664;
        }

    .personal .info {
        margin-bottom: 10px;
    }

        .personal .info label {
            font-size: 14px;
            font-style: italic;
            margin-bottom: 1px;
        }

        .personal .info span {
            font-size: 20px;
            display: block;
            padding-left: 5px;
        }

.renew {
    background-color: rgb(0 255 43 / 39%);
    color: white;
}


.form-check.yesno {
    display: inline-block;
    margin-right: 25px;
    font-size: 26px;
}

.questions .question {
    font-size: 21px;
    font-weight: lighter;
}

.detail {
    font-size: 21px;
    font-weight: lighter;
}

.cur-user {
    position: absolute;
    top: 3px;
    right: 8px;
}
    .cur-user a{
        color: white;
    }
    .cur-user a:hover {
        color: white;
        font-weight: bold;
    }
    .cur-user a {
        text-decoration: none;
    }
    .cur-user .btn-logout {
        position: absolute;
        bottom: -20px;
        right: 0px;
        color: red;
        text-decoration: none;
        cursor: pointer;
    }

/* Application Specific - END */

.scholar-packet .packet-page {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.scholar-packet p,
.scholar-packet li {
    font-size: 0.95rem;
    line-height: 1.35rem;
}

@media (max-width: 576px) {
    .scholar-packet {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .scholar-packet .packet-page {
        border-radius: 0;
        box-shadow: none !important;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem !important;
    }

    .scholar-packet .packet-page .p-2 {
        padding: 0.25rem !important;
    }
}

.scholar-packet .field-readonly {

}

.scholar-packet .field-input {
    background-color: #dff7df; /* soft green */
}

.scholar-packet .field-sign {
    background-color: #f7d9ef; /* soft pink */
}

/* Read-only packet: make all disabled inputs look like plain text */
.scholar-packet fieldset[disabled] .form-control,
.scholar-packet fieldset[disabled] .form-select,
.scholar-packet fieldset[disabled] .form-control-sm,
.scholar-packet fieldset[disabled] select {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
    opacity: 1;
    color: inherit;
}

.scholar-packet .scholar-packet-submit {
    min-height: 3.25rem;
    color: #ffffff;
    background-color: #E02A2C;
    border: 2px solid rgba(255, 255, 255, 0.72);
    font-weight: 700;
    box-shadow:
        0 12px 28px rgba(75, 7, 9, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.22);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.scholar-packet .scholar-packet-submit:hover,
.scholar-packet .scholar-packet-submit:focus {
    color: #ffffff;
    background-color: #bf2224;
    border-color: #ffffff;
}

.scholar-packet .scholar-packet-submit:focus,
.scholar-packet .scholar-packet-submit:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 0.25rem rgba(255, 191, 71, 0.72),
        0 12px 28px rgba(75, 7, 9, 0.38);
}

.scholar-packet .scholar-packet-submit:active {
    color: #ffffff;
    background-color: #ad1f21;
    border-color: #ffffff;
}

.scholar-packet .scholar-packet-submit:disabled {
    color: #ffffff;
    background-color: #9c1b1d;
    border-color: rgba(255, 255, 255, 0.6);
    opacity: 0.9;
    box-shadow: 0 8px 20px rgba(75, 7, 9, 0.28);
    text-shadow: none;
}

.access-denied {
    width: calc(100% - 2rem);
    max-width: 34rem;
    margin: clamp(2rem, 8vh, 5rem) auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #15293d;
    background: #ffffff;
    border: 1px solid #d1dce8;
    border-radius: 0.5rem;
    box-shadow:
        0 20px 44px rgba(0, 31, 58, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.18);
}

.access-denied-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(4.5rem, 14vw, 5.75rem);
    height: clamp(4.5rem, 14vw, 5.75rem);
    color: #c92426;
    background: #fff0f0;
    border: 1px solid rgba(224, 42, 44, 0.24);
    border-radius: 50%;
    font-size: clamp(3rem, 9vw, 4.2rem);
    opacity: 1;
}

.access-denied h1 {
    color: #10263b;
    font-weight: 700;
}

.access-denied .lead {
    color: #42586f;
}

.access-denied .btn-outline-secondary {
    min-height: 2.75rem;
    color: #003f6c;
    background-color: #ffffff;
    border-color: #8da8c0;
    font-weight: 700;
}

.access-denied .btn-outline-secondary:hover,
.access-denied .btn-outline-secondary:focus {
    color: #ffffff;
    background-color: #003f6c;
    border-color: #003f6c;
}

.access-denied .btn-outline-secondary:focus,
.access-denied .btn-outline-secondary:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 191, 71, 0.7);
}





/* System Specific - START */

.not-found {
    text-align: center;
    margin-top: 75px;
}

    .not-found img {
        width: 20%;
        margin-left: 40%;
        margin-right: 40%;
    }

    .not-found p {
        font-size: 33px;
        font-weight: lighter;
        margin-top: 25px;
        color: #6d6daa;
        font-variant-caps: petite-caps;
    }

.app-date {
    position: absolute;
    bottom: 15px;
    left: 13px;
    color: white;
}


.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

    .tooltip-wrapper span {
        visibility: hidden;
        position: absolute;
        width: 250px;
        bottom: 120%;
        left: -250%;
        background-color: #363636;
        color: #fff;
        text-align: center;
        padding: 10px;
        border-radius: 6px;
        z-index: 1;
        font-size: 15px;
    }

        .tooltip-wrapper span::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }

    .tooltip-wrapper:hover span {
        visibility: visible;
    }





/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.top-row {
    height: 65px;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }


app {

}

.sidebar {
    background-color: var(--cw-primary);
    background-image: none !important;
}

    .sidebar .who {
        font-size: 18px;
        letter-spacing: normal;
        color: white;
        position: absolute;
        bottom: -11px;
        left: 0px;
        width: 246px;
        text-align: center;
        opacity: 0.5;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.nav-link .far, .nav-link .fa, .nav-link .fas {
    margin-right: 15px !important;
    width: 40px;
    text-align: center;
    margin-left: -10px;
}

.sidebar .logout .far {
    margin-right: 20px !important;
}

.sidebar .login .far {
    margin-right: 25px !important;
}

.sidebar .top-row {

}

.sidebar .navbar-brand {
    margin-top: -20px;
    font-size: 24px;
}

.sidebar .navbar i {
    color: white;
    position: absolute;
    top: 7px;
    left: 55px;
    font-style: normal;
    opacity: .5;
    font-size: 31px;
    font-weight: lighter;
    letter-spacing: 5px;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    font-size: 0.9rem;
}

    .sidebar .nav-item.login {
        font-size: 24px;
        font-weight: lighter;
        font-variant-caps: all-small-caps;
        letter-spacing: 5px;
        width: 100%;
    }

    .sidebar .nav-item.logout {
        position: absolute;
        bottom: 25px;
        left: 0px;
        font-size: 24px;
        font-weight: lighter;
        font-variant-caps: all-small-caps;
        letter-spacing: 5px;
        width: 100%;
    }

    .sidebar .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .sidebar .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .sidebar .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 16px;
        padding: 25px 15px 25px 15px;
        font-size: 19px;
    }

        .sidebar .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .sidebar .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }


.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}
/*
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}*/

.validation-message {
    color: red;
}

#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.75rem;
        top: 0.5rem;
    }

.freedom-diagnostics-banner {
    align-items: center;
    background: #25466d;
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.24);
    color: #fff;
    display: none;
    gap: 1rem;
    justify-content: space-between;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    right: 0;
    z-index: 1100;
}

.freedom-diagnostics-banner.is-visible {
    display: flex;
}

.freedom-diagnostics-banner.is-warning {
    background: #77580b;
}

.freedom-diagnostics-banner.is-error {
    background: #8f1f2f;
}

.freedom-diagnostics-banner.is-info {
    background: #245b7a;
}

.freedom-diagnostics-banner-title {
    font-weight: 700;
}

.freedom-diagnostics-banner-message {
    font-size: 0.95rem;
}

.freedom-diagnostics-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.loading-watchdog {
    margin: 2rem auto 0 auto;
    max-width: 680px;
    width: min(90vw, 680px);
}

.loading-watchdog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .freedom-diagnostics-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .freedom-diagnostics-banner-actions {
        justify-content: stretch;
    }

    .freedom-diagnostics-banner-actions .btn {
        flex: 1 1 auto;
    }
}











.logo-app {
    text-align: center;
    margin-top: 5%;
}

    .logo-app img {
        max-width: 96%;
    }

.login {
    text-align: center !important;
    font-size: 27px !important;
    font-weight: lighter !important;
}

    .login input {
        text-align: center !important;
        font-size: 27px !important;
        font-weight: lighter !important;
    }

    .login button {
        font-size: 27px;
        width: 50%;
        margin: 30px auto 0 auto;
    }


    .login .col {
        max-width: 400px !important;
    }






/* Loading Spinner */
.loading {
    position: fixed;
    z-index: 999;
    overflow: visible;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    text-align: center;
    padding-top: 7%;
    margin-left: 0px;
    padding-right: 0px;
    -moz-animation-name: fadeIn;
    -webkit-animation-name: fadeIn;
    -ms-animation-name: fadeIn;
    animation-name: fadeIn;
    -moz-animation-duration: 0.3s;
    -webkit-animation-duration: 0.3s;
    -ms-animation-duration: 0.3s;
    animation-duration: 0.3s;
    -moz-animation-timing-function: ease-in-out;
    -webkit-animation-timing-function: ease-in-out;
    -ms-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -moz-animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    -ms-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
    .loading.fadeOut {
        -moz-animation-name: fadeOut;
        -webkit-animation-name: fadeOut;
        -ms-animation-name: fadeOut;
        animation-name: fadeOut;
    }

    .loading img {
        width: 20%;
    }

    .loading h1 {
        color: #385b88;
        font-weight: lighter;
        font-size: 59px;
        font-variant-caps: all-small-caps;
        letter-spacing: 13px;
    }

.text-right {
    text-align: right;
}

/* System Specific - END */

.file-list {
    list-style: none;
    padding-left: 0;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 35px;
    margin-bottom: 15px;
    position: relative;
}

    .file-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }

.file-link {
    text-decoration: none;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-grow: 1;
    margin-right: 10px;
}

    .file-link:hover {
        color: #1a73e8;
        background: linear-gradient(135deg, #d1e3fa, #b3cffa);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

.delete-btn {
    background: transparent;
    border: 0;
    text-decoration: none;
    color: #dc3545;
    font-size: 20px;
    padding: 8px;
    min-width: 2.75rem;
    min-height: 2.75rem;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

    .delete-btn:hover {
        color: #b02a37;
        transform: scale(1.2);
    }

    .delete-btn:focus-visible {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
        border-radius: 4px;
    }

@media (prefers-reduced-motion: reduce) {
    .delete-btn {
        transition: none;
    }

        .delete-btn:hover {
            transform: none;
        }
}



/* Grid */
.grid {
    padding: 0px 0px 2px 20px;
    border: 2px dashed var(--cw-primary);
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
}

    .grid h3 {
        text-align: left;
        font-size: 34px;
        font-weight: lighter;
        margin: 0px 0 25px 0;
    }

.row.headers {
    border-bottom: 2px dashed var(--cw-primary);
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
    font-variant-caps: small-caps;
    font-size: 21px;
    color: var(--cw-primary);
}

.row.data {
    line-height: 30px !important;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 16.5px;
    font-weight: lighter;
}

@media (max-width: 576px) {
    .grid {
    }

    .row.headers {
        font-size: 16px;
        padding-bottom: 3px;
        margin-bottom: 8px;
    }
}

.row.headers a {
    cursor: pointer;
}


/* Filter */
.filter-button {
    display: none;
}

label.filter-input {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: unset;
    height: 20px !important;
    text-overflow: unset !important;
    overflow: unset !important;
}

    label.filter-input img {
        width: 18px;
        position: absolute;
        top: 5px;
        left: -20px;
    }

    label.filter-input span {
        visibility: hidden;
        position: absolute;
        width: 198px;
        top: -52px;
        left: -50px;
        margin-left: -60px;
        background-color: #363636;
        color: #fff;
        text-align: center;
        padding: 10px;
        border-radius: 6px;
        z-index: 1;
        font-size: 15px;
    }

        label.filter-input span::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }


.filter-button:checked + label.filter-input span {
    visibility: visible;
}






/* Pagination */
.pagination-container {
    width: 100%;
    text-align: center;
    font-size: 20px;
    margin: 20px 0px 15px 0;
    position: relative;
}
    .pagination-container a {
        color: var(--cw-primary);
        padding: 5px;
        border-radius: 5px;
        cursor: pointer;
        border: 1px solid transparent;
    }
        .pagination-container a:hover {
            border: 1px solid var(--cw-primary);
        }
    .pagination-container .current-page {
        text-decoration: underline;
        margin: 0 10px;
        color: var(--cw-primary);
    }
    .pagination-container .page {
        margin: 0 10px;
    }
    .pagination-container .page-size {
        text-align: right;
        width: 220px;
        font-size: 16px;
        float: right;
        position: absolute;
        right: 0px;
    }
        .pagination-container .page-size input {
            width: 75px;
            display: inline;
            margin-left: 5px;
        }






/* Navbar START */
.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 10px;
    right: 15px;
    border: 1px solid white;
    border-radius: 5px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center / 1.75rem rgba(245, 126, 35, 0.1); /* Adjusted background color */
}

    .navbar-toggler:checked {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row {
    height: 62px;
}

.navbar-brand {
    font-size: 1.1rem;
    padding-top: 3px;
}

.nav-link .bi {
    margin-right: 9px;
    font-size: 25px;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233e3e3e' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}


    .nav-item ::deep .nav-link {
        color: #3e3e3e;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

    .nav-item a {
        color: #3e3e3e;
    }

    .nav-item ::deep a.active {
        background-color: rgba(255,255,255,0.37);
        color: #3e3e3e;
    }

    .nav-item ::deep .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        color: #3e3e3e;
    }

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: flex;
    flex-direction: column;
}

@media (min-width: 767px) {
    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        /* Never collapse the sidebar for wide screens */
        display: flex;
        flex-direction: column;
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

.nav-scrollable > nav {
    flex: 1 1 auto;
}

.nav-footer {
    flex-shrink: 0;
    padding-bottom: 12px;
}

    .nav-footer .nav-link {
        opacity: 0.85;
    }

        .nav-footer .nav-link:hover {
            opacity: 1;
        }

.nav-user-info {
    padding: 2px 0px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-user-email {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-school {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Navbar END */




/* Overrides - START */

.position-topleft {
    top: 0px !important;
    left: 0px !important;
}

.btn-success {
    color: #fff;
    background-color: var(--cw-primary);
    border-color: var(--cw-primary);
}
    .btn-success:hover {
        color: #fff;
        background-color: var(--cw-primary-hover);
        border-color: var(--cw-primary-hover);
    }
    .btn-success:active {
        color: #fff;
        background-color: var(--cw-primary-hover);
        border-color: var(--cw-primary-hover);
    }
    .btn-success:focus {
        color: #fff;
        background-color: var(--cw-primary-hover);
        border-color: var(--cw-primary-hover);
        box-shadow: 0 0 0 0.25rem rgb(0 63 108 / 27%);
    }



.blazored-toast-container {
    z-index: 105 !important;
}
.blazored-toast-container {
    width: 100%;
    text-align: center;
}
.blazored-toast {
    width: 100% !important;
    min-height: 115px !important;
    cursor: pointer;
}

.blazored-toast .blazored-toast-progressbar {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 6px !important;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.12) !important;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.blazored-toast .blazored-toast-progressbar > span {
    left: 0 !important;
    height: 100% !important;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.blazored-toast-body .blazored-toast-header h5 {
    width: 100%;
}

.blazored-toast .blazored-toast-message {
    font-size: 25px !important;
    font-weight: lighter !important;
    margin: auto !important;
}

.position-topright {
    top: 0px !important;
    right: 0px !important;
}

.app-notification-center {
    position: fixed;
    top: 0.75rem;
    right: 1rem;
    z-index: 2100;
}

.app-notification-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 50%;
    color: #12324a;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

.app-notification-button:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.app-notification-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    color: #fff;
    background: #b42318;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.app-notification-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(34rem, calc(100vh - 5rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #212529;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.app-notification-header,
.app-notification-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.app-notification-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.app-notification-subtitle,
.app-notification-empty {
    color: #6c757d;
    font-size: 0.875rem;
}

.app-notification-empty {
    padding: 1rem;
}

.app-notification-list {
    overflow-y: auto;
}

.app-notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f5;
}

.app-notification-item.is-unread {
    background: #f8fbff;
}

.app-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
}

.app-notification-icon.is-info {
    color: #0d6efd;
}

.app-notification-icon.is-success {
    color: #198754;
}

.app-notification-icon.is-warning {
    color: #946200;
}

.app-notification-icon.is-error {
    color: #b42318;
}

.app-notification-content {
    min-width: 0;
}

.app-notification-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.app-notification-item-title {
    font-weight: 700;
}

.app-notification-item time {
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 0.75rem;
}

.app-notification-message {
    overflow-wrap: anywhere;
    font-size: 0.875rem;
}

.app-notification-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.app-error-boundary {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #13293d;
    background: #f5f9fd;
}

.app-error-boundary-card {
    position: relative;
    width: min(58rem, 100%);
    display: grid;
    grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid #b9d4ea;
    border-top: 0.5rem solid #b42318;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 63, 108, 0.18);
}

.app-error-boundary-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(0, 63, 108, 0.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 63, 108, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 68%);
}

.app-error-boundary-visual,
.app-error-boundary-content {
    position: relative;
    z-index: 1;
}

.app-error-boundary-visual {
    display: flex;
    justify-content: center;
}

.app-error-boundary-illustration {
    width: min(19rem, 100%);
    height: auto;
    filter: drop-shadow(0 1rem 1.25rem rgba(0, 63, 108, 0.18));
}

.app-error-boundary-orbit {
    fill: #fff7df;
    stroke: #ffbf47;
    stroke-width: 4;
    stroke-dasharray: 12 12;
    opacity: 0.95;
}

.app-error-boundary-books,
.app-error-boundary-page,
.app-error-boundary-cap,
.app-error-boundary-badge,
.app-error-boundary-sparkle {
    transform-box: fill-box;
    transform-origin: center;
}

.app-error-boundary-books {
    animation: app-error-float 4s ease-in-out infinite;
}

.app-error-boundary-page {
    animation: app-error-float 4.4s ease-in-out infinite;
}

.app-error-boundary-cap {
    animation: app-error-cap-tip 3.8s ease-in-out infinite;
}

.app-error-boundary-badge {
    animation: app-error-pulse 2.4s ease-in-out infinite;
}

.app-error-boundary-sparkle {
    fill: #ffbf47;
    opacity: 0.9;
    animation: app-error-twinkle 2.8s ease-in-out infinite;
}

.sparkle-two {
    animation-delay: 0.5s;
}

.sparkle-three {
    animation-delay: 1s;
}

.app-error-boundary-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #ffd985;
    border-radius: 999px;
    color: #6c4100;
    background: #fff8e6;
    font-size: 0.875rem;
    font-weight: 700;
}

.app-error-boundary h1 {
    max-width: 34rem;
    margin: 0;
    color: #003f6c;
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 800;
}

.app-error-boundary-message {
    max-width: 36rem;
    margin: 1rem 0 0;
    color: #3b4a57;
    font-size: 1.1rem;
}

.app-error-boundary-detail {
    max-width: 36rem;
    margin: 0.5rem 0 0;
    color: #526170;
}

.app-error-boundary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.app-error-boundary-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-weight: 700;
}

.app-error-boundary-primary {
    color: #ffffff;
    background: #003f6c;
    border: 1px solid #003f6c;
}

.app-error-boundary-primary:hover,
.app-error-boundary-primary:focus {
    color: #ffffff;
    background: #0b4b78;
    border-color: #0b4b78;
}

.app-error-boundary-secondary {
    color: #003f6c;
    background: #ffffff;
    border: 1px solid #8da8c0;
}

.app-error-boundary-secondary:hover,
.app-error-boundary-secondary:focus {
    color: #ffffff;
    background: #003f6c;
    border-color: #003f6c;
}

.app-error-boundary-actions .btn:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
    box-shadow: 0 0 0 0.25rem rgba(0, 63, 108, 0.25);
}

@keyframes app-error-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes app-error-cap-tip {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }

    50% {
        transform: rotate(-2deg) translateY(-5px);
    }
}

@keyframes app-error-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@keyframes app-error-twinkle {
    0%, 100% {
        transform: scale(0.86);
        opacity: 0.48;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-error-boundary-books,
    .app-error-boundary-page,
    .app-error-boundary-cap,
    .app-error-boundary-badge,
    .app-error-boundary-sparkle {
        animation: none !important;
    }
}

@media (max-width: 575.98px) {
    .app-notification-center {
        top: 0.5rem;
        right: 0.5rem;
    }

    .app-notification-panel {
        position: fixed;
        top: 4rem;
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
        max-height: calc(100vh - 5rem);
    }

    .app-notification-item-header {
        flex-direction: column;
        gap: 0.125rem;
    }

    .app-error-boundary {
        align-items: stretch;
        min-height: 100vh;
        padding: 1rem;
    }

    .app-error-boundary-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .app-error-boundary-illustration {
        width: min(14rem, 100%);
    }

    .app-error-boundary h1 {
        font-size: 1.75rem;
    }

    .app-error-boundary-actions {
        flex-direction: column;
    }

    .app-error-boundary-actions .btn {
        width: 100%;
    }
}

/* Overrides - END */




/* Responsive */


/* col-sm & col-md */
@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }
    .loading.admin {
        width: calc(100vw - 108px);
        height: calc(100vh - 116px);
    }

    .sidebar {
        min-width: 90px;
    }

    .sidebar .navbar i {
        margin-left: 33px;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .login .col {
        max-width: unset !important;
    }

    .sidebar .nav-item.logout {
        position: relative;
        bottom: unset;
        left: unset;
        margin-top: 15px;
        padding-top: 15px;
        font-size: 24px;
        font-weight: lighter;
        letter-spacing: 5px;
        font-variant-caps: all-small-caps;
        border-top: 1px dashed #ffffff5e;
    }

    .action-bar a {
        margin: 3px 0;
    }
}


/* col-lg */
@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}




@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

@-ms-keyframes fadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

@-keyframes fadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

@-moz-keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@-ms-keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@-keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.discussion-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discussion-entry,
.discussion-editor-card {
    border: 1px solid #d7dee8;
    border-radius: 0.5rem;
    background: #fff;
    padding: 1rem;
}

.discussion-entry-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

.discussion-editor-shell {
    position: relative;
}

.discussion-editor-toolbar .ql-formats {
    margin-right: 0.5rem;
}

.discussion-editor-surface {
    min-height: 180px;
}

.discussion-editor-surface .ql-editor {
    min-height: 180px;
    font-size: 0.95rem;
}

.discussion-attachments {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.discussion-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.discussion-emoji-palette {
    position: absolute;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.discussion-emoji-option {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem;
}

.discussion-emoji-option:hover {
    background: #f3f6fb;
    border-radius: 0.35rem;
}

.discussion-editor-toolbar .ql-emoji,
.discussion-editor-toolbar .ql-mentionShortcut,
.discussion-editor-toolbar .ql-attachment,
.discussion-editor-toolbar .ql-imageUpload {
    width: 28px;
    height: 24px;
}

.discussion-editor-toolbar .ql-picker-label::before,
.discussion-editor-toolbar button i {
    color: inherit;
}

.mention {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 0.25rem;
    padding: 0 0.15rem;
}
