body 
{
	font-size: 12px;
	margin:0;
	background:url(../assets/images/bg/bg.png) fixed;
	position:relative;
	background-repeat:no-repeat;
	background-size:cover;
}
label 
{
	display: inline-block;
	width: 110px;
	font-weight:bold;
}
#new label 
{
	display: inline-block;
	width: 150px;
	font-weight:bold;
}
legend 
{
	padding: 0.5em;
}
fieldset fieldset label 
{
	display: block;
}
.login{
	margin:50px auto;
	width:330px;
	border:1px solid black;
	border-radius: 15px;
}
.login .title{
	width:100%;
	height:80px;
	background-color: #feffed;
	border-radius: 15px 15px 0px 0px;
	margin-bottom:30px;
}
.login .title p{
	margin:0;
	text-align:center;
	padding:22px;
	font-size:24px;
}
.login input{
	width:230px;
	height:30px;
	margin-bottom:20px;
	font-size:16px;
}
.login button{
	background-color: #ffbc00;
    border: 2px solid #ffcb00;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    margin-bottom: 15px;
    padding: 10px;
    width: 72%;
}
#left_menu{
	width:18%;
	height:auto;
	padding:5px 10px;
	float:left;
	background-color:rgba(0, 0, 0, 0);
}
#title{
	font-size:25px;
	color:#fff;
	font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
}
#search{
	margin-top:0px;
	position:relative;
}
#search input[type="text"]{
	background: rgba(0, 0, 0, 0.1) none repeat scroll 0 0;
    border-color: -moz-use-text-color;
    border-radius: 4px;
    border-style: none;
    border-width: medium;
    color: #ffffff;
	height:45px;
	width:100%;
	padding-left:20px;
	
}
#search input:focus{
	outline: none !important;
    border-color: #719ECE;
    box-shadow: 0 0 5px #fff;
}
#search_button{
	position:absolute;
	top:10px;
	right:10px;
	background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
	border:none;
}
#main{	
	width:99%;
	height:auto;
	margin:auto;
	position:relative;
	margin-bottom:45px;
}
#content{
	width:100%;
	margin:0px 10px 10px 0px;
	background: rgba(0, 0, 0, 0.2) none repeat scroll 0 0;
	padding:10px;
	padding-top:0px;
	border-radius: 6px;
	display:flex;
}
#select{
	margin:0;
	padding:0;
	float:left;
	width:14%;
	margin-top:15px;
}
.calendar{
	position:absolute;
	top:15px;
	left:10px;
	color:#fff;
	font-size:18px;

}
#accordion {
	position:relative;
}
#accordion h3{
	
}
#accordion p{
	color:#fff;
	margin-left:20px;
}
#accordion .acc_img{
	margin-right:10px;
	
}
.btn_option{
	width:20%;
	float:left;
	margin-left:10px;
	margin-top:8px;
	}
#content .tieude{
	text-align:center;
	margin-bottom:15px;
	margin-top:12px;
  float:left;
}
#content .tieude p{
	color:#fff;
	margin:0;
	font-size:14px;
}
a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    text-decoration: none;
    color: initial;
}
#button{
	-moz-user-select: none;
    background-color: #3b85bf;
    background-image: none;
    border: 1px solid #3b85bf;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.42857;
    margin-bottom: 0;
    padding: 6px 12px !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
#calendar{
	overflow-y:inherit;
	width:100%;
	margin:0px;
	padding:0px;
}
* {
  box-sizing: border-box;
}
ul {
 
}
li {
 
}
#calendar ul{
  list-style-type: none;
  
  display: table;
  table-layout: fixed;
  padding:0;
  margin:0;
  
}
#calendar ul li{
  display: table-cell;
  width: auto;
  min-width: min-content;
  max-width: max-content; 
}
#calendar th{
	border:1px solid #dcdcdc;
	
}
#calendar th p{
	margin:0;
	font-weight:normal;
	padding:1px 1px;
	}
#calendar .tr_hover{
	background-color:#fff;
	border:1px solid #e5e5e5;
}
#calendar .tr_hover_ood{
	color:#eee;
	border:1px solid red;
	background: rgba(255, 255, 255, 0.5) none repeat scroll 0 0;
}
#calendar .tr_hover_ooh{
	color:#000;
	border:1px solid red;
	background: rgba(255, 255, 255, 0.7) none repeat scroll 0 0;
}
#calendar .tr_hover th{
	border:none;
	border-right:1px solid #e5e5e5;
}
#calendar tr.tr_hover:hover th{
	background-color:#ddd;
	color:#000;
	
}
#calendar  th.buoi{
	width:2%;
}
#calendar  th.thoigian{
	width:2%;
}
#calendar  th.noidung{
	width:36%;
}
#calendar  th.diadiem{
	width:14%;
}
#calendar  th.thanhphan{
	width:4%;
}
#calendar textarea{	
	color:#000;
	width:100%;
	height:100%;
	font-family:Times New Roman;
	font-size:15px;
	box-shadow:0 4px 6px rgba(0,0,0,0.1);
	font-smoothing:subpixel-antialiased;
	display: table-row;
	min-height:50px;
}
#menu
{
	font-size:12px;	
}
#menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
	float:right;
	width:100%;
	position:absolute;
	top:0px;
	right:0px;
	z-index:1000;
	border-bottom: 0.8px solid #fff;
}

#menu ul li {
    float: left;
}

