﻿@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;
}

#patkcn {
  display: flex;
  flex-direction: column;
  font-family: Roboto;
}
#patkcn .header {
  background: #fff;
  padding: 14px 20px 10px;
  border-radius: 8px;
  border: 1px solid #e5e9f0;
}
#patkcn .header-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgb(15, 72, 113);
}
#patkcn .header-title .icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: #1e3a8a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
#patkcn .header-title .header-content {
  min-width: 0;
}
#patkcn .header-title .header-content .title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
#patkcn .header-title .header-content p {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #64748b;
}
#patkcn .filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
#patkcn .filters .dropdown-menu.show {
  max-height: 280px;
  overflow-y: auto;
  padding: 12px;
}
#patkcn .filters .dropdown-menu.show li {
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
  transition: 0.3s all ease;
}
#patkcn .filters .dropdown-menu.show li:hover {
  color: #1e3a8a;
}
#patkcn .filters .UI-DROP {
  min-width: 130px;
}
#patkcn .filters .UI-DDL {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#patkcn .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#patkcn .filter-group label {
  font-size: 14px;
  color: #1e3a8a;
  font-weight: 500;
}
#patkcn .filter-group select:focus {
  border-color: #3b82f6;
}
#patkcn .filter-group.search-input {
  flex: 1;
  max-width: 260px;
}
#patkcn .table-tkcn {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e9f0;
  display: flex;
  flex-direction: column;
}
#patkcn .table-tkcn .panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-direction: column;
}
#patkcn .table-tkcn .panel-title .total {
  font-weight: 400;
  text-transform: none;
  color: #1e3a8a;
  font-size: 14px;
}
#patkcn .search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  padding-right: 8px;
}
#patkcn .search-wrap input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  background: transparent;
}
#patkcn .search-wrap .search-icon {
  color: #1e3a8a;
  font-size: 15px;
  cursor: pointer;
}
#patkcn .body {
  position: relative;
  flex: 1;
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: 12px 16px 16px;
  padding-left: 0;
  padding-right: 0;
  gap: 12px;
}
#patkcn .panel-left {
  width: 100%;
  min-width: 260px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
