*{box-sizing:border-box;margin:0;padding:0}body{color:#333;background:#f4f6f9;font-family:Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,.button{color:#fff;cursor:pointer;background:#002b7f;border:1px solid #002b7f;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:10px 16px;font-weight:600;text-decoration:none;display:inline-flex}button:hover,.button:hover{background:#001f5c}button:disabled{opacity:.5;cursor:not-allowed}a{color:#039;text-decoration:none}a:hover{text-decoration:underline}h1{color:#002b7f;font-size:26px;font-weight:700}h2{font-size:22px}h3{font-size:16px}input,select,textarea{color:#333;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:100%;min-width:0;padding:10px 12px}input:focus,select:focus,textarea:focus{outline-offset:1px;outline:2px solid #93b3ed}label{flex-direction:column;gap:5px;font-size:13px;font-weight:600;display:flex}textarea{resize:vertical}.secondary{color:#475569;background:#fff;border-color:#cbd5e1}.secondary:hover{background:#f8fafc}.fine,.muted{color:#64748b;font-size:12px}.fine{margin-top:12px}.stack{flex-direction:column;gap:14px;display:flex}.notice{color:#73591b;background:#fff8df;border-radius:6px;margin:0 0 16px;padding:10px 14px;font-size:13px}.error{color:#721c24;background:#f8d7da;border:1px solid #f5c6cb}.success{color:#155724;background:#d4edda;border:1px solid #c3e6cb}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.login-wrapper{background:linear-gradient(135deg,#e2e8f0,#cbd5e1);justify-content:center;align-items:center;min-height:100vh;padding:40px 20px;display:flex}.login-container{text-align:center;background:#fff;border-radius:12px;width:100%;max-width:380px;padding:35px 30px;box-shadow:0 10px 25px #0000001f}.login-container h1{margin-bottom:22px}.login-container input{border-radius:8px;padding:12px;font-size:14px}.login-container button{border-radius:8px;width:100%;padding:12px;font-size:15px}.login-container form{gap:14px}.login-container form>a{text-align:right;font-size:13px}.login-container .fine{margin-top:20px;font-size:14px}.auth-intro{color:#666;margin-bottom:20px;font-size:14px}.legacy-layout{min-height:100vh}.sidebar{z-index:100;background:#001f5c;flex-direction:column;width:260px;height:100dvh;padding-bottom:20px;display:flex;position:fixed;top:0;left:0}.sidebar-menu-content{flex:1;overflow-y:auto}.sidebar-logo{color:#fff;align-items:center;gap:10px;margin:25px 0 15px;padding:0 20px;font-size:24px;display:flex}.sidebar-logo img{width:30px;height:30px}.nav-link{color:#cbd5e1;text-align:left;background:0 0;border:0;border-radius:8px;justify-content:flex-start;align-items:center;gap:12px;width:calc(100% - 30px);margin:2px 15px;padding:12px 15px;font-size:14px;font-weight:500;display:flex}.nav-link:hover{color:#fff;background:#ffffff14}.nav-link.active{color:#002b7f;background:#fff;font-weight:600}.calendar-toggle span:first-of-type{flex:1}.calendar-dropdown .nav-link{padding:10px 15px 10px 45px;font-size:13px}.calendar-dropdown .room-active{color:#fff;background:#ffffff16}.sidebar-profile{background:#ffffff0f;border-radius:12px;align-items:center;gap:12px;margin:15px 15px 10px;padding:12px;display:flex}.profile-avatar{color:#fff;background:#002b7f;border:2px solid #fff3;border-radius:50%;flex-shrink:0;place-items:center;width:38px;height:38px;font-size:16px;font-weight:700;display:grid}.profile-info{flex-direction:column;gap:4px;min-width:0;display:flex}.profile-name{color:#fff;overflow-wrap:anywhere;font-weight:600}.profile-role{text-transform:uppercase;color:#1e40af;background:#dbeafe;border-radius:4px;width:max-content;padding:2px 6px;font-size:10px;font-weight:700}.role-admin,.role-system-admin{color:#991b1b;background:#fee2e2}.role-pic{color:#166534;background:#dcfce7}.logout{padding:0 15px}.logout button{color:#ff9494;background:#ffffff19;border:0;width:100%;padding:10px}.main{flex-direction:column;gap:0;min-height:100vh;margin-left:260px;padding:25px;display:flex}.topbar{justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;display:flex}.branch-selector{min-width:150px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:20px;overflow:hidden;box-shadow:0 4px 6px #0000000d}.calendar-legend{background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-wrap:wrap;align-items:center;gap:20px;margin-bottom:25px;padding:12px 20px;display:flex;box-shadow:0 2px 4px #00000005}.legend-item{color:#475569;align-items:center;gap:8px;font-weight:500;display:flex}.legend-box{border-radius:4px;width:24px;height:14px;display:inline-block}.legend-box.holiday{background:#fee2e2;border:1px solid #f87171}.legend-box.booked{background:#002b7f;border:1px solid #001f5c}.btn-create{margin-left:auto;padding:8px 16px}.calendar-card{min-height:0;padding:20px;overflow-x:auto}.fc{--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1e2b37;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#1a252f;--fc-today-bg-color:#fff9df;--fc-border-color:#ddd;min-height:0}.fc .fc-toolbar-title{color:#333;font-size:24px;font-weight:700}.fc a{color:#333}.fc .fc-event{cursor:pointer}.fc .fc-daygrid-day-number{padding:4px 7px}.fc .fc-col-header-cell-cushion{font-size:14px}.fc .fc-button{font-size:14px;font-weight:400}.filter-toggle-container{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:20px;display:flex}.filter-toggle-container>input{width:240px;padding:8px 12px}.dropdown-filter{position:relative}.filter-drop-btn{background:#6b7280;border-color:#6b7280;padding:8px 15px}.dropdown-content{z-index:20;background:#fff;border:1px solid #e5e7eb;border-radius:6px;gap:14px;min-width:240px;padding:16px;display:grid;position:absolute;top:110%;left:0;box-shadow:0 8px 16px #0000001a}.checkbox{flex-direction:row;align-items:center;gap:8px;display:flex}.checkbox input{width:auto}.date-filter{align-items:end;gap:8px;display:flex}.date-filter input{padding:7px}.date-filter button{padding:8px}.report-btn{color:#fff;background:#10b981;border-radius:6px;margin-left:auto;padding:10px 16px;font-weight:600}.report-btn:hover{background:#059669;text-decoration:none}.table-scroll{overflow:auto}.booking-table{border-collapse:collapse;width:100%;font-size:13px}.booking-table th{color:#fff;text-align:left;white-space:nowrap;background:#002b7f;padding:14px 16px;font-weight:600}.booking-table td{border-bottom:1px solid #e2e8f0;padding:14px 16px}.booking-table tr:nth-child(2n){background:#f8fafc}.booking-table tr:hover{background:#eff6ff}.nowrap{white-space:nowrap}.small{padding:5px 10px;font-size:12px}.status-badge{border-radius:20px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.status-badge.booked{color:#1e40af;background:#dbeafe}.status-badge.cancelled{color:#991b1b;background:#fee2e2}.empty{text-align:center;color:#64748b;padding:40px!important}.pagination{justify-content:flex-end;align-items:center;gap:8px;padding:15px;font-size:12px;display:flex}.pagination span{color:#64748b;margin-right:auto}.pagination button{padding:6px 12px;font-size:12px}.page-footer{color:#64748b;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:auto;padding:25px 0 0;font-size:12px;display:flex}.dashboard-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin:20px 0;display:grid}.card-box{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #002b7f;border-radius:10px;padding:25px;box-shadow:0 4px 6px #0000000d}.card-box p{color:#64748b}.card-box h2{color:#002b7f;margin-top:10px;font-size:36px}.section-title{color:#475569}.modal-content{color:#333;background:#fff;border:0;border-radius:8px;width:calc(100% - 40px);max-width:540px;max-height:85dvh;margin:auto;padding:25px;overflow-y:auto;box-shadow:0 10px 25px #00000026}.modal-wide{max-width:1000px}.modal-content::backdrop{background:#0008}.modal-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px;display:flex}.modal-heading h2{color:#333;font-size:22px}.icon-button{color:#64748b;background:0 0;border:0;padding:0 6px;font-size:25px}.icon-button:hover{background:#f1f5f9}.mode-selector-row{gap:10px;margin-bottom:15px;display:flex}.mode-selector-row button{flex:1}.booking-split-container{grid-template-columns:1fr 1fr;align-items:start;gap:25px;display:grid}.booking-split-container fieldset{border:1px solid #e2e8f0;border-radius:6px;gap:12px;padding:12px;display:grid}.booking-split-container legend{color:#64748b;padding:0 6px;font-size:12px}.booking-split-container label{font-size:13px}.two-columns{grid-template-columns:1fr 1fr;gap:12px;display:grid}.full-day{color:#2563eb;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:8px;font-size:12px!important}.schedule-preview-side{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:20px;position:sticky;top:0}.schedule-preview-side h3{color:#002b7f;margin-bottom:15px;font-size:16px}.timeline-date-header{color:#1e40af;background:#eff6ff;border-radius:6px;padding:10px;font-size:13px}.timeline{gap:8px;margin:15px 0;display:grid}.timeline-slot{color:#fff;background:#002b7f;border-radius:4px;padding:9px 12px;font-size:13px}.timeline-slot span{opacity:.8;font-size:11px;display:block}.modal-actions{justify-content:flex-end;gap:10px;margin-top:16px;display:flex}.booking-details{gap:12px;font-size:14px;display:grid}.cancel{border-top:1px solid #e2e8f0;margin-top:20px;padding-top:15px}.cancel summary{color:#dc2626;cursor:pointer;font-weight:600}.cancel form{margin-top:12px}.danger{background:#dc2626;border-color:#dc2626}.quiet{color:#64748b;background:0 0;border:0;padding:4px}.mobile-menu-toggle,.sidebar-close,.sidebar-overlay{display:none}.setup{max-width:760px;margin:80px auto;padding:25px}.panel{background:#fff;border-radius:10px;padding:25px}.setup h1{margin-bottom:15px}:focus-visible{outline-offset:2px;outline:2px solid #3b82f6}@media (max-width:1000px){.main{padding:20px}.booking-table th,.booking-table td{padding:12px}.date-filter{flex-wrap:wrap}.report-btn{margin-left:0}}@media (max-width:768px){.sidebar{transition:left .25s;left:-270px}.sidebar.open{left:0}.main{min-height:100dvh;margin-left:0;padding:75px 15px 25px}.mobile-menu-toggle{z-index:80;padding:8px 12px;display:block;position:fixed;top:15px;left:15px}.sidebar-close{background:0 0;border:0;padding:4px;font-size:22px;display:block;position:absolute;top:5px;right:8px}.sidebar-overlay{z-index:90;background:#0006;border:0;border-radius:0;display:block;position:fixed;inset:0}.topbar{align-items:start}.topbar h1{font-size:24px}.branch-selector{min-width:110px;max-width:150px}.calendar-card{min-height:0;padding:15px}.fc{min-width:600px;min-height:0}.fc .fc-toolbar-title{font-size:18px}.calendar-legend{gap:15px;padding:12px 15px}.btn-create{width:100%;margin-left:0}.booking-split-container{grid-template-columns:1fr}.schedule-preview-side{position:static}.modal-content{max-height:90dvh;padding:20px}.filter-toggle-container>input{width:100%}.dropdown-content{max-width:calc(100vw - 45px)}.pagination{flex-wrap:wrap}.page-footer{font-size:11px}.login-wrapper{padding:25px 20px}.login-container{padding:35px 30px}.two-columns{gap:10px}.sidebar:not(.open){visibility:hidden}.sidebar.open{visibility:visible}}.calendar-card{flex:none;height:auto;min-height:0;padding-bottom:20px}.calendar-card .fc{height:auto;min-height:0}.legacy-booking-toolbar{margin-bottom:20px}.legacy-booking-toolbar>.report-btn{border:1px solid #64748b;margin-left:auto}.legacy-filter-panel{gap:16px;width:315px;max-height:calc(100dvh - 150px);padding:15px;overflow-y:auto}.legacy-filter-panel .filter-mine{color:#1e3a8a;border-bottom:1px solid #eee;padding:5px 0 16px}.legacy-filter-group{flex-direction:column;gap:9px;display:flex}.legacy-filter-group>strong,.legacy-filter-group label>strong{color:#1e3a8a;border-bottom:1px solid #e2e8f0;padding-bottom:5px;font-size:13px;display:block}.legacy-filter-group label{font-weight:400}.legacy-filter-group select{border-radius:3px;padding:2px;font-size:13px}.legacy-filter-panel input[type=checkbox],.legacy-filter-panel input[type=radio]{accent-color:#1683ff;width:16px;height:16px}.legacy-filter-panel .filter-mine strong{font-size:13px}.period-options{flex-wrap:wrap;gap:8px;display:flex}.period-options label{font-size:12px}.apply-filters-btn{background:#1e3a8a;border-color:#1e3a8a;border-radius:4px;width:100%;margin-top:16px;padding:8px}.booking-list{width:100%}.booking-cards{gap:10px;display:grid}.booking-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.booking-card-content{text-align:left;color:#475569;cursor:pointer;background:#fff;border:0;border-radius:0;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 130px;align-items:center;gap:25px;width:100%;min-height:106px;padding:15px 20px;font-weight:400;display:grid}.booking-card-content:hover{background:#fafcff}.booking-card-content h3{color:#1e293b;margin-bottom:6px;font-size:20px}.booking-left p,.booking-middle p{overflow-wrap:anywhere;margin:4px 0;font-size:14px}.booking-right{justify-content:center;align-items:center;display:flex}.booking-card .status-badge{text-transform:uppercase;letter-spacing:1px;padding:5px 16px;font-size:12px;font-weight:700}.booking-card .status-badge.booked{color:#00a63e;background:#dcfce7}.booking-card .status-badge.cancelled{color:#64748b;background:#f1f5f9}.booking-cards+.pagination{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-top:12px}.booking-list+.page-footer{padding-top:25px}@media (max-width:768px){.legacy-filter-panel{width:min(315px,100vw - 40px);max-height:65dvh}.booking-card-content{grid-template-columns:1fr;gap:10px;padding:16px}.booking-right{justify-content:flex-start}.legacy-booking-toolbar .dropdown-filter{width:auto}.legacy-booking-toolbar>.report-btn{margin-left:auto}.calendar-card .fc{min-height:0}.legacy-booking-toolbar{align-items:center}.legacy-booking-toolbar>input{width:100%}}.filter-drop-btn:hover{background:#4b5563;border-color:#4b5563}.navigation-status{opacity:.85;margin-left:8px;font-size:12px;font-weight:400;display:inline-block}.fc .fc-daygrid-dot-event{white-space:normal;align-items:flex-start}.fc .fc-daygrid-dot-event .fc-event-time{white-space:nowrap;flex-shrink:0}.fc .fc-daygrid-event .fc-event-title{white-space:normal;overflow-wrap:anywhere;min-width:0}.sidebar a.nav-link,.sidebar a.nav-link:hover,.sidebar a.nav-link:focus,.sidebar a.nav-link:active{text-decoration:none}.filter-drop-btn,.report-btn{justify-content:center;align-items:center;gap:7px;display:inline-flex}.calendar-toggle>svg:last-child{margin-left:auto}.pic-access-table-scroll{border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto}.pic-access-table{border-collapse:collapse;text-align:left;width:100%}.pic-access-table th,.pic-access-table td{border-bottom:1px solid #e2e8f0;padding:15px 20px}.pic-access-table thead{color:#fff;background:#002b7f}.pic-access-table th:not(:first-child),.pic-access-table td{text-align:center}.pic-access-table tbody th{min-width:180px;font-size:15px}.pic-access-table tbody tr:last-child>*{border-bottom:0}.pic-access-table tbody tr:hover{background:#f8fafc}.pic-access-table input[type=checkbox]{accent-color:#002b7f;cursor:pointer;width:18px;height:18px;margin:0}.pic-access-table input:disabled{cursor:default}.users-toolbar{justify-content:flex-end;margin-bottom:24px;display:flex}.users-table-scroll{border:1px solid #cbd5e1;border-radius:8px;max-width:100%;max-height:70dvh;overflow:auto}.users-table{table-layout:fixed;border-collapse:collapse;text-align:left;width:100%;min-width:44rem;font-size:14px}.users-table thead th:first-child{width:9rem}.users-table thead th:nth-child(2){width:13%}.users-table thead th:nth-child(3){width:18%}.users-table thead th:nth-child(4),.users-table thead th:nth-child(5){width:11%}.users-table :is(th,td){overflow-wrap:anywhere}.users-table td:first-child{font-family:ui-monospace,monospace;font-size:12px;line-height:1.45}.user-update{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.user-update select{flex:9rem;width:auto;max-width:100%}.user-update button{max-width:100%}.user-row-buttons{flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;display:inline-flex}.users-table th,.users-table td{vertical-align:middle;border:1px solid #cbd5e1;padding:12px}.users-table thead th{color:#475569;z-index:1;background:#f8fafc;font-weight:600;position:sticky;top:0}.user-role{border-radius:4px;padding:6px 10px;font-size:12px;font-weight:700;display:inline-block}.user-role-admin,.user-role-system_admin{color:#991b1b;background:#fee2e2}.user-role-requester{color:#1e40af;background:#dbeafe}.user-role-pic{color:#333}.users-table .notice{margin-top:8px}.directory-scroll{overflow-x:auto}.directory-table{border-collapse:collapse;text-align:left;width:100%}.directory-table th,.directory-table td{vertical-align:middle;border:1px solid #dbe3ef;padding:18px 25px}.directory-table thead th{color:#475569;background:#f8fafc;font-weight:600}.directory-id{overflow-wrap:anywhere;max-width:200px;font-size:13px}.directory-branches{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 4px 6px #0000000d}.directory-branches>h2{color:#fff;background:#002b7f;padding:18px 25px;font-size:16px}.directory-branches .directory-table th,.directory-branches .directory-table td{border-left:0;border-right:0}.directory-badge{color:#334155;white-space:nowrap;background:#e2e8f0;border-radius:20px;padding:5px 12px;font-size:13px;display:inline-block}.holiday-card{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 4px 6px #0000000d}.holiday-card .directory-table th,.holiday-card .directory-table td{border-left:0;border-right:0}.holiday-card small{color:#64748b}
.login-page{flex-direction:column;min-height:100vh;display:flex}.login-page .login-wrapper{flex:1;min-height:0}.login-page .page-footer{padding:16px 24px 20px}.footer-meta{align-items:center;gap:14px;display:flex}button.release-link{color:#039;background:0 0;border:0;border-radius:0;padding:0;font-weight:600;text-decoration:underline}button.release-link:hover{color:#001f5c;background:0 0}.release-list{gap:18px;display:grid}.release-list article{border-top:1px solid #e2e8f0;padding-top:14px}.release-list article:first-child{border-top:0;padding-top:0}.release-list h3{color:#002b7f;margin-bottom:6px}.release-list p{color:#475569;font-size:13px}.release-list ul{color:#334155;gap:6px;margin:8px 0 0 18px;display:grid}.loading-overlay{z-index:400;background:#0f172a73;place-items:center;display:grid;position:fixed;inset:0}.loading-card{color:#002b7f;background:#fff;border-radius:12px;flex-direction:column;align-items:center;gap:12px;min-width:180px;padding:22px 28px;font-weight:600;display:flex;box-shadow:0 10px 25px #00000026}.spinner{border:3px solid #dbe4f5;border-top-color:#002b7f;border-radius:50%;width:36px;height:36px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}