#menu ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-size:15px;
}

#menu ul li a:hover {
    background-color: #111111;
}


.left_group
{
	float:left;
	width:22%;
	padding:20px 15px 15px 15px;
}
.left{
	float:left;
	width:40%;
	padding:0;
}
.left p{
	line-height:0px;
	margin:6px 0px;
}
.right_group{
	float:right;
	width:55%;
	height:350px;
	overflow:scroll;
	background: rgba(0, 0, 0, 0.4) none repeat scroll 0 0;
	margin-top:0px;
	padding:20px;
	color:#fff;
}
.right_group .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
    position: absolute;
    left: 34em;
    top: 50%;
    margin-top: -8px;
}
.commentForm 
{
	width: 106%;
		
}
.commentForm label 
{
	width: auto;
}

.commentForm label.error, .commentForm button.submit 
{
	margin-left: 253px;
}

table{
		border-collapse: collapse;
		width:80%;
		font-size:14px;
		border:none;
		background-color:#fff;
		float:left;
	}

#signupForm label.error {
		margin-left: 10px;
		width: auto;
		display: inline;
	}
#newsletter_topics label.error {
		display: none;
		margin-left: 103px;
	}
.submit{
		width:100px;
		height:30px;
		border-radius: 8px;
		font-weight:normal;
		font-size:20px;
		float:right;
		margin-top:5px;
	}
.submit p{
		margin:0px;
		font-size:16px;
		color:blue;
	}
	
.scroll{
	height:390px;
	overflow:scroll;
	width:100%;
}

table.scroll{
    /* width: 100%; */ /* Optional */
    /* border-collapse: collapse; */
    border-spacing: 0;
    border: 2px solid #dddddd;
    width:100%;
}

table.scroll tbody,
table.scroll thead { display: block;width:100%; }
table.scroll tr{
	width:100%;
	border-bottom:1px solid #dddddd;
}

table.scroll th{
	border-right:1px solid #dddddd;
	border-bottom:1px solid #dddddd;
}
thead tr th { 
    height: 30px;
    line-height: 15px;
}

table.scroll tbody {
    height: 351px;
    overflow-y: auto;
    overflow-x: hidden;
}

tbody { border-top: 1px solid #dddddd; }

tbody td, thead th {
    /* width: 20%; */ /* Optional */
    border-right: 1px solid #dddddd;
    
    /* white-space: nowrap; */
}
tbody td{
	border-bottom:1px solid #dddddd;
}
table.scroll tbody tr:hover{
	background-color:#f59614;
	color:#fff;
}
tbody td input{
	width:100%;
}

tbody td:last-child, thead th:last-child {
    border-right: none;
}

#menu {
  display: flex;
  gap: 3px;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #f7e48b;
  color: #333;
  border: 1px solid #d4b000;
  border-radius: 6px;
  padding: 5px 3px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}
.menu-button:hover {
  background-color: #f1d253;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* icon riêng từng nút */
.menu-button.du::before {
  content: "";
 background: url('../assets/images/danguy.png') no-repeat center center;
  background-size: contain;
  width: 15px;
  height: 15px;
  display: inline-block;
}
.menu-button.ubnd::before {
  content: "";
  background: url('../assets/images/ubnd.png') no-repeat center center;
  background-size: contain;
  width: 15px;
  height: 15px;
  display: inline-block;
}
.menu-button.mt::before {
  content: "";
  background: url('../assets/images/mttqvn.png') no-repeat center center;
  background-size: contain;
  width: 15px;
  height: 15px;
  display: inline-block;
}

.menu-button.active {
    background-color: #f2d560;
    border-color: #b8921e;
    border-bottom: 2px solid #a07d19; /* viền dưới đậm hơn 1 chút */
    font-weight: 600;
}



#lich{
		border-collapse: collapse;
		width:100%;
		font-size:17px;
		border:none;
		background-color:#fff;
		float:left;
		margin-bottom:25px;
	}
#lich .col-thu{
	font-size:14px;
	width:4%;
	background:rgba(0, 0, 0, 0.2) none repeat scroll 0 0;
	color:red;
	border-bottom:1px solid red
}

#lich .col-buoi{
	width:4%;
	
}

#lich .col-buoi.sang {
  background: #fff;
  color: #000;
}

#lich .col-buoi.chieu {
  background: #e9f5fb;
  color: #000;
}

#lich tr:hover th.past {
 
    cursor: default;
}
table tr, table th, table td {
    min-height: 40px;
    height: auto;
}
	
	#calendar input{
		position: absolute;
	}
	
	#calendar tbody tr:hover>th{
		background: #FFF9E6 !important;   /* vàng nhạt pastel */
		           /* chữ đen dễ đọc */
		transition: 0.25s;
	}
/* ƯU TIÊN CAO NHẤT: buổi đã qua */
.past {
  background:rgba(0, 0, 0, 0.2) !important;
}
	
	/* loại bỏ highlight nền ở cột Thứ và Buổi */