#patkcn .top-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
#patkcn .top-stats .stats-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease;
  border: 1px solid #e5e9f0;
}
#patkcn .top-stats .stats-item .stats-icon {
  border-radius: 8px;
}
#patkcn .top-stats .stats-item .stats-icon i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
#patkcn .top-stats .stats-item .stats-icon.icon-blue {
  background: #e8f0fe;
  color: #3b82f6;
}
#patkcn .top-stats .stats-item .stats-icon.icon-green {
  background: #e6f7ef;
  color: #22c55e;
}
#patkcn .top-stats .stats-item .stats-icon.icon-orange {
  background: #fff4e6;
  color: #f59e0b;
}
#patkcn .top-stats .stats-item .stats-icon.icon-purple {
  background: #f3e8ff;
  color: #a855f7;
}
#patkcn .top-stats .stats-item .stats-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#patkcn .top-stats .stats-item .stats-content span {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}
#patkcn .top-stats .stats-item .stats-content strong {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
#patkcn .panel-title {
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #f0f2f5;
}
#patkcn table {
  width: 100%;
  border-collapse: collapse;
}
#patkcn thead {
  position: relative;
  z-index: 2;
}
#patkcn thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #1e3a8a;
  border-bottom: 1px solid #e5e9f0;
  white-space: nowrap;
}
#patkcn thead th:last-child {
  text-align: center;
}
#patkcn tbody tr {
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
  transition: background 0.12s;
}
#patkcn tbody tr:hover {
  background: #f8fafc;
}
#patkcn tbody tr.selected {
  background: #eff6ff;
}
#patkcn tbody tr.selected td:nth-child(2) {
  font-weight: 700;
}
#patkcn tbody td {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  vertical-align: middle;
  color: rgb(33, 50, 56);
}
#patkcn tbody td:last-child {
  text-align: center;
}
#patkcn .status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
#patkcn .status.PA-TTPD-003 {
  background: #dcfce7;
  color: #16a34a;
}
#patkcn .status.PA-TTPD-002 {
  background: #fef3c7;
  color: #d97706;
}
#patkcn .status.PA-TTPD-001 {
  background: #fee2e2;
  color: #dc2626;
}
#patkcn .pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid #e5e9f0;
  font-size: 12px;
  color: #64748b;
  padding-top: 5px;
  gap: 5px;
}
#patkcn .pagination .left {
  display: flex;
  align-items: center;
  gap: 8px;
}
#patkcn .pagination select {
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}
#patkcn .pagination .pages {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: center;
}
#patkcn .pagination .pages .pagination1, #patkcn .pagination .pages .pnext, #patkcn .pagination .pages .disabled {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e9f0;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
}
#patkcn .pagination .pages .pagination1:hover, #patkcn .pagination .pages .pnext:hover, #patkcn .pagination .pages .disabled:hover {
  background: #f1f5f9;
}
#patkcn .pagination .pages .pagination1.active, #patkcn .pagination .pages .pnext.active, #patkcn .pagination .pages .disabled.active {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}
#patkcn .panel-right {
  display: none;
  width: 300px;
  min-width: 300px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e9f0;
  height: calc(100vh - 155px - 70px - 24px);
}
#patkcn .panel-right.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#patkcn .panel-right .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
#patkcn .panel-right .close-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}
#patkcn .panel-right .close-btn:hover {
  background: #f1f5f9;
  color: #475569;
}
#patkcn .unit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
#patkcn .unit-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.3);
}
#patkcn .unit-name h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
}
#patkcn .unit-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
#patkcn .unit-status.PA-TTPD-003 {
  background: #dcfce7;
  color: #16a34a;
}
#patkcn .unit-status.PA-TTPD-002 {
  background: #fef3c7;
  color: #d97706;
}
#patkcn .unit-status.PA-TTPD-001 {
  background: #fee2e2;
  color: #dc2626;
}
#patkcn .scroll-infolist {
  position: relative;
  overflow: hidden;
}
#patkcn .info-list {
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
  padding: 4px 16px 12px;
  height: calc(100vh - 446px);
}
#patkcn .info-list.active {
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
}
#patkcn #continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  transition: 0.2s ease;
}
#patkcn #continue i {
  font-size: 10px;
  transition: transform 0.3s ease;
}
#patkcn #continue:hover {
  color: #1d4ed8;
  background: #f8fafc;
}
#patkcn #continue.active i {
  transform: rotate(180deg);
}
#patkcn .info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid #f5f7fa;
}
#patkcn .info-row:last-child {
  border-bottom: none;
}
#patkcn .info-row .ico {
  width: 18px;
  text-align: center;
  color: #64748b;
  flex-shrink: 0;
  margin-top: 1px;
}
#patkcn .info-row .lbl {
  color: #64748b;
  min-width: 100px;
  flex-shrink: 0;
}
#patkcn .info-row .val {
  font-weight: 500;
  color: #1a1a2e;
  flex: 1;
}
#patkcn .info-row .val a {
  color: #2563eb;
  text-decoration: none;
  font-size: 12px;
  margin-left: 6px;
}
#patkcn .info-row .val a:hover {
  text-decoration: underline;
}
#patkcn .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 6px;
}
#patkcn .veh-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.4s ease;
  padding: 4px 16px 12px;
}
#patkcn .veh-section.active {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}
#patkcn .veh-section .sec-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
#patkcn .veh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}
#patkcn .veh-item .ico {
  width: 20px;
  text-align: center;
  color: #475569;
  font-size: 15px;
}
#patkcn .veh-item .name {
  flex: 1;
  color: #334155;
}
#patkcn .veh-item .num {
  font-weight: 600;
  color: #1e3a8a;
  min-width: 24px;
  text-align: right;
  cursor: pointer;
}
#patkcn .veh-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
#patkcn .veh-footer button {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 17px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #fff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
#patkcn .veh-footer button i {
  font-size: 12px;
  flex-shrink: 0;
}
#patkcn .veh-footer button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}
#patkcn .veh-footer button:active {
  transform: translateY(1px);
}
#patkcn .veh-footer button:first-child {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}
#patkcn .veh-footer button:first-child:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
@media (max-width: 480px) {
  #patkcn .veh-footer {
    flex-direction: column;
  }
  #patkcn .veh-footer button {
    width: 100%;
  }
}

.filter-group select,
.filter-group .search-wrap {
  height: 36px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  color: #1a1a2e;
  outline: none;
  min-width: 130px;
}

.tree::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.veh-section::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.tree::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.veh-section::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.action-col {
  width: 120px;
  text-align: center;
}

.action-group {
  display: inline-block;
  position: relative;
}

.action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-btn i {
  font-size: 15px;
}
.action-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.action-menu {
  display: none;
  min-width: 150px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
  position: absolute;
  left: -145px;
  top: 0;
}
.action-menu.show {
  display: block;
}
.action-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.action-menu .dropdown-item i {
  width: 16px;
  text-align: center;
}
.action-menu .dropdown-item:hover {
  background: #f1f5f9;
}
.action-menu .action-edit i {
  color: #2563eb;
}
.action-menu .action-delete i {
  color: #dc2626;
}
.action-menu .action-delete:hover {
  background: #fef2f2;
}

