﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Month chip: checkbox ẩn, label giả làm button toggle */
.month-chip input[type="checkbox"] {
    display: none;
}

.month-chip label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.month-chip input:checked + label {
    background-color: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}

/* Dòng subtotal và total trong table */
.row-subtotal td {
    background-color: #e9f0ff;
    font-weight: 600;
}

.row-total td {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 700;
}

/* Số căn phải dùng monospace cho thẳng hàng */
.num {
    font-variant-numeric: tabular-nums;
}

/* Fade-in khi table xuất hiện */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .25s ease;
}

.guide-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.guide-header {
    background: linear-gradient(135deg, #1a5e2a 0%, #2ea44f 100%);
    padding: 16px 24px;
}

    .guide-header h5 {
        color: #fff;
        font-weight: 600;
        font-size: 15px;
        margin: 0;
    }

.guide-body {
    background: #fff;
    padding: 24px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    background: #f8fdf9;
    border: 1.5px solid #d4edda;
}

.rule-number {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1a5e2a, #2ea44f);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.rule-label {
    font-size: 13px;
    color: #5a7a62;
    font-weight: 500;
    margin-bottom: 6px;
}

    .rule-label i {
        margin-right: 5px;
        color: #2ea44f;
    }

.rule-title-badge {
    display: inline-block;
    background: linear-gradient(90deg, #1a5e2a 0%, #2ea44f 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.rule-img {
    width: 100%;
    border-radius: 8px;
    border: 1.5px solid #d4edda;
    object-fit: cover;
    display: block;
    margin-top: 4px;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 16/7;
    border-radius: 8px;
    border: 2px dashed #a8d5b5;
    background: #eafaf0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6aad82;
    font-size: 13px;
    gap: 6px;
    cursor: pointer;
    transition: background .2s;
}

    .img-placeholder:hover {
        background: #d6f0e0;
    }

    .img-placeholder i {
        font-size: 28px;
        color: #2ea44f;
    }

    .img-placeholder span {
        font-weight: 500;
    }

    .img-placeholder small {
        color: #9abfa6;
        font-size: 11px;
    }

.rule-divider {
    border: none;
    border-top: 1.5px dashed #c8e6c9;
    margin: 12px 0;
}

.notice-bar {
    background: #eafaf0;
    border-left: 4px solid #2ea44f;
    border-radius: 0 8px 8px 0;
    padding: 10px 16px;
    margin-top: 20px;
    font-size: 13px;
    color: #2d6a3f;
    display: flex;
    align-items: center;
    gap: 8px;
}