#calendar tbody tr:hover>th.col-thu,
#calendar tbody tr:hover>th.col-thu .ngay-duong{
  background: rgba(0, 0, 0, 0.2) !important; /* màu gốc */
  color: #f6ff00 !important;                  /* đổi màu chữ */
  font-weight: bold;
  text-shadow: 0 0 3px #000000;    /* viền sáng nhẹ */
}
#calendar tbody tr:hover>th.col-buoi {
  
  color: #f6ff00 !important;                  /* đổi màu chữ */
  font-weight: bold;
  text-shadow: 0 0 3px #000000;    /* viền sáng nhẹ */
}
/* ✨ NGÀY ÂM: CHỈ ĐỔI MÀU CHỮ – KHÔNG ĐỔI NỀN – KHÔNG ĐỔI VIỀN */
#calendar tbody tr:hover .ngay-am {
    background: transparent !important;   /* không đổi nền */
    color: #000000 !important;            /* giữ màu chữ đẹp */   
    border: none !important;              /* không thay đổi viền */   
    text-shadow: none;    /* viền sáng nhẹ */ 
}	 
	 
	#container {
		margin: 10px;
		border: 1px solid #D0D0D0;
		box-shadow: 0 0 8px #D0D0D0;
		padding:15px;
	}
	#container p{
		font-size:20px;
		font-family: 'Amiri', serif;
	}
	.modal{
		width:100%;
		height:95%;
		padding:15px 15px 10px 20px;
		overflow:scroll;
		max-width: 90%;
	}
	.scroll{
		height:100%;
		padding-right:15px;
	}
	
	.scroll img:hover {
	  transform: none; /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
	  z-index:1000;
	}

    body.modal-open {
        overflow: hidden;
    }


    /* Tăng size chữ */
.huongdan p {
    font-size: 18px;      /* lớn hơn hiện tại */
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Tiêu đề mỗi mục */
.huongdan-title {
    font-size: 22px;
    color: #c22;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Ảnh hướng dẫn */
.huongdan img {
    max-width: 100%;      /* không vượt quá modal */
    width: 450px;         /* chuẩn, không quá to */
    height: auto;
    display: block;
    margin: 10px auto;    /* canh giữa */
}

/* Giảm khoảng cách 2 mục */
.huongdan {
    margin-bottom: 35px;
}
/* Bo góc + bóng đẹp cho modal */
.custom-modal {
    max-width: 860px !important;
    width: 90%;
    padding: 0 !important;
    border-radius: 12px;
    overflow: hidden !important; /* Không cuộn ở modal cha */
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

/* Chỉ lớp này mới được cuộn */
.custom-modal .modal-body {
    max-height: 80vh;
    overflow-y: auto;   /* 1 thanh cuộn duy nhất */
    overflow-x: hidden; /* Không cuộn ngang */
    padding: 25px 30px;
    background: #fff;
    box-sizing: border-box;
}

/* Loại bỏ scroll thừa của wrapper plugin */
.jquery-modal {
    overflow: hidden !important;
}

/* Fix nút đóng */
.custom-modal a.close-modal {
    top: 10px !important;
    right: 10px !important;
}



	
	#gsnhiemvu tr,#gsnhiemvu th, #gsnhiemvu td{
	   border:none;
	}
	#gsnhiemvu tr{
	   line-height:20px;
	}
  .chonthu{
    display:none;
  }
	

	.giaodien
	{
		position:fixed;bottom:36px;z-index:1000;right:0;	
		display:none;
	}
	.giaodien a{
	margin-right:0px;
	background-color:cadetblue;
	font-size:14px;
	text-decoration:none;
	color:#fff;
	padding:8px 5px 5px 5px;
	}
	
	#tuan_select,#nam_select{
	   float:left;
	   width:auto;
	   margin-top:15px;
	   
	}
	.bentrai{
	   color:#fff;
	}
	select {
    padding: 5px 3px; /* Điều chỉnh padding để phù hợp với kích thước nhỏ hơn */
    font-size: 14px;
    color: #555; /* Màu chữ bên trong ô */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px; /* Bo góc mềm mại */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Hiệu ứng nổi */
    transition: all 0.3s ease; /* Hiệu ứng chuyển động */
    width: 90px; /* Giảm chiều rộng của ô select */
    cursor: pointer; /* Thêm con trỏ */
}

/* Hiệu ứng hover và focus */
select:hover {
    border-color: #007bff; /* Đổi màu viền khi hover */
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5); /* Tỏa sáng nhẹ */
}

select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.7);
}

.ngay-duong {
   color:blue;
   font-size:16px;
}
tr:hover .ngay-duong {
   
}

/* ======= ICON ======= */

.toolbar-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    padding: 5px 15px;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
    z-index: 99999;
}

.tb-btn img {
    height: 36px;
    width: auto;
}

.tb-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* ======= NÚT TUẦN NÀY ======= */
.center-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-btn .center-img {
    height: 26px;
}

.center-btn span {
    font-size: 12px;
    margin-top: 2px;
    color: #000000;
    font-weight: 700;
    position:absolute;
    top:17px;
}

