﻿/* Survey Form Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.choice-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

    .choice-section h6 {
        color: #0d6efd;
        font-weight: 600;
        margin-bottom: 15px;
    }

.table-responsive {
    margin-bottom: 20px;
}

.table th {
    background-color: #e9ecef;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

.form-check-label {
    margin-left: 0.5rem;
    font-weight: 400;
}

.disabled-field {
    opacity: 0.5;
    pointer-events: none;
    background-color: #e9ecef;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

#locationAlert {
    margin-bottom: 20px;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .table {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .card-body {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

.gridview-wrapper {
    overflow-x: auto;
}

.table-striped tbody tr:hover {
    background-color: #f1f3f5;
}

.alert {
    border-radius: 8px;
}

.choice-section table {
    background-color: white;
}

.form-check {
    margin-bottom: 8px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}
#btnViewMap {
    white-space: nowrap;
}

    #btnViewMap:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

#locationAlert button {
    margin-top: 10px;
}

.input-group .btn {
    border-left: 0;
}

@media (max-width: 576px) {
    #btnViewMap {
        font-size: 0.85rem;
        padding: 0.375rem 0.5rem;
    }
}
.navbar-brand {
    white-space: wrap !important ;
}
.navbar .container-fluid{
    display: flex;
    flex-wrap:unset !important
}

.user-menu {
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.user-menu__button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .user-menu__button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

.user-menu__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 220px;
    overflow: hidden;
    display: none;
    animation: slideDown 0.3s ease;
}

    .user-menu__dropdown.show {
        display: block;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu__dropdown__item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

    .user-menu__dropdown__item:last-child {
        border-bottom: none;
    }

    .user-menu__dropdown__item:hover {
        background: #f8f9fa;
    }

    .user-menu__dropdown__item i {
        margin-right: 8px;
        width: 20px;
    }

.admin-only {
    background: #fff3cd;
}

.logout-item {
    color: #dc3545 !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .user-menu {
        top: 10px;
        right: 10px;
    }

    .user-menu__button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .user-menu__dropdown {
        min-width: 180px;
    }
}
/* Container */
#ctl00_maincontent_lbl_quotas {
    display: block;
    background: #f6f8fb;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Style text từng dòng */
#ctl00_maincontent_lbl_quotas {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

    /* Tách từng item bằng hr */
    #ctl00_maincontent_lbl_quotas hr {
        border: none;
        height: 1px;
        background: linear-gradient( to right, transparent, #dbe1f0, transparent );
        margin: 10px 0;
    }

    /* Làm số thứ tự nổi bật (VD: 1.) */
    #ctl00_maincontent_lbl_quotas::first-line {
        font-weight: 700;
    }

/* Trick: style số thứ tự bằng pseudo (áp dụng chung) */
#ctl00_maincontent_lbl_quotas {
    counter-reset: quota;
}

    #ctl00_maincontent_lbl_quotas hr {
        counter-increment: quota;
    }

/* Card giả bằng box-shadow */
#ctl00_maincontent_lbl_quotas {
    line-height: 1.6;
}

/* Nền nhẹ cho từng dòng (ảo) */
#ctl00_maincontent_lbl_quotas {
    background-image: repeating-linear-gradient( to bottom, #ffffff 0px, #ffffff 42px, #f6f8fb 42px, #f6f8fb 52px );
}
