:root { --primary: #2C3E50; --accent: #1A73E8; --success: #137333; --error: #D93025; --input-bg: #F8F9FA; --border: #E5E7EB; }
* { box-sizing: border-box; font-family: 'Roboto', sans-serif; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent;}
body { padding: 10px 8px 80px 8px; background: #fff; color: #3C4043; } 
.container { max-width: 500px; margin: 0 auto; padding-bottom: 30px; }
.main-title { font-size: 1.2rem; font-weight: 500; text-align: center; color: var(--primary); margin-bottom: 24px; text-transform: uppercase; }

.form-group { margin-bottom: 16px; position: relative; }
.time-group { display: flex; gap: 12px; } .time-group .form-group { flex: 1; }
label { display: block; font-size: 14px; color: #5F6368; margin-bottom: 6px; font-weight: 500;}
.input-wrapper { position: relative; width: 100%; }

input, select { width: 100%; height: 44px; border-radius: 8px; border: 1px solid var(--border); background: var(--input-bg); padding: 0 12px; font-size: 16px; outline: none; color: #3C4043; transition: 0.2s;}
input[type="number"] { padding-right: 40px; }
input:focus, select:focus { border-color: var(--accent); }
input::placeholder { font-style: italic; font-size: 13px; color: #9aa0a6; }
select:invalid { color: #9aa0a6; font-style: italic; font-size: 13px; }
select option { color: #3C4043; font-style: normal; font-size: 16px; }

input.is-valid { border: 1.5px solid var(--success) !important; box-shadow: 0 0 0 3px rgba(19, 115, 51, 0.1); }
input.is-invalid { border: 1.5px solid var(--error) !important; box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1); }
.btn-del { position: absolute; right: 0; top: 0; height: 100%; width: 40px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #9aa0a6; cursor: pointer; }
.validation-msg { height: 18px; font-size: 13px; font-weight: 500; margin-top: 4px; }
.success-text { color: var(--success); } .error-text { color: var(--error); }

button, .btn { width: 100%; height: 44px; border-radius: 24px; background: var(--primary); color: #fff; border: none; font-weight: 500; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s;}
button:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }
#btnViewList { background-color: #E8F0FE !important; color: var(--accent) !important; border: 1px solid var(--accent) !important; margin-top: 16px; }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 8px 0; z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.nav-btn { background: none; border: none; flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #5F6368; border-radius: 0; height: auto;}
.nav-btn.active { color: var(--accent); }
.nav-btn .icon { font-size: 20px; margin-bottom: 4px; }

#toast { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 8px; color: #fff; transition: 0.3s; z-index: 9999; box-shadow: 0 4px 6px rgba(0,0,0,0.1);}
.spinner { display: none; width: 18px; height: 18px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 8px;}
.spinner-blue { border: 2px solid var(--accent); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.table-responsive { overflow: auto; max-height: 500px; border: 0.8px solid var(--border); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: center; white-space: nowrap; }
.data-table th { background: #F0F2F5; height: 48px; position: sticky; top: 0; padding: 0 6px; border-bottom: 0.8px solid var(--border); z-index: 10; text-transform: uppercase;}
.data-table td { height: 44px; padding: 0 6px; border-bottom: 0.8px solid var(--border); }
.status-tag { background: #E6F4EA; color: var(--success); padding: 4px 8px; border-radius: 4px; font-weight: bold; }

.grid-7 { width: 100%; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background-color: #fff; margin-bottom: 20px;}
.grid-header { display: flex; background: #F0F2F5; color: #3C4043; height: 44px; font-size: 12px; text-align: center; align-items: center; border-bottom: 1px solid var(--border); font-weight: bold;}
.grid-header div { width: 33.3%; }
.day-row { display: flex; align-items: center; height: 44px; border-bottom: 1px solid var(--border); border-left: 4px solid transparent; text-align: center; font-size: 13px; transition: 0.2s;}
.day-row.sunday .col-date { color: var(--error); font-weight: bold; }
.row-selected { background-color: #E8F0FE !important; border-left-color: var(--accent) !important; }
.col-date, .col-nv1, .col-nv2 { width: 33.3%; }
.badge { background: #F8F9FA; padding: 4px 12px; border-radius: 12px; border: 1px solid var(--border); font-weight: 500;}
.new-shift { width: 60px; height: 30px; border-radius: 4px; border: 1px solid var(--accent); padding: 0 4px; text-align: center; font-weight: bold; color: var(--accent);}
.empty-cell { color: #9aa0a6; font-style: italic; }

.monthly-container { margin-top: 16px; width: 100%; padding-bottom: 20px; }
#monthlyTable { width: 100%; border-collapse: collapse; font-size: 11px; color: #3C4043; font-weight: 700; }
#monthlyTable th, #monthlyTable td { border: 1px solid var(--border); padding: 6px 2px; text-align: center; white-space: nowrap; }
.sticky-header { position: sticky; top: 0; background: #F0F2F5 !important; color: #3C4043 !important; font-weight: bold; z-index: 10; }
.sticky-col { position: sticky; left: 0; background: #F0F2F5 !important; font-weight: bold; z-index: 5; border-right: 1.5px solid var(--border) !important; text-align: center !important; }

/* CHUẨN MÀU MỚI TẠI ĐÂY */
.row-goc { background-color: #F8F9FA !important; color: #5F6368 !important; font-weight: bold !important; } 
.team-label { color: #D93025 !important; font-weight: 900 !important; } 
.cell-changed { background-color: #E6F4EA !important; color: #137333 !important; font-weight: 400 !important; } 
.normal-weight { font-weight: 400 !important; }