/* ======= CẬP NHẬT ======= */
.tb-update {
    background: #007bff;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Hiệu ứng ẩn/hiện */
.toolbar-fixed {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toolbar-fixed.hide {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-edit-btn {
    display: inline-block;
    margin-left: 6px;
    font-size: 20px;
    cursor: pointer;
}

.thoigian {
    position: relative;
}

.btn-edit-mobile {
    position: absolute;
    left: -34px;
    top: 25px;
    padding: 4px 8px;
    background: #0098ba;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display:none;
}

.btn-add-mobile {
    position: absolute;
    left: -34px;
    top: 25px;
    padding: 4px 8px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display:none;
}

.toggle-btn-mobile{
  display:none;
}
		.toggle-btn,.toggle-btn-admin {
    background: linear-gradient(180deg, #f59814, #f57c00); /* cam đậm nổi bật */
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	margin-top:6px;
}
.toggle-btn:hover {
    background: linear-gradient(180deg, #ff9800, #e65100);
    transform: translateY(-1px);
}
.toggle-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Desktop */
.desktop-only {
   display: table-cell;
}
.mobile-only {
  display: none;
}
td.no-tl {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

@media (max-width: 768px)  {

 .toolbar-fixed {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    .toolbar-fixed.hide {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .tb-btn img {
        height: 28px;
    }

    .center-btn .center-img {
        height: 26px;
    }

    .center-btn span {
        font-size: 11px;
    }

    .tb-update {
        padding: 8px 12px;
        font-size: 14px;
    }

    .btn-edit-mobile,.btn-add-mobile{
      display:inline-block;
    }

   
.thoigian-public .time-text {
    white-space: normal !important;
  }

  .time-text span {
    line-height: 1.1;
    display: block !important;
  }

  .time-text {
    position: relative;
    display: inline-block;
    background: rgba(199, 199, 199, 0.2);
    border: 1px solid rgba(0,0,0,0.15);
    opacity: 0.8;
    border-radius: 4px;
    padding: 7px 3px;
    min-width: 0px;
    text-align: center;
    
  }

  .time-text .hh,
  .time-text .mm {
    display: block;
    font-size: 15px;
    line-height: 1.05;
    font-weight: 600;
  }

  /* DẤU : NẰM NGANG */
  .time-text .sep {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    line-height: 1;
    opacity: 0.6;
    pointer-events: none;
  }
    #content,#lich{
    font-size:13px;  
    width:100%;
    table-layout: auto; 
    padding:0px; 
    margin-bottom:80px;  
    }
    #content{
        margin-top:0;
        background: rgb(0 82 158 / 50%) none repeat scroll 0 0;
    }
    .giaodien{
    display:inline-block;
    }   
    #loading {
        display: none;
        position: fixed;
        bottom: 10px;
        right:20px;
        z-index:1000;
    }   
    .bentrai{
        color:#fff;
        width:100%;
    }
    .btn_option {
        float:left;
        width:auto;
        margin-left:0px;
    }
    
     #responsive-container {
        flex-direction: column; /* Xếp dọc cho màn hình nhỏ */
        gap: 10px;
    }

    .select-block {
        width: 100%; /* Chiếm toàn bộ chiều ngang */
    }

    select {
        width: 75%; /* Tăng chiều ngang theo container */
    }
    #tuan_select,#nam_select{
	   margin-top:5px;
	   margin-left:7px;
	}
    .tieude{
        width: 100%;       
        
        padding:10px;      
             
    }
    #oneside{
        display:none;
    }
    #calendar th{
        padding:1px 0px;
        
    }
    #calendar th p{
        padding: 1px;
    white-space: normal;
    word-wrap: break-word;
    font-size: var(--th-p-font, 15px);
    line-height: 1.25;
    }
    #lich p.noidung {
        max-width: 300px; /* Chiếm 40% bảng, các cột khác tự điều chỉnh */
        white-space: normal; /* Cho phép nội dung xuống dòng */
        word-wrap: break-word; /* Ngắt từ nếu cần */
        font-size:15px;
    }

    th.col-buoi,
  td.col-buoi {
    width: 20px !important;
    min-width: 14px !important;
    max-width: 20px !important;

    padding: 0 !important;       /* 🔥 bỏ padding */
    line-height: 1 !important;   /* 🔥 bỏ khoảng dòng */
    box-sizing: border-box;
    position: relative;

    font-size: 0;                /* ẩn text gốc */
  }

  th.col-buoi::before,
  td.col-buoi::before {
    content: attr(data-mobile);
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;             /* chỉnh theo mắt */
    font-weight: 700;
    line-height: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }
 .col-buoi {
    min-width: 2px;
    padding: 0;
    font-size: 13px;
    color: transparent;     /* ẩn chữ gốc */
    position: relative;
  }

  .col-buoi::before {
    content: attr(data-mobile);
    color: #000;
    font-weight: 700;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .col-buoi.sang {
    background: #fff;
  }

  .col-buoi.chieu {
    background: #e9f5fb;
  }

  .chonthu {
  position: fixed;
  bottom: 35px;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0 6px;
  box-sizing: border-box;
}

/* KHỐI CHỌN THỨ */
.chonthu .thu-links {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;

  flex: 1 1 auto;          /* 🔥 CHÌA KHÓA */
  min-width: 0;            /* 🔥 BẮT BUỘC */
  overflow-x: auto;
}

/* NÚT THỨ */
.chonthu .thu-links a {
  flex: 0 0 auto;
  width: 40px;
  text-align: center;

  background: #ff9700;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 5px;
  border-radius: 5px;
}

/* NGÀY ĐÃ QUA */
.chonthu a.past-day {
  background-color: gray !important;
  color: #ccc !important;
}

/* KHỐI FONT */
.font-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.font-btn {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 600;

  border-radius: 5px;
  border: 1px solid #bbb;
  background: #fff;
  color: #333;

  touch-action: manipulation;
  user-select: none;
}


.font-btn:active {
  background: #eaeaea;
}

.toggle-btn {
  display:none;
}
.toggle-btn-mobile{
  display:inline-block;
}

.toggle-btn-mobile {
    background: linear-gradient(180deg, #f59814, #f57c00); /* cam đậm nổi bật */
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	margin-top:6px;
}
.toggle-btn-mobile:hover {
    background: linear-gradient(180deg, #ff9800, #e65100);
    transform: translateY(-1px);
}
.toggle-btn-mobile:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }

  /* Ẩn hẳn cột TL */
  th.tl-col,
  td.tl-col {
    display: none;
  }

  /* Style TL trong cột CV */
  .tl-mobile {
    margin-top: 4px;
    font-size: 14px;
    color: #555;
  }

  .tl-mobile i {
    font-size: 16px;
  }

  /* ===== HÀNG THỨ + NGÀY ===== */
/* ===== HÀNG THỨ + NGÀY (TÁCH HỆ MÀU) ===== */
 .mobile-day-row th {
    background: #f5f7fa;
    color: #1f2937;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 12px !important;
    text-align: left;

    /* ❌ bỏ border-left */
    /* border-left: 6px solid #1f5fa8; */

    /* ✅ vạch xanh KHÔNG BAO GIỜ BỊ GẠCH */
    box-shadow:
      inset 4px 0 0 #1f3da8,
      inset 0 -1px 0 rgba(0,0,0,.08);

  }


.mobile-day-row .m-thu{
  font-size: 16px;      /* to hơn */
  font-weight: 700;     /* đậm */
  opacity: 1;
  color:red;
}
/* chữ phụ */
/* ===== NGÀY DƯƠNG ===== */
.mobile-day-row .m-ngay {
  font-size: 16px;      /* to hơn */
  font-weight: 700;     /* đậm */
  opacity: 1;
  color:rgb(25, 0, 255);
}




/* ===== HÀNG BUỔI ===== */
.mobile-buoi-row th {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px !important;
  text-align: left;
  color: #0f172a;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* SÁNG */
.mobile-buoi-row.sang th {
  background: #ffffff;        /* xanh rất nhạt */

  box-shadow:
      inset 2px 0 0 #3f5ece,
      inset 0 -1px 0 rgba(0,0,0,.08);
}

/* CHIỀU */
.mobile-buoi-row.chieu th {
  background: #E6F3F9 !important;        /* xanh lục nhạt */
  box-shadow:
      inset 2px 0 0 #3f5ece,
      inset 0 -1px 0 rgba(0,0,0,.08);
}
/* ===== STICKY HEADER MOBILE ===== */

/* Thứ + Ngày */
.mobile-day-row th {
  position: sticky;
  top: 40px;
  z-index: 20;
  height:30px;
  font-size: 12px;
}

/* SÁNG / CHIỀU */
.mobile-buoi-row th {
  position: sticky;
  top: 69px;          /* nằm ngay dưới hàng Thứ */
  z-index: 19;
  font-size: 12px;
}

/* tránh bị đè chữ */
.mobile-day-row th,
.mobile-buoi-row th {
  background-clip: padding-box;
}

/* ===== TẠO KHOẢNG CÁCH GIỮA CÁC NGÀY (AN TOÀN CHO STICKY) ===== */

/* khoảng cách SAU ngày trước */
.mobile-day-row:not(:last-of-type) {
  margin-bottom: 50px;
}

/* khoảng cách giữa SÁNG và CHIỀU */
.mobile-buoi-row {
  margin-top: 40px;
}

/* ===== SPACER GIỮA CÁC NGÀY (KHÔNG STICKY) ===== */
.mobile-day-spacer td {
  height: 5px;          /* chỉnh độ xa ở đây */
  background: transparent;
  padding: 0;
  border: none;
}

/* ===== ĐÃ QUA NGÀY ===== */
.mobile-day-row.past-day th {
  background: #dbdbdb !important;   /* xám nhạt */
  color: #6b7280;
}

/* ===== ĐÃ QUA BUỔI ===== */
.mobile-buoi-row.past-buoi th {
  background: #dbdbdb !important;   /* xám rất nhẹ */
  color: #64748b;
}

/* làm chữ SA / CH dịu lại */
.mobile-buoi-row.past-buoi th {
  font-weight: 600;
}


}
	
.btn-tai-lieu {
    background-color: #f0f0f0;
    color: #000;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-tai-lieu:hover {
    background-color: #e0e0e0;
}
.btn-tai-lieu:active {
    transform: scale(0.96);
}

.btn-tai-lieu.has-file {
    background-color: #28a745;
    color: #fff;
}
.btn-tai-lieu.has-file:hover {
    background-color: #218838;
}
.btn-tai-lieu.has-file:active {
    transform: scale(0.96);
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    margin-top: 10px;
    min-width: 220px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(30px);
    animation: slideIn 0.4s forwards;
    transition: opacity 0.4s, transform 0.4s;
}

/* màu theo loại */
.toast.success { background: #28a745; }   /* xanh lá */
.toast.error   { background: #dc3545; }   /* đỏ */
.toast.info    { background: #17a2b8; }   /* xanh cyan */
.toast.warning { background: #ffc107; color: #000; } /* vàng */

/* hiệu ứng vào */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gd-dropzone {
  border: 2px dashed #007bff;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 10px;
  text-align: center;
  color: #555;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.gd-dropzone:hover {
  background: #e9f5ff;
  border-color: #0056b3;
}

.gd-dropzone.dragover {
  background: #d0ebff;
  border-color: #007bff;
}

.gd-dropzone-icon {
  font-size: 24px;      /* nhỏ gọn hơn */
  color: #ff6600;       /* cam */
  margin-bottom: 8px;
}

.gd-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cv-link i {
  font-size: 20px;     /* nhỏ gọn */
  color: #007bff;      /* xanh hiện đại */
  transition: color 0.3s;
}

.cv-link i:hover {
  color: #ff6600;      /* đổi sang cam khi hover */
}


.btn-update {
  position: fixed;
  bottom: 12px;
  right: 15px;
  z-index: 5000;

  background: #007bff;
  color: #fff;
  font-size: 14px;         /* chữ nhỏ hơn */
  font-weight: 500;
  padding: 8px 14px;       /* thu gọn nút */
  border: none;
  border-radius: 6px;
  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-update:hover {
  background: #0056b3;
}

.btn-update:active {
  transform: scale(0.97);
}

/* Các ô trong dòng được hover: highlight nền */
tr.row-highlight th,
tr.row-highlight td {
  background: #fff8dc !important;
}

/* Nhưng loại trừ Thứ và Buổi: chỉ đổi chữ */
tr.row-highlight th.col-thu,
tr.row-highlight th.col-buoi {
  background-color: unset !important; /* giữ màu gốc */
}

.col-thu.hover,.col-thu.hover .ngay-duong, .col-buoi.hover {
 
  color: #f6ff00 !important;                  /* đổi màu chữ */
  font-weight: bold;
  text-shadow: 0 0 3px #000000;    /* viền sáng nhẹ */
}

.col-thu.hover .ngay-am{
 
  color: #000000 !important;                 /* đổi màu chữ */  
  text-shadow: none;    /* viền sáng nhẹ */
}

/* ===== NGÀY ÂM GIAI ĐOẠN TẾT ===== */
.ngay-am {
  color: #535353;        /* đỏ trầm */
  font-weight: 700;
  font-style: italic;
}
.am-tet {
  color: #c62828;        /* đỏ trầm */
  font-weight: 700;
  font-size:14px;
}


#this-week{
	position:absolute;
	top:4px;
	left:10px;
	color:red;
	font-size:14px;
	white-space:nowrap;
	line-height:1;
}

#baochi{
	margin-left:10px;
	width:26%;
	height:auto;
	float:left;
	line-height:28px;
}

#baochi .title{
	height:40px;
	background:blue;
	color:#fff;
	text-align:center;
	font-size:18px;
	font-weight:bold;
	line-height:36px;
}

#baochi .title p{
	margin:0;
}

#baochi .content{
	padding:10px;
	background-color:#fff;
	font-size:16px;
}	

#baochi .content p{
	line-height:10px !important;
	background-color:#fff;
	font-size:16px;
	margin:0;
}

#baochi	.content ul li{
	float:left;
	width:100% !important;
	max-width:unset !important;
	height:90px;	   
}
	