.plan-section {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: space-between;
}
.plan-section .plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 2px;
  gap: 12px;
}
.plan-section .plan-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #0047fc;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.plan-section .plan-create-btn i {
  font-size: 12px;
}
.plan-section .plan-create-btn:hover {
  background: #0039cc;
}
.plan-section .view-switcher {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}
.plan-section .view-switcher::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 30px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s ease;
}
.plan-section .view-switcher:has(.view-switch-btn:nth-child(2).active)::before {
  transform: translateX(32px);
}
.plan-section .view-switch-btn {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.plan-section .view-switch-btn i {
  font-size: 14px;
  transition: transform 0.2s ease;
}
.plan-section .view-switch-btn:hover {
  color: #0047fc;
}
.plan-section .view-switch-btn.active {
  color: #0047fc;
}
.plan-section .view-switch-btn.active i {
  transform: scale(1.05);
}
.plan-section .view-switch-btn:active {
  transform: scale(0.92);
}

#contextRender {
  padding: 16px;
  min-width: 0;
}
#contextRender.view-list {
  flex: 1;
  min-height: 0;
}
#contextRender.view-list .table-wrap {
  width: 100%;
  height: calc(100vh - 446px);
}
#contextRender.view-grid {
  flex: none;
  height: auto;
}
#contextRender.view-grid .plan-grid {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.plan-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, gap 0.2s ease;
}
.plan-detail-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.plan-detail-btn:hover {
  color: #1d4ed8;
}
.plan-detail-btn:hover i {
  transform: translateX(4px);
}
.plan-detail-btn:active {
  transform: scale(0.97);
}

.plan-card {
  background: #F0F7FF;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  transition: 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.plan-code {
  font-size: 13px;
  font-weight: 700;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
}

.plan-title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #222;
}

.plan-meta {
  display: grid;
  gap: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
}
.meta-item span:nth-child(2) {
  font-weight: 500;
}

.meta-label {
  font-size: 12px;
  color: #999;
}

.plan-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 1200px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.custom-modal .modal-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
  padding-top: 0;
}
.custom-modal .modal-title {
  margin: 0;
  padding-right: 45px;
  font-size: 22px;
  font-weight: 700;
}
.custom-modal .modal-subtitle {
  margin: 6px 0 0;
  color: #777;
  font-size: 14px;
}
.custom-modal .modal-content {
  padding: 0;
}

.modal-overlay.active .custom-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #666;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group .dropdown-menu {
  max-height: 300px;
  overflow: hidden;
  overflow-y: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  width: 40%;
}
.form-group .dropdown-menu li {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}
.form-group .dropdown-menu li:hover {
  background-color: rgb(18, 89, 160);
  color: #fff;
  transition: 0.3s all ease;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.form-group label span {
  color: #dc3545;
}
.form-group .form-control {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.form-group textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-full {
  grid-column: 1/-1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #eee;
}

.modal-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.modal-btn.secondary {
  background: #f1f3f5;
  color: #555;
}
.modal-btn.secondary:hover {
  background: #e5e7eb;
}
.modal-btn.primary {
  background: #667eea;
  color: #fff;
}
.modal-btn.primary:hover {
  background: #5568d8;
}

.btn-file .icon {
  font-size: 12px !important;
}
.btn-file .text {
  line-height: 18px !important;
}

#listFile .list-group {
  overflow: hidden !important;
}
#listFile .list-group li {
  font-size: 13px !important;
  word-break: break-word !important;
}

@media (max-width: 576px) {
  .custom-modal {
    padding: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: auto;
  }
  .modal-actions .modal-btn {
    flex: 1;
  }
}
.modal-content {
  border: unset !important;
}

@media (max-width: 767.98px) {
  .plan-section {
    flex-direction: column;
  }
  #contextRender table {
    width: 1200px;
  }
  .top-stats {
    flex-direction: column;
  }
  .panel-right.active {
    position: fixed;
    bottom: 108px;
    left: 47px;
    z-index: 10;
  }
  .panel-right-content {
    position: relative;
    z-index: 10;
    background-color: #fff;
  }
  .overlay-panelright {
    position: fixed;
    inset: 0;
    background: rgba(10, 19, 48, 0.45);
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .panel-right.active .overlay-panelright {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .filter-group {
    width: 100%;
  }
  #patkcn .filter-group.search-input {
    max-width: none;
    width: 100%;
  }
  .filter-group .UI-DROP {
    width: 100%;
  }
  .filter-group .UI-DDL {
    width: 100%;
  }
}
