﻿@charset "UTF-8";
/******* RESPONSIVE ********/
/****Màn hình máy tính thông thường****/
/****Màn hình desktop loại bé****/
/**** Màn hình ipad hiển thị theo chiều ngang (Landscape) ****/
/****Màn hình ipad loại bé hiển thị theo chiều ngang (Landscape)****/
/****Màn hình ipad hiển thị theo chiều dọc (Portrait)****/
/****Màn hình ipad loại bé hiển thị theo chiều dọc (Portrait)****/
/****Màn hình điện thoại hiển thị theo chiều ngang (Landscape)****/
/****Màn hình điện thoại Iphone Plus****/
/****Màn hình điện thoại Iphone****/
/****Màn hình điện thoại loại bé****/
@import url("../../fonts/roboto/font-roboto.css");
@font-face {
  font-family: "Manrope";
  src: url("../../fonts/Manrope/Manrope-VariableFont_wght.ttf") format("truetype");
}
ul, li {
  list-style: none;
}

body {
  color: #0a2540;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}

p {
  margin: 0 auto;
}

a:hover {
  text-decoration: none;
}

.UI-DROP {
  position: relative;
}
.UI-DROP .ui-tieude::after {
  background: #fff;
  border-radius: 3px;
  position: absolute;
  right: 5px;
  content: "";
  height: 22px;
  width: 22px;
  top: 31px;
}
.UI-DROP label, .UI-DROP .ui-tieude {
  min-width: 80px;
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  max-width: 50%;
  width: max-content;
  color: #0f4871;
}
.UI-DROP label:after, .UI-DROP .ui-tieude:after {
  all: unset;
}
.UI-DROP::after {
  background: #ecf1f5;
  border-radius: 3px;
  position: absolute;
  right: 15px;
  content: "";
  height: 17px;
  width: 16px;
  z-index: 1;
  top: 14px;
}
.UI-DROP.flex-column::after {
  top: 28px;
}
.UI-DROP .UI-DDL {
  border-radius: 5px;
  box-shadow: 1px 2px 5px -2px #ddd inset;
  display: flex;
  height: 32px;
  align-items: center;
  border: 1px solid #ccc;
  padding: 5px 7px;
  position: relative;
}
.UI-DROP .UI-DDL::after {
  position: absolute;
  right: 12px;
  z-index: 2;
}
.UI-DROP .UI-DDL i {
  border-left: 1px solid #ddd;
  padding: 6px 11px;
  height: 31.99px;
}
.UI-DROP .dropdown-menu {
  left: 33%;
  max-height: 300px;
  overflow: auto;
}
.UI-DROP .dropdown-menu li {
  padding: 5px 12px;
  border-bottom: 1px dashed #ccc;
  cursor: pointer;
}
.UI-DROP .dropdown-menu li:hover {
  background: #ecf1f5;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: #16233f;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ==========================================================
   SIDEBAR
   ========================================================== */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  border-right: 1px solid #e6e9f2;
  font-family: Roboto;
  background-color: #fff;
  /* --- brand / logo block --- */
  /* --- nav --- */
}
.app-sidebar.no-transition {
  transition: none !important;
}
.app-sidebar .sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 76px;
  overflow: hidden;
}
.app-sidebar .sidebar-brand .brand-emblem {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.app-sidebar .sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-sidebar .sidebar-brand .brand-text .brand-line1, .app-sidebar .sidebar-brand .brand-text .brand-line2 {
  font-size: 13px;
  font-weight: 700;
  color: #373b89;
  letter-spacing: 0.3px;
  text-align: center;
}
.app-sidebar .sidebar-nav {
  flex: 1 1 auto;
  padding: 14px 12px;
}
.app-sidebar .sidebar-nav .nav-item + .nav-item {
  margin-top: 4px;
}
.app-sidebar .nav-item {
  position: relative;
}
.app-sidebar .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 6px;
  color: #373b89;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  text-wrap: nowrap;
}
.app-sidebar .nav-link i {
  width: 20px;
  font-size: 16px;
  text-align: center;
  flex: 0 0 auto;
  color: inherit;
}
.app-sidebar .nav-link:hover {
  background: #0047fc;
  color: #fff;
}
.app-sidebar .nav-link.active {
  background: #0047fc;
  color: #fff;
  font-weight: 600;
}
.app-sidebar .nav-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  padding: 7px 11px;
  background: #16233f;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9999;
}
.app-sidebar .nav-link[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* --- footer / collapse button --- */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-footer .collapse-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #373b89;
  padding: 14px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-footer .collapse-btn i {
  width: 16px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   COLLAPSED STATE (desktop)
   ========================================================== */
.app-sidebar.is-collapsed {
  width: 76px;
}
.app-sidebar.is-collapsed .brand-text, .app-sidebar.is-collapsed .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}
.app-sidebar.is-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 0;
}
.app-sidebar.is-collapsed .sidebar-nav .nav-link {
  justify-content: center;
  padding-inline: 0;
}
.app-sidebar.is-collapsed .sidebar-nav .nav-link.active::before {
  left: 0;
}
.app-sidebar.is-collapsed .collapse-btn {
  justify-content: center;
  padding-inline: 0;
  gap: 0;
}
.app-sidebar.is-collapsed .collapse-btn i {
  transform: rotate(180deg);
}
.app-sidebar.is-collapsed .nav-link {
  gap: 8px;
}