#baochi	.content ul li a{
	font-size:15px;
	     
}

#fileList {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 cột bằng nhau */
  gap: 1px; /* khoảng cách giữa các ô */
}
#fileList .file-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  overflow: hidden;
}
#fileList .file-item a {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}

.btn_option_fixed {
  position: fixed;
  bottom: 0px;   /* cách mép dưới */
  right: 100px;    /* cách mép phải */
  z-index: 1000;  /* nổi lên trên */
}

.btn_option_fixed a {
  margin: 0 5px;
}

.tooltip {
  position: absolute;
  z-index: 1080;
  display: block;
  font-family: sans-serif;
  font-size: .875rem;
  padding: .25rem .5rem;
  color: #fff;
  background-color: rgba(0,0,0,.8);
  border-radius: .25rem;
}

.btn-qr {
    min-width: 30px;     /* chiều rộng cố định */
    height: 25px;        /* chiều cao */
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Nút khi tạo QR */
.btn-qr.create {
    background-color: #28a745; /* xanh lá */
    color: #fff;
}

/* Hover khi tạo QR */
.btn-qr.create:hover {
    background-color: #218838;
}

/* Nút khi đã có QR */
.btn-qr.done {
    background-color: #6c757d; /* xám */
    color: #fff;
    cursor: not-allowed;
}
/* FIX DROPDOWN BOOTSTRAP BỊ CSS ADMIN PHÁ */
.dropdown-menu {
	display: none;
}

.dropdown-menu.show {
	display: block;
}

/* ép menu xổ dọc */
.dropdown-menu > li {
	display: block !important;
}

/* table admin hay cắt dropdown */
td, th {
	overflow: visible !important;
}
.menu-toggle {
	border: 1px solid #ccc;
	background: #fff;
	padding: 2px 6px;
	cursor: pointer;
}

/* MENU */
.menu-dropdown {
	display: none;        /* KHÔNG !important */
	position: fixed;
	min-width: 220px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0,0,0,.2);
	border: 1px solid #ddd;
	z-index: 999999;
	padding: 6px 0;
  color:#222 !important;
  text-align: left !important;
}


