:root {
    --color-white: #ffffff;
    --color-black: #0F172A; /* Màu đen xanh dịu mắt hơn đen thuần (#000000) */
    /* 2. Màu nền & chữ chính cho trang */
    /*    --bg-page: linear-gradient(135deg, #064E3B 0%, #0F172A 100%); */
    /*    --bg-page: radial-gradient(circle at center, #1e40af 0%, #0f172a 100%);*/
    --bg-page: radial-gradient( circle at center, rgba(37, 99, 235, 0.82) 0%, rgba(29, 64, 161, 0.88) 100% );
    --text-primary: var(--color-black); /* Đổi thành var(--color-white) nếu dùng nền tối */
    --text-secondary: #475569; /* Dành cho dòng chữ nhỏ/mô tả */
    /* 3. Màu cho Input (Ô nhập tài khoản / mật khẩu) */
    --input-bg: var(--color-white);
    --input-text: var(--color-black);
    --input-border: #cbd5e1;
    /* 4. Màu nút bấm & Hover */
    --btn-bg: #15803d;
    --btn-active: #1b1bb4;
    --btn-text: var(--color-white);
    --btn-hover: #008d35;
    --btn-border: #b2b7ff;
    --btn-disable: #104bbc;
    --btn-color-disable: #b0b1d5;
    --btn-border-disable: #5251ad;
}

.login-page {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-blend-mode: hard-light;
    background: linear-gradient(135deg, rgba(15, 23, 70, 0.88), rgba(29, 78, 216, 0.75)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2000&auto=format&fit=crop') no-repeat center center / cover;
    position: relative;
    overflow: hidden;
}

/*.login-page {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1e40af 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

    .login-page::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
        background-size: 24px 24px;
        pointer-events: none;
    }*/
.login-wrap {
    /*    width: 760px;*/
    max-width: 90%;
    text-align: center;
    color: var(--color-white);
}

.avatar-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 18px auto;
    display: block;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin: 6px 0 6px;
    letter-spacing: 1px;
}

.login-sub {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.login-box {
    display: inline-block;
    background: transparent;
    padding: 18px 22px 10px;
    border-radius: 6px;
}

.login-input {
    display: block;
    width: 320px;
    max-width: 90%;
    padding: 10px 14px;
    margin: 8px auto;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.95);
/*    color: #444;*/
    font-size: 14px;
}

.login-button {
    display: inline-block;
    padding: 8px 18px;
    margin-top: 10px;
    border-radius: 8px;
    background: var(--btn-bg);
    color: var(--color-white);
    border: none;
    box-shadow: 0 2px 0 rgba(0,0,0,0.12);
    cursor: pointer;
    font-weight: 600;
}

    .login-button:hover {
        background-color: var(--btn-hover);
    }

.error-message {
    color: #FF0000;
    background: #FFEFEF;
    border: 1px solid #FB0000;
    padding: 8px 12px;
    border-radius: 6px;
    display:none;
    margin-top: 12px;
}

    .error-message.is-visible {
        display: block;
    }
@media (max-width: 480px) {
    .avatar-logo { width: 160px; }
    .login-input { width: 260px; }
}






html,
body {
    height: 100%;
    margin: 0;
}

section {
    margin: 0 !important
}

.request-page {
    min-height: 100vh;
    padding: 16px 20px 28px;
    background: var(--bg-page);
    /*    color: #fff;*/
}
.topbar .left {
    font-size: 14px;
    font-weight: 600
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: wrap;
    color: var(--color-white);

}

    .topbar .left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--color-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

    .logout-link:hover,
    .logout-link:focus,
    .logout-link:active {
        background: rgba(255,255,255,0.22);
        border-color: rgba(255,255,255,0.35);
        color: #fff;
        text-decoration: none !important;
        outline: none;
        transform: translateY(-1px);
    }

    .logout-link i {
        font-size: 12px;
    }

    .topbar .right {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

        .topbar .right .topbar-nav-btn {
            background: var(--btn-disable);
            color: var(--btn-color-disable);
            border-radius: 12px;
            padding: 8px 14px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            border: 1px solid var(--btn-border-disable);
        }

            /* .topbar .right .topbar-nav-btn:hover {
                background: #f1ecff;
                color: #4337af;
            } */

            .topbar .right .topbar-nav-btn:hover {
                background: #1f3dc7;
                color: #FFFFFF;
                border-color: #6586c1;
            }

            .topbar .right .topbar-nav-btn.is-active {
                background: var(--btn-active);
                color: var(--color-white);
                border: 1px solid var(--btn-border)
            }






/* css file dinh kem*/
/* Local override for attachment block on this page only */
#frmGuiYeuCau .cp-attach {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    margin:0
}

#frmGuiYeuCau .cp-divider {
    display: none;
}

#frmGuiYeuCau .cp-attach__list {
    border-radius: 8px;
    padding: 10px 12px;
}

#frmGuiYeuCau .cp-attach__add {
    border: 1px dashed #cfd6e1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.error-box.is-visible {
    display: block
}

.cp-attach__icon--pdf {
    color: #ef6c00;
}

.cp-attach__icon--word {
    color: #1565c0;
}

.cp-attach__icon--excel {
    color: #2e7d32;
}

.cp-attach__icon--image {
    color: #00838f;
}

.cp-attach__icon {
    background: #f3f4f6
}


/*CSS DANH SÁCH YÊU CẦU*/
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 12px;
}



.kanban-filter-panel {
    position: absolute;
    /*
          top: 52px;
      */
    right: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px;
    width: 220px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
}

.kanban-filter-row {
    margin-bottom: 10px;
}

    .kanban-filter-row label {
        font-size: 13px;
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
    }

