﻿.form-section {
    max-width: 800px;
    margin-top: 20px;
}

.employee-name {
    color: #f47920; /* màu cam */
    font-style: italic; /* chữ in nghiêng */
    font-weight: bold; /* chữ đậm */
    margin-top: -5px; /* dịch lên sát tiêu đề */
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.contact-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border-left: 3px solid green;
    padding-left: 5px;
}


.form-group label {
    width: 150px;
    font-weight: 500;
    padding-top: 5px;
}

.form-group input,
.form-group select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.employee-container {
    display: flex;
    width: 95%;
    height:90%
    /* 		height: 100vh; */
    font-family: Arial, sans-serif;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #f8f8f8;
    border-right: 1px solid #ddd;
    padding: 20px 10px;
}

    .sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidebar li {
        padding: 10px;
        margin-bottom: 5px;
        cursor: pointer;
    }

        .sidebar li.active {
            background-color: #f0f0ff;
            border-left: 4px solid darkorange;
            font-weight: bold;
        }

/* Content */
.content {
    flex: 1;
    padding: 20px 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-save {
    background-color: darkorange;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.contact-container {
    width: 100%;
    max-width: 900px;
    padding: 10px;
    background-color: #fff;
}

.contact-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border-left: 3px solid darkorange;
    padding-left: 8px;
}

.contact-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-form label {
    width: 220px;
    font-weight: 500;
    display:block;
    min-width:220px;
}

.custom-input {
    width: 100%;
}

.btn-add-circle {
    border-radius: 50%;
    background-color: darkorange;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

    .btn-add-circle:hover {
        background-color: darkorange;
    }

.btn-remove {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-weight: bold;
    padding: 4px 8px;
}

    .btn-remove:hover {
        text-decoration: underline; /* Gạch chân khi hover */
    }

.health-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .form-row label {
        width: 180px;
        font-weight: 500;
    }

.input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.health-input {
    width: 100%;
    background-color: #f8faff;
    border-radius: 8px;
}

.unit {
    font-size: 14px;
    color: #6b7280;
}

.health-input.error {
    border: 1px solid #f87171 !important;
}





.e-grid .e-row,
.e-grid .e-altrow {
    background-color: white !important;
}

.custom-search input {
    background-color: #f9fafb;
    border-radius: 8px;
}

.custom-status-dropdown .e-input {
    background-color: #f9fafb;
    border-radius: 8px;
    font-weight: 500;
    color: #374151;
}

.e-icons.e-user {
    color: #4b5563;
}

.e-flat.e-danger .e-btn-icon {
    color: #ef4444;
}

.e-flat.e-primary .e-btn-icon {
    color: #f87171;
}

.e-btn.e-flat,
.e-css.e-btn.e-flat {
    background-color: #d1d5db !important;
    color: #374151;
    border-radius: 8px;
}

    .e-btn.e-flat:hover,
    .e-css.e-btn.e-flat:hover {
        background-color: #e5e7eb !important;
        color: #1f2937 !important;
    }

.e-message::before {
    content: '\e7cb';
}

.e-edit::before {
    content: '\e78f';
}

.e-delete::before {
    content: '\e773';
}

.e-like::before {
    content: '\e682';
}

.e-btn.compact-btn {
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
}

    .e-btn.compact-btn .e-btn-icon {
        font-size: 13px;
        margin-right: 4px;
    }

    .e-btn.compact-btn.e-primary {
        background-color: #4CAF50;
        border-color: #4CAF50;
    }

/* ✅ Nút Xuất File */
.export-btn .e-btn {
    background-color: white !important;
    color: red !important;
    border: 1px solid red !important;
    border-radius: 16px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
}

    .export-btn .e-btn:hover {
        background-color: red !important;
        color: white !important;
    }

.save-btn .e-btn {
    background-color: orangered !important;
    color: white !important;
    border-radius: 16px !important;
    border: none !important;
}

    .save-btn .e-btn:hover {
        opacity: 0.9;
    }

.status-dropdown .e-input {
    padding-left: 28px;
    background-image: url('/icons/user.svg');
    background-repeat: no-repeat;
    background-position: 6px center;
    background-size: 14px;
}

.status-dropdown.e-control-wrapper {
    background-color: lightgray !important;
    border-radius: 5px;
    width: 45% !important;
}

.status-dropdown input.e-input {
    text-align: center;
}

.e-input-group-icon .e-ddl-icon .e-icons {
    color: red !important;
}

/* ✅ Nút Tạo Mới & Xuất File */
.create-btn {
    position: relative;
    display: inline-flex;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.main-btn, .arrow-btn {
    background: linear-gradient(to right, #ff6000, #ff6600);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    transition: 0.3s ease;
}

.main-btn {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.arrow-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 6px 10px;
    font-size: 11px;
}

    .main-btn:hover, .arrow-btn:hover {
        background: linear-gradient(to right, #ff5e00, #ff5500);
    }

/* Dropdown menu */
.dropdown-menu-Person {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 4px 0;
    width: 130px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

    .dropdown-menu-Person li {
        padding: 6px 10px;
        font-size: 12px;
        cursor: pointer;
    }

        .dropdown-menu-Person li:hover {
            background-color: #f1f1f1;
        }

/* ✅ Export File nút nhỏ */
.create-btn.export-btn .main-btn,
.create-btn.export-btn .arrow-btn {
    background: white;
    color: orangered;
    border: 1px solid #ff6000;
    font-size: 12px;
    padding: 6px 10px;
}

    .create-btn.export-btn .main-btn:hover,
    .create-btn.export-btn .arrow-btn:hover {
        background: #ff6000;
        color: white;
    }


.dropdown-menu-Export {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 4px 0;
    width: 130px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

    .dropdown-menu-Export li {
        padding: 6px 10px;
        font-size: 12px;
        cursor: pointer;
    }

        .dropdown-menu-Export li:hover {
            background-color: #f1f1f1;
        }


.e-grid .e-rowcell,
.e-grid .e-row {
    overflow: visible !important;
}

/* Style nút ba chấm */
.btn-more {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/* Popup menu container */
.custom-popup-menu {
    position: absolute;
    top: 28px; /* nằm dưới nút ba chấm */
    right: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-width: 100px;
    z-index: 9999;
}

    /* Danh sách trong menu */
    .custom-popup-menu ul {
        list-style: none;
        margin: 0;
        padding: 5px 0;
    }

    /* Item menu */
    .custom-popup-menu li {
        padding: 8px 12px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .custom-popup-menu li:hover {
            background: #f5f5f5;
        }

.btn-create {
    background: none;
    border: none;
    color: #ff6000; /* màu đỏ */
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
}

    .btn-create .plus {
        font-size: 18px;
        margin-right: 4px;
    }

    .btn-create:hover {
        color: #d32f2f; /* màu đỏ đậm hơn khi hover */
    }
      
.contact-form {
    position: relative;
    border: 1px solid #eee;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    overflow: visible; /* quan trọng để nút không bị cắt */
}

.setting-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 20px;
    width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.setting-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

    .setting-item label {
        font-weight: bold;
        margin-bottom: 5px;
    }


.description {
    font-size: 12px;
    color: #f47920;
    margin-bottom: 5px;
    margin-top: 5px;
}

.add-btn {
    background: transparent;
    color: #f47920;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: end;
}

    .add-btn:hover {
        text-decoration: underline;
    }

.sub-form {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 15px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.e-switch-wrapper{
    width:35px;

}

.e-switch-wrapper .e-switch-on {
    background-color: #f47920 !important;
}

    .e-switch-wrapper .e-switch-handle.e-switch-active {
        background-color: #fff3e0 !important;
        border: 1px solid #fff3e0 !important;
    }

.e-tab .e-tab-header .e-toolbar-item.e-active {
    background: #f47920;
}

.e-tab .e-tab-header .e-toolbar-item {
    background: white !important;
}

.e-tab .e-tab-header {
    background: white !important;
}

    .e-tab .e-tab-header .e-toolbar-item.e-active {
        background: #f47920 !important;
    }

.setting-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 20px;
    width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.setting-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

    .setting-item label {
        font-weight: bold;
        margin-bottom: 5px;
    }


.description {
    font-size: 12px;
    color: #f47920;
    margin-bottom: 5px;
    margin-top: 5px;
}

.add-btn {
    background: transparent;
    color: #f47920;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: end;
}

    .add-btn:hover {
        text-decoration: underline;
    }

.sub-form {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 15px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Đổi màu nền thanh khi bật */
.e-switch-wrapper .e-switch-on {
    background-color: #f47920 !important; /* Cam đỏ */
    border: 1px solid #f47920;
}

/* Đổi màu nút trượt khi bật */
.e-switch-wrapper .e-switch-handle.e-switch-active {
    background-color: #fff3e0 !important; /* Nút trượt nhạt */
    border: 1px solid #f47920;
}

.e-tab .e-tab-header .e-toolbar-item.e-active {
    background: ##f47920;
}

.e-tab .e-tab-header .e-toolbar-item {
    background: white !important;
}

.e-tab .e-tab-header {
    background: white !important;
}

    .e-tab .e-tab-header .e-toolbar-item.e-active {
        background: #f47920 !important;
    }

.e-switch-handle .e-switch-active {
    display: block;
    width: 15px;
    height: 15px;
}

.e-switch-wrapper .e-switch-inner.e-switch-active, .e-css.e-switch-wrapper .e-switch-inner.e-switch-active {
    border-color:#f47920;
}

.e-btn.e-flat, .e-css.e-btn.e-flat {
    background-color: transparent !important;
}