/* ITEM */
.menu-item {
	padding: 8px 14px;
	cursor: pointer;
	white-space: nowrap;
  text-align: left !important;
}

.menu-item:hover {
	background: #f3f3f3;
}

.menu-item.disabled {
	color: #aaa;
	cursor: default;
}

.menu-item.danger {
	color: #e53935;
}

.menu-item.no-hover:hover {
	background: none;
	cursor: default;
}

/* DIVIDER */
.menu-divider {
	height: 1px;
	background: #e0e0e0;
	margin: 6px 0;
}
/* CHECKBOX KHÔNG BỊ ĐÈ */
.menu-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1.4;
	font-size: 14px;
}

/* FIX CHECKBOX BỊ POSITION ABSOLUTE */
.menu-dropdown input[type="checkbox"] {
	position: static !important;
	margin: 0;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}


/* HOÃN - MÀU CAM */
.menu-item.warning,
.menu-checkbox.warning span {
	color: #f57c00 !important;
	font-weight: 500;
}

.menu-item.warning:hover {
	background: #fff3e0;
}

/* XÓA ĐỎ ĐẬM HƠN */
.menu-item.danger {
	color: #d32f2f;
	font-weight: 500;
}

.menu-item.danger:hover {
	background: #fdecea;
}




.d-none { display:none; }

