body {
    font-family: 'Inter', sans-serif;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

.custom-scrollbar::-webkit-scrollbar { width: 12px; height: 12px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #a8a8a8; border-radius: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #888; }

/* --- KHÔI PHỤC LOADING SPINNER CŨ (3 MÀU) --- */
.loading-container {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    filter: url("#goo");
    animation: rotate-move 1.2s ease-in-out infinite;
}

.dot {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #000;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.dot-3 {
    background-color: #0051ff;
    animation: dot-3-move 1.2s ease infinite, index 6s ease infinite;
}

.dot-2 {
    background-color: #ff1717;
    animation: dot-2-move 1.2s ease infinite, index 6s -4s ease infinite;
}

.dot-1 {
    background-color: #ffc400;
    animation: dot-1-move 1.2s ease infinite, index 6s -2s ease infinite;
}

@keyframes dot-3-move {
    20% { transform: scale(1); }
    45% { transform: translateY(-18px) scale(0.45); }
    60% { transform: translateY(-90px) scale(0.45); }
    80% { transform: translateY(-90px) scale(0.45); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes dot-2-move {
    20% { transform: scale(1); }
    45% { transform: translate(-16px, 12px) scale(0.45); }
    60% { transform: translate(-80px, 60px) scale(0.45); }
    80% { transform: translate(-80px, 60px) scale(0.45); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes dot-1-move {
    20% { transform: scale(1); }
    45% { transform: translate(16px, 12px) scale(0.45); }
    60% { transform: translate(80px, 60px) scale(0.45); }
    80% { transform: translate(80px, 60px) scale(0.45); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes rotate-move {
    55% { transform: translate(-50%, -50%) rotate(0deg); }
    80% { transform: translate(-50%, -50%) rotate(360deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes index {
    0%, 100% { z-index: 3; }
    33.3% { z-index: 2; }
    66.6% { z-index: 1; }
}
/* --- KẾT THÚC LOADING SPINNER CŨ --- */

.breakable { word-break: break-all; }
.stat-card { background: linear-gradient(135deg, var(--tw-gradient-stops)); }

tr.highlighted {
    background-color: #eff6ff !important;
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

#main-content { transition: opacity 0.3s ease-in-out; }
.progress-container {
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
    overflow: hidden;
}

.stat-value {
    font-size: 2.25rem;
    line-height: 2.5rem;
    word-break: break-all;
}
@media (max-width: 640px) {
    .stat-value {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.ss-main {
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
}
.ss-main .ss-single-selected, .ss-main .ss-multi-selected {
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
}
.ss-main .ss-content .ss-list .ss-option.ss-highlighted, .ss-main .ss-content .ss-list .ss-option:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}
.filter-item {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1023px) {
    #history-table thead, #warning-table thead { display: none; }
    #history-table, #history-table tbody, #history-table tr, #history-table td,
    #warning-table, #warning-table tbody, #warning-table tr, #warning-table td {
        display: block;
        width: 100%;
    }
    #history-table tr, #warning-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        background-color: #fff;
    }
    #history-table td, #warning-table td {
        padding: 0.75rem;
        text-align: right;
        position: relative;
        border-bottom: 1px solid #eee;
    }
    #history-table td:last-child, #warning-table td:last-child { border-bottom: 0; }
    #history-table td::before, #warning-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        width: 45%;
        padding-right: 0.75rem;
        text-align: left;
        font-weight: 600;
        color: #374151;
    }
}

#row-status-footer.visible {
    opacity: 1;
    pointer-events: auto;
}

#image-viewer-content.grabbing, #image-viewer-content.grabbing img {
    cursor: grabbing;
}

.employee-list-item.active {
    background-color: #3b82f6;
    color: white;
}
.employee-list-item-content:hover {
     background-color: #dbeafe;
}
.employee-list-item.active .employee-list-item-content {
    background-color: transparent !important;
}
 .employee-list-item.active .employee-list-item-content:hover {
    background-color: #2563eb;
}
.form-section {
    transition: all 0.3s ease-in-out;
}
.drag-active {
    outline: 2px dashed #3b82f6;
    outline-offset: -10px;
    background-color: #eff6ff !important;
}
.locked .section-content {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.section-content {
    transition: opacity 0.3s ease-in-out;
}
.tab-btn {
    border-bottom: 2px solid transparent;
}
.tab-btn.active {
    border-color: #3b82f6;
    color: #3b82f6;
    font-weight: 600;
}

#menu-search-input::placeholder {
  color: #9ca3af;
}

.sticky-horizontal-scrollbar {
    max-height: calc(90vh - 180px);
    overflow: auto; 
}

.status-blue { 
    background-color: #bfdbfe !important;
}
.status-blue:hover {
    background-color: #93c5fd !important;
}

.status-green { 
    background-color: #d1fae5 !important;
}
.status-green:hover {
    background-color: #a7f3d0 !important;
}

.status-nude { 
    background-color: #fef3c7 !important;
}
.status-nude:hover {
    background-color: #fde68a !important;
}

.status-red { 
    background-color: #fecaca !important;
}
.status-red:hover {
    background-color: #fca5a5 !important;
}

.status-purple { 
    background-color: #ddd6fe !important;
}
.status-purple:hover {
    background-color: #c4b5fd !important;
}

.status-gray { 
    background-color: #e5e7eb !important;
    opacity: 0.7; 
}
.status-gray:hover {
    background-color: #d1d5db !important; 
    opacity: 1; 
}

.status-line-yellow {
    background-color: #fcd34d !important;
    font-weight: 600;
}

.status-teal {
    background-color: #99f6e4 !important;
}
.status-teal:hover {
    background-color: #5eead4 !important; 
}

#sales-call-table-body tr:not([class*="status-"]):hover {
    background-color: #f3f4f6 !important;
}

.filter-button.active {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 2px solid #3b82f6;
}

.color-box {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
}
.calculator-popup {
    position: fixed;
    z-index: 100;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
    min-width: 320px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.calculator-header {
    background-color: #e5e7eb;
    padding: 0.5rem 1rem;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d1d5db;
    flex-shrink: 0;
}

.calculator-header-btn {
    padding: 0.25rem;
    border-radius: 9999px;
    color: #4b5563;
    background-color: transparent;
    transition: background-color 0.15s, color 0.15s;
}
.calculator-header-btn:hover {
    background-color: #d1d5db;
    color: #1f2937;
}

#calculator-close-btn {
    font-size: 1.5rem;
    line-height: 1;
}

.calculator-expression-display {
    min-height: 2rem;
    color: #6b7280;
    text-align: right;
    padding: 0.25rem 1rem;
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calculator-display {
    background-color: #ffffff;
    color: #111827;
    text-align: right;
    padding: 1.5rem 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.calculator-btn, .calculator-btn-special, .calculator-btn-operator, .calculator-btn-equals {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
}

.calculator-btn {
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.calculator-btn:hover { background-color: #f3f4f6;}
.calculator-btn:active { background-color: #e5e7eb;}

.calculator-btn-special {
    background-color: #e5e7eb;
    color: #1f2937;
}
.calculator-btn-special:hover { background-color: #d1d5db;}
.calculator-btn-special:active { background-color: #9ca3af;}


.calculator-btn-operator {
    background-color: #fb923c;
    color: #ffffff;
}
.calculator-btn-operator:hover { background-color: #f97316;}
.calculator-btn-operator:active { background-color: #ea580c;}

.calculator-btn-equals {
    background-color: #3b82f6;
    color: #ffffff;
}
.calculator-btn-equals:hover { background-color: #2563eb;}
.calculator-btn-equals:active { background-color: #1d4ed8;}

.calculator-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background-image: linear-gradient(135deg, #d1d5db 25%, transparent 25%), linear-gradient(135deg, #d1d5db 50%, transparent 50%), linear-gradient(135deg, #d1d5db 75%, transparent 75%);
    background-size: 8px 8px;
    background-position: 10px 10px;
    background-repeat: no-repeat;
}

.calculator-history-panel {
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
}
.calculator-history-item {
    padding: 0.5rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}
.calculator-history-item:hover {
    background-color: #eff6ff;
}
.calculator-history-item .expression {
    color: #6b7280;
    font-size: 0.875rem;
}
.calculator-history-item .result {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
}

/* --- [UPDATED] CONTEXT MENU STYLES --- */
.context-menu {
    position: fixed;
    z-index: 9999; /* Đảm bảo menu hiển thị trên cùng */
    background-color: white;
    border-radius: 0.75rem; /* Bo góc mềm mại hơn */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* Đổ bóng sâu hơn */
    border: 1px solid #e5e7eb;
    min-width: 240px; /* Tăng độ rộng tối thiểu */
    padding: 0.5rem 0; /* Padding trên dưới */
    font-family: 'Inter', sans-serif;
    animation: fadeInScale 0.15s ease-out forwards; /* Hiệu ứng xuất hiện */
    transform-origin: top left;
    
    /* [MỚI] Thêm thanh cuộn nếu quá dài */
    max-height: 350px; 
    overflow-y: auto; 
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    position: relative;
}

.context-menu li a {
    display: flex; /* Dùng flexbox để căn icon nếu có */
    align-items: center;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #374151; /* Gray-700 */
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    white-space: normal; /* Cho phép xuống dòng nếu text dài */
    line-height: 1.4;
    border-left: 3px solid transparent; /* Thanh màu bên trái khi hover */
}

.context-menu li a:hover {
    background-color: #f3f4f6; /* Gray-50 */
    color: #1f2937; /* Gray-900 */
    border-left-color: #3b82f6; /* Blue-500 */
}

/* Thêm đường phân cách nếu cần */
.context-menu li.separator {
    border-top: 1px solid #e5e7eb;
    margin: 0.25rem 0;
}

/* Style riêng cho các mục đặc biệt (như Xóa) */
.context-menu li a.text-red-600 {
    color: #dc2626;
}
.context-menu li a.text-red-600:hover {
    background-color: #fef2f2;
    border-left-color: #dc2626;
}
/* --- END CONTEXT MENU STYLES --- */

body.modal-open {
    overflow: hidden;
}
@media (min-width: 768px) {
    body.modal-open {
        overflow: auto;
    }
}

.log-item {
    animation: fade-in 0.5s ease-out forwards;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.status-day-bar {
    background-color: #22c55e;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.status-day-bar.has-errors {
    background-color: #ef4444;
}
.status-day-bar:hover {
    transform: scale(1.2);
    z-index: 10;
}
.status-day-bar.selected {
     box-shadow: 0 0 0 3px #3b82f6;
     transform: scale(1.2);
     z-index: 5;
}
.status-day-bar .tooltip {
    visibility: hidden; opacity: 0; transition: opacity 0.2s;
    transform: translateX(-50%); left: 50%;
}
.status-day-bar:hover .tooltip {
    visibility: visible; opacity: 1;
}
.error-label {
    background-color: #FEE2E2;
    color: #DD0000;
}
.log-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.log-details {
    font-size: 1.05rem;
}

.date-picker-item {
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}
.date-picker-item:hover {
    background-color: #f3f4f6;
}
.date-picker-item.selected {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
}
.date-picker-item.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 380px) {
    #stats-value-1, #stats-value-2, #stats-value-3 {
        font-size: 1.1rem;
    }
}

/* --- CALL WIDGET STYLES --- */
#call-widget-container {
    position: fixed;
    /* Vị trí ban đầu */
    bottom: 20px;
    left: 20px;
    z-index: 90;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}
#call-widget-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* NÂNG CẤP: Style khi kéo thả */
#call-widget-container.is-dragging {
    cursor: move;
    opacity: 0.9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}
.call-widget-header.cursor-move {
    cursor: move;
}
/* KẾT THÚC NÂNG CẤP */

.call-widget-header {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
}

.call-display-area {
    background-color: #f9fafb;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
#call-number-display {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#call-status-display {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
    height: 20px;
}

.dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    justify-items: center;
}
.dialpad-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    user-select: none;
}
.dialpad-btn:hover {
    background-color: #e5e7eb;
}
.dialpad-btn:active {
    background-color: #d1d5db;
}
.dialpad-sub {
    font-size: 0.65rem;
    color: #9ca3af;
    font-weight: normal;
    margin-top: -4px;
    text-transform: uppercase;
}

.call-controls {
    display: flex;
    justify-content: space-around;
    padding: 0 20px 20px 20px;
}
.control-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.control-btn:hover {
    transform: scale(1.05);
}
.control-btn:active {
    transform: scale(0.95);
}
.btn-call {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
.btn-hangup {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* NÂNG CẤP (VẤN ĐỀ 1): Style cho nút "Thông tin" khi active */
#btn-info.info-active > div {
    background-color: #dbeafe; /* Nền xanh nhạt (giống Mute/Hold) */
}
#btn-info.info-active > span,
#btn-info.info-active > div > svg {
    color: #2563eb; /* Chữ và icon màu xanh đậm */
}
/* KẾT THÚC NÂNG CẤP */


#incoming-call-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 110;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: slide-in-right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    border-left: 6px solid #22c55e;
}
#incoming-call-popup.hidden {
    display: none;
}
@keyframes slide-in-right {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.incoming-ring-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse-ring-bg 2s infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes pulse-ring-bg {
    0% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(0.8); }
}
.incoming-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
}

/* --- TOAST NOTIFICATIONS (NEW) --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Cho phép click xuyên qua container */
}

.toast-message {
    pointer-events: auto; /* Bật lại click cho từng toast */
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInRight 0.3s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    transition: all 0.3s ease;
    border-left: 6px solid transparent; /* Màu sẽ được set inline hoặc class */
    position: relative;
}

.toast-message.toast-hiding {
    animation: fadeOutRight 0.4s forwards;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
}

.toast-icon {
    font-size: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.toast-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    margin-left: 12px;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.toast-close:hover {
    color: #333;
}

/* Progress Bar */
.toast-progress {
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    position: absolute;
    bottom: 0;
    left: 0;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    background-color: currentColor; /* Sẽ lấy màu text của loại toast */
    opacity: 0.5;
    transform-origin: left;
    animation: progressLinear linear forwards;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes progressLinear {
    from { width: 100%; }
    to { width: 0%; }
}

/* --- END TOAST NOTIFICATIONS --- */

/* --- HIỆU ỨNG LÀM MỜ SỐ TIỀN (MODULE LƯƠNG) --- */
.sensitive-data {
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none; /* Ngăn bôi đen để tránh lộ khi copy */
    position: relative;
}

.sensitive-data.blurred {
    color: transparent !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4); /* Tạo hiệu ứng mờ đen */
}
/* Khi hover vào dữ liệu bị mờ, hiện gợi ý con trỏ */
.sensitive-data.blurred:hover {
    cursor: pointer;
    opacity: 0.7;
}

/* Hiệu ứng nhấp nháy khi bấm nút "Hôm nay" */
@keyframes flash-highlight-anim {
    0%, 100% { background-color: #f0f9ff; }
    50% { background-color: #bfdbfe; } /* blue-200 - Đậm hơn để thấy rõ */
}

/* Class kích hoạt animation nhấp nháy */
.highlight-flash .today-column-header, 
.highlight-flash .today-cell {
    animation: flash-highlight-anim 0.5s ease-in-out 3 !important; /* Chạy 3 lần, ưu tiên cao nhất */
}

/* --- SECURITY: BẢO VỆ DỮ LIỆU KHI IN (Print Protection) --- */
@media print {
    body {
        display: none !important; /* Ẩn toàn bộ nội dung body khi in */
    }

    /* Nếu muốn hiển thị thông báo thay thế (tùy chọn) */
    html::after {
        content: "Công Ty TNHH MTV Gas Long Hoa. Để được hỗ trợ thêm xin Quý Nhân Viên vui lòng liên hệ: 0919.494.557 (Minh Duy) để được hỗ trợ. Xin cảm ơn!";
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }
}