body {
    min-height: 100vh;
}
.card-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.15s ease;
}
.table-form input,
.table-form select {
    min-width: 140px;
}
.public-student-result {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}
.receipt-sheet {
    max-width: 820px;
    margin: 0 auto;
}
.receipt-sheet--a4 {
    max-width: 820px;
}
.receipt-sheet--a5 {
    max-width: 620px;
}
.receipt-sheet--80mm {
    max-width: 320px;
}
.receipt-sheet--58mm {
    max-width: 240px;
}
.receipt-template {
    display: grid;
    gap: 1.5rem;
    color: #1f2933;
}
.receipt-template h1,
.receipt-template h2,
.receipt-template h3,
.receipt-template p {
    margin: 0;
}
.receipt-template__header {
    display: grid;
    gap: 0.5rem;
}
.receipt-template__eyebrow,
.receipt-template__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #52606d;
}
.receipt-template__value {
    font-weight: 700;
}
.receipt-template__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.receipt-template__panel,
.receipt-template__summary-row > div,
.receipt-template__students,
.receipt-template__footer {
    border: 1px solid #d9e2ec;
    border-radius: 0.75rem;
    padding: 1rem;
    background: #fff;
}
.receipt-template__summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.receipt-template__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}
.receipt-template__table th,
.receipt-template__table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid #d9e2ec;
    text-align: left;
    vertical-align: top;
}
.receipt-template__table .text-end {
    text-align: right;
}
.receipt-template__empty {
    margin-top: 0.75rem;
    color: #7b8794;
}
.receipt-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.receipt-designer__canvas-wrap {
    overflow: auto;
    padding: 1rem;
    background: #f7f9fc;
    border-radius: 0.75rem;
}
.receipt-designer__canvas {
    margin: 0 auto;
    transition: width 0.2s ease;
}
.receipt-designer__canvas--frame {
    min-height: 700px;
}
.receipt-designer__canvas[data-size='a4'] {
    width: min(100%, 820px);
}
.receipt-designer__canvas[data-size='a5'] {
    width: min(100%, 620px);
}
.receipt-designer__canvas[data-size='80mm'] {
    width: min(100%, 320px);
}
.receipt-designer__canvas[data-size='58mm'] {
    width: min(100%, 240px);
}
.cke_chrome {
    border-color: #d9e2ec;
    border-radius: 0.75rem;
    overflow: hidden;
}
.cke_top {
    background: #f8fbff;
    border-bottom: 1px solid #d9e2ec;
}
.cke_bottom {
    background: #f8fbff;
    border-top: 1px solid #d9e2ec;
}
.cke_contents {
    background: #fff;
}
.cke_editable {
    min-height: 640px;
    padding: 1rem 1.25rem;
}
.image-align-left {
    float: left;
    margin-right: 1rem;
}
.image-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.image-align-right {
    float: right;
    margin-left: 1rem;
}
@media (max-width: 767.98px) {
    .receipt-template__meta-grid,
    .receipt-template__summary-row {
        grid-template-columns: 1fr;
    }
}
@media print {
    .navbar,
    .print-hidden,
    .alert,
    .container > :not(.receipt-sheet):not(.print-hidden) {
        display: none !important;
    }

    .container {
        max-width: none;
        width: auto;
        padding: 0;
    }

    .receipt-sheet {
        box-shadow: none !important;
        border: 0 !important;
        margin: 0 auto;
    }

    .receipt-sheet--80mm,
    .receipt-sheet--58mm {
        max-width: none;
        width: 80mm;
    }

    .receipt-sheet--58mm {
        width: 58mm;
    }

    .receipt-sheet--a4 {
        width: 210mm;
    }

    .receipt-sheet--a5 {
        width: 148mm;
    }
}
.student-entry-selector__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.student-entry-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #e9ecef;
}
.student-entry-tag button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