/* Cột có thể mở modal gợi ý */
.suggestion-item {
	background: rgba(0, 0, 0, 0.2);
	width: 100px !important;
	position: relative;
	cursor: pointer;
	color: #43ff5a; /* chữ cam nổi bật */
	font-weight: bold;
	text-align: center;
	transition: background-color 0.2s ease;
}

/* Hiệu ứng hover nhẹ */
.suggestion-item:hover {
	background-color: rgba(255, 255, 255, 0.25);
}

/* Icon bút chỉnh sửa */
.suggestion-item .edit-icon {
	position: absolute;
	right: 6px;
	top: 8px;
	font-size: 14px;
	color: #ffd966; /* vàng sáng */
	opacity: 0.9;
	pointer-events: none; /* tránh click nhầm vào icon */
}

/* Hiệu ứng icon khi hover */
.suggestion-item:hover .edit-icon {
	opacity: 1;
	transform: scale(1.1);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.hoan p::before {
  content: " HOÃN";
  display: inline-block;
  margin-left: 0px;
  padding: 2px 5px 0px 5px;
  border: 1px solid red;
  color: red;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  background: #fff0f0;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}
.hoan::before {
  animation: blink 1.5s infinite;
}

.moi p::before {
  content: " MỚI";
  display: inline-block;
  margin-left: 0px;
  padding: 2px 5px 0px 5px ;
  border: 1px solid #0a8f1f;
  color: #0a8f1f;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  background: #eaffea;
  animation: moiBlink 2s infinite;
}

.khan p::before {
  content: " KHẨN";
  display: inline-block;
  margin-left: 0px;
  padding: 1px 6px;
  border: 1px solid hsl(44, 100%, 50%);
  color: #ffcc00;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  background: #ffe5e5;
  
}

@keyframes khanBlink {
  50% { opacity: 0.2; }
}

.noidung-wrap {
    position: relative;
    width: 100%;
}

.noidung.hoan_admin .noidung-wrap::after {
    content: "HOÃN";
    position: absolute;
    bottom: 6px;
    right: 10px;
    padding: 2px 6px;
    border: 1px solid red;
    color: red;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    background: #fff;

    animation: blink 1.5s infinite;
}

.noidung.hoan_admin textarea {
    color: red !important;
}

li.noidung.hoan-flash {
  background-color: #fff8e1; /* vàng rất nhẹ */
  transition: background-color 1.5s ease;
}

.moi p::before {
  content: " MỚI";
  display: inline-block;
  margin-left: 0px;
  padding: 2px 5px 0px 5px ;
  border: 1px solid #0a8f1f;
  color: #0a8f1f;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  background: #eaffea;
  animation: moiBlink 2s infinite;
}

.khan p::before {
  content: "";
  display: inline-block;
  margin-left: 0px;
  padding: 1px 6px;
  border: 1px solid #d6b85a;        /* vàng nâu nhạt */
  color: #8a6d3b;                   /* nâu xám dịu */
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  background: #ffe5e5;
  
}

@keyframes khanBlink {
  50% { opacity: 0.2; }
}


/* Tăng kích thước checkbox */
.checkbox-tooltip input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle;  /* 👈 CHỦ ĐỘNG CĂN GIỮA */
}

/* Khu vực bao bọc checkbox + tooltip */
.checkbox-tooltip {
    position: relative;
    display: inline-flex;
    align-items:center;
}

/* Tooltip ẩn mặc định */
.checkbox-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -40px;   /* vị trí trên checkbox */
    left: 50%;
    transform: translateX(-50%);
    background: #ff3b3b; /* đỏ */
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    z-index: 999;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.3);
}

/* Tooltip mũi nhọn */
.checkbox-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ff3b3b transparent transparent transparent;
}

/* Hover: hiện tooltip */
.checkbox-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.mau-xanh {
    color: blue !important;
}

.field-wrap { position: relative; }

/* dot chung */
.flag-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    cursor: pointer;
}