/* tooltip-like label on hover when collapsed (desktop only) */
@media (min-width: 992px) {
  .app-sidebar.is-collapsed .sidebar-nav .nav-link {
    position: relative;
  }
  .app-sidebar.is-collapsed .sidebar-nav .nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #0a1330;
    color: #fff;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(16, 29, 69, 0.08);
    z-index: 1040;
    pointer-events: none;
  }
}
/* ==========================================================
   MAIN WRAPPER
   ========================================================== */
.app-main {
  margin-left: 264px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar.is-collapsed ~ .app-main {
  margin-left: 76px;
}

/* ==========================================================
   HEADER
   ========================================================== */
.app-header {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e6e9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.app-header .header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.app-header .header-left .burger-btn {
  border: 1px solid #e6e9f2;
  background: #f4f6fb;
  color: #1e3a6b;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: 0 0 auto;
  cursor: pointer;
}
.app-header .header-left .header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: rgb(15, 72, 113);
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.app-header .header-right .btn-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #55617a;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-header .header-right .btn-icon:hover {
  background: #f4f6fb;
  color: #1e3a6b;
}
.app-header .header-right .btn-icon i {
  font-size: 22px;
}
.app-header .header-right .btn-icon .label-icon {
  font-size: 12px;
  font-weight: 500;
}
.app-header .header-right .btn-icon .badge-dot {
  position: absolute;
  top: 2px;
  right: 22px;
  min-width: 18px;
  height: 18px;
  padding: 0 2px;
  border-radius: 999px;
  background: #c8102e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  border: 1px solid #ffffff;
}
.app-header .header-right .user-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 6px 11px 6px 6px;
  border-radius: 6px;
  cursor: pointer;
  color: #1e3a6b;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-header .header-right .user-dropdown {
  position: relative;
}
.app-header .header-right .user-dropdown .user-btn:hover {
  background: #f4f6fb;
}
.app-header .header-right .user-dropdown .user-btn::after {
  margin-left: 6px;
  color: #8b93a7;
}
.app-header .header-right .user-dropdown .dnav.user {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
}
.app-header .header-right .user-dropdown.active .dnav.user {
  display: block;
}
.app-header .header-right .user-dropdown .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, #1c7a4b, #0e5230);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: 0 0 auto;
}
.app-header .header-right .user-dropdown .user-name {
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================
   CONTENT AREA
   ========================================================== */
.app-content {
  flex: 1 1 auto;
  padding: 12px 12px 40px;
}

/* ==========================================================
   MOBILE / RESPONSIVE
   ========================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 48, 0.45);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.dnav li a {
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 264px;
    box-shadow: 0 8px 24px rgba(16, 29, 69, 0.08);
  }
  .app-sidebar.is-open {
    transform: translateX(0);
  }
  .app-sidebar.is-collapsed {
    width: 264px;
  }
  .app-sidebar.is-collapsed .brand-text,
  .app-sidebar.is-collapsed .nav-text {
    opacity: 1;
    width: auto;
  }
  .app-sidebar.is-collapsed .sidebar-brand,
  .app-sidebar.is-collapsed .sidebar-nav .nav-link,
  .app-sidebar.is-collapsed .collapse-btn {
    justify-content: flex-start;
    padding-inline: revert;
    padding-left: 15px;
  }
  .app-main,
  .app-sidebar.is-collapsed ~ .app-main {
    margin-left: 0;
  }
  .app-header {
    padding: 0 16px;
  }
  .header-title {
    font-size: 13px;
  }
  .header-title span {
    font-size: 13px;
  }
  .app-content {
    padding: 24px 16px 32px;
  }
  .sidebar-brand {
    margin-top: 75px;
  }
}
@media (max-width: 575.98px) {
  .header-title br {
    display: none;
  }
  .header-title {
    font-size: 13px;
  }
  header #header-titleh1 {
    display: none !important;
  }
  .header-title span {
    font-size: 13px;
  }
}