.kanban-filter-actions {
    display: flex;
    justify-content: space-between;
}

    .kanban-filter-actions button {
        border: none;
        padding: 6px 10px;
        border-radius: 4px;
        cursor: pointer;
    }

#applyFilterBaoTri {
    background: #0404B7;
    color: white;
}


/*******************************/
.process-time-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.process-time-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155;
}

    .process-time-item:hover {
        border-color: #6366f1;
        background: #f8faff;
    }

    .process-time-item input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border: 2px solid #cbd5e1;
        border-radius: 50%;
        position: relative;
        margin: 0;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

        .process-time-item input[type="radio"]:checked {
            border-color: #6366f1;
        }

            .process-time-item input[type="radio"]:checked::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                width: 8px;
                height: 8px;
                background: #6366f1;
                border-radius: 50%;
                transform: translate(-50%, -50%);
            }

    .process-time-item:has(input:checked) {
        border-color: #6366f1;
        background: #f5f7ff;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
    }

/*    CSS GỬI YÊU CẦU*/
.request-hero {
    max-width: 880px;
    margin: 42px auto 0;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
}

    .request-hero h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 800;
        color: #fff;
    }

    .request-hero p {
        margin: 0 0 20px;
        color: rgba(255, 255, 255, .9);
    }

.request-form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

    .form-label .required {
        margin-left: 6px;
        color: #ff4d4f;
    }

.form-control-plain {
    width: 100%;
    height: 46px;
    border: none;
    outline: none;
    border-radius: 10px;
    color: #1f2937;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .form-control-plain:focus {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    }

    .form-control-plain.is-invalid {
        border: 1px solid #ef4444 !important;
        box-shadow: 0 0 0 2px rgba(239, 68, 68, .16) !important;
    }

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    color: #ff0003;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    animation: fadeSlide .18s ease;
}

    .field-error i {
        margin-top: 2px;
        font-size: 11px;
        flex-shrink: 0;
    }


.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
}

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #8c8c8c;
        font-size: 14px;
        pointer-events: none;
    }

    .input-with-icon input {
        padding-left: 42px;
    }

.date-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    font-weight: 700;
}

.date-range-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.time-mode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 14px;
}

    .time-mode-actions.is-invalid .time-mode-btn {
        border-color: #ef4444;
        box-shadow: 0 0 0 2px rgba(239, 68, 68, .12);
    }

.time-mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

    .time-mode-btn:hover {
        background: rgba(255, 255, 255, .2);
    }

    .time-mode-btn.active {
        background: #3b2fd6;
        border-color: #4f46e5;
        box-shadow: 0 8px 20px rgba(59, 47, 214, .25);
    }

.time-section {
    animation: fadeSlide .22s ease;
}

.btn-primary-solid,
.btn-secondary-solid {
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-primary-solid {
    padding: 10px 16px;
    background: var(--btn-active);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 47, 214, .18);
}

    .btn-primary-solid:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(59, 47, 214, .24);
    }

.btn-secondary-solid {
    padding: 10px 18px;
    background: #e5e7eb;
    color: #1f2937;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

    .btn-secondary-solid:hover {
        transform: translateY(-1px);
    }

.request-success-panel {
    display: none;
    max-width: 880px;
    margin: 26px auto 0;
}

    .request-success-panel.is-visible {
        display: block;
    }

.request-success-banner {
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #86efac;
    background: #ecfdf3;
    color: #15803d;
    text-align: center;
    font-weight: 800;
}

.request-success-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

@keyframes fadeSlide {

    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control {
    /*        height: 44px;*/
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    outline: none;
}

    .form-control:focus,
    .form-control:active {
        border: none;
        box-shadow: none;
        outline: none;
    }

.bootstrap-select .dropdown-toggle {
    height: 46px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.bootstrap-select.btn-group:focus-within,
.bootstrap-select {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: none !important
}

.row .bootstrap-select,
.form-row .bootstrap-select {
    padding: 0 12px;
}

#frmGuiYeuCau .row {
    margin: 0
}

input.form-control-plain,
textarea.form-control-plain {
    padding: 5px 12px;
}

.contact-suggestion-popup {
    position: absolute;
    z-index: 10001;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    display: none;
}

.contact-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.12s ease, color 0.12s ease;
}

    .contact-suggestion-item:last-child {
        border-bottom: none;
    }

    .contact-suggestion-item:hover {
        background: #f8f9fb;
    }

.contact-suggestion-phone {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #212529;
}

.contact-suggestion-name {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.2;
    color: #6c757d;
}


.request-search-hero {
    max-width: 760px;
    margin: 26px auto 0;
    text-align: center;
}

    .request-search-hero h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 800;
        color: #fff;
    }

    .request-search-hero p {
        margin: 0 0 18px;
        color: rgba(255, 255, 255, 0.92);
        text-align: center
    }

.request-search {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

    .request-search input {
        flex: 1 1 320px;
        min-width: 220px;
        height: 44px;
        border: none;
        border-radius: 12px;
        padding: 0 16px;
        outline: none;
        color: #1f2937;
        background: #fff;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
    }

    .request-search button {
        height: 44px;
        border: none;
        border-radius: 12px;
        padding: 0 22px;
        font-weight: 700;
        background: var(--btn-active);
        color: #fff;
        box-shadow: 0 10px 25px rgba(47, 47, 143, 0.22);
    }

        .request-search button:hover {
            background: #051a7c;
        }

.request-search-hint {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.request-result-wrap {
    max-width: 760px;
    margin: 18px auto 0;
}

.error-message {
    width: 100%;
    box-sizing: border-box;
}