/* màu */
.flag-dot.changed { background: #ff9800; } /* cam */
.flag-dot.public  { background: #4caf50; } /* xanh */
.flag-dot.hidden  { background: #9e9e9e; } /* xám */

/* chữ */
.flag-changed { color: #ff9800 !important; font-weight: 600; }
.flag-public  { color: #2e7d32 !important; }
.flag-hidden  { color: #000000; }

.thoigian .flag-dot {
    top: 18px; /* khác với địa điểm */
    right:3px;
}


.public-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* chuông chung */
.update-bell {
    font-size: 13px;
    cursor: help;
}

.bell-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 0–2h */
.bell-new {
    color: #ffb300; /* vàng */
}

/* 2–6h */
.bell-old {
    color: #9e9e9e; /* xám */
}

/* tooltip */
.has-tooltip {
    position: relative;
}

.has-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.thoigian-public {
    white-space: nowrap;
}

.thoigian-public .time-box {

    display: inline-block;
}

.thoigian-public .time-text {
    font-weight: bold;
    font-size:17px;
}

 .time-text span {
    display: inline;
    line-height: 1;
  }

  .time-text .sep {
    margin: 0 -1px;
  }


.thoigian-public .update-bell {
    position: absolute;
    top: -8px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.update-bell svg {
    width: 14px;
    height: 14px;
}


.conflict-icon-inline {
    position: absolute;
    right: 6px;
    top: 6px;

    pointer-events: none; /* không cản click */
    color: #ff0000;
    font-size: 12px;
     cursor: help;
    pointer-events: auto;
    line-height: 1;
}

/* tooltip */
.conflict-icon-inline::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;

    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
    transition: all 0.15s ease;

    z-index: 9999;
}

/* hover hiện tooltip */
.conflict-icon-inline:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-conflict {
  background: #fee2e2;
  color: #b91c1c !important;  /* đỏ đậm vừa phải */
  font-weight: 600;
}

.has-session-conflict {
  background: #fef3c7;
  color: #92400e;
}

.conflict-icon {

  font-size: 14px;
  font-weight: bold;
}

.has-conflict .conflict-icon {
  color: #dc2626;
}

.has-session-conflict .conflict-icon {
  color: #d97706;
}

.conflict-times {
  font-size: 12px;
  opacity: 0.75;
  margin-left: 4px;
}


.login-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}
.login-input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 2px rgba(108,99,255,.15);
}
.login-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

/* ===== SEARCH RESULT WRAPPER ===== */
.calendar-search-wrapper {
  max-height: 260px;          /* 🔥 KHỐNG CHẾ CHIỀU CAO */
  overflow-y: auto;
  margin: 10px 0 12px;
  border: 1px solid #1e6bb8;
  border-radius: 6px;
  background: #f8fbff;
}

/* ===== TABLE ===== */
.calendar-search-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* ===== THEAD ===== */
.calendar-search-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #1e6bb8, #155a9c);
  color: #fff;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid #0f4c81;
  z-index: 2;
}

/* ===== TBODY ===== */
.calendar-search-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  background: #fff;
}

/* ===== ROW HOVER ===== */
.calendar-search-row {
  cursor: pointer;
}
.calendar-search-row:hover td {
  background: #e9f2ff;
}

/* ===== COLUMN WIDTH CONTROL ===== */
.calendar-search-table .col-date {
  width: 90px;     /* 🔥 ngày hẹp lại */
  white-space: nowrap;
  text-align: center;
}

.calendar-search-table .col-time {
  width: 70px;
  white-space: nowrap;
  text-align: center;
}

.calendar-search-table .col-host {
  width: 140px;
  white-space: nowrap;
}

/* ===== SCROLLBAR (optional, đẹp hơn) ===== */
.calendar-search-wrapper::-webkit-scrollbar {
  width: 8px;
}
.calendar-search-wrapper::-webkit-scrollbar-thumb {
  background: #b5cde8;
  border-radius: 4px;
}
.calendar-search-wrapper::-webkit-scrollbar-track {
  background: #eef4fb;
}

.calendar-search-wrapper {
  width: 100%;
}

.calendar-search-table {
  width: 100%;          /* 🔥 CÁI QUAN TRỌNG NHẤT */
  border-collapse: collapse;
  table-layout: auto;   /* để browser tự giãn */
}

#calendar-search {
    margin-left: 10px;         /* 🔥 đẩy ô search sang phải */
    width: 260px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;

}

#calendar-search {
    padding-right: 28px; /* chừa chỗ cho nút x */
}

#clear-search-btn {
    position: absolute;
    right: 8px;          /* chỉnh cho sát input */
    top: 60%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 25px;
    color: #999;
    display: block;       /* mặc định ẩn */
    user-select: none;
}

#clear-search-btn:hover {
    color: #333;
}

.highlight-focus {
  outline: 3px solid #f4c430 !important;
  box-shadow: 0 0 0 2px rgba(244,196,48,0.6) !important;
  background-color: #fff3b0 !important;
  z-index: 999 !important;
}


@keyframes focusPulse {
  0%   { background-color: #fff6c9; }
  50%  { background-color: #ffe08a; }
  100% { background-color: #fff6c9; }
}

.dirty-row {
  outline: 2px dashed #ff5722;
  box-shadow: inset 0 0 0 9999px rgba(255, 87, 34, 0.08);
}

.row-highlight {
    background-color: #fff3b0 !important;
    
}

.copy-row label{
  width:150px;
}

 
.footer{
	width:100%;
	height:30px;
	position:fixed;
	bottom:0;
	left:0;
	right:0;
	clear: both;
	margin: 20px 0 0 0; 
	border-top: 1px dashed #f59814;  
	text-align: center;
	color:#fff;
	background-color:#f59814;
	padding:5px;
	background: rgba(242,242,242, .5);
	font-size:14px;
	z-index:1000;
}

