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

.app {
  display: flex;
  font-family: Roboto;
}

.app-content {
  padding: 12px;
}

/* Sidebar */
.sidebar {
  width: 52px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 6px;
}
.sidebar .logo {
  width: 36px;
  height: 36px;
  background: #1e40af;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Content */
.content {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  overflow: hidden;
  min-width: 0;
}

.app,
.content,
.content-upper,
.row1,
.row2,
.row3,
.card {
  min-width: 0;
}

/* Section title */
.sec-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a6b;
}

/* Cards base */
.card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(16, 29, 69, 0.06);
}

/* Row 1: Overview */
.row1 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  min-width: 0;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.stat-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  border: 1px solid #e6e9f2;
  gap: 12px;
}
.stat-box .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #16233f;
  text-align: start;
}
.stat-box .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 2px;
}
.stat-box .num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}
.stat-box .label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 1px;
  text-align: start;
}

.icon-green {
  background: #1a9d5c;
  color: #fff;
}

.icon-blue {
  background: #1c6fd8;
  color: #fff;
}

.icon-orange {
  background: #e2621c;
  color: #fff;
}

.icon-purple {
  background: #7c4fd8;
  color: #fff;
}

.icon-gray {
  background: #6b7488;
  color: #fff;
}

.map-scales {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.scale-card {
  background: #f8fafc;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #e6e9f2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scale-card .scale-count {
  font-size: 20px;
  font-weight: 800;
  color: #16233f;
  margin-bottom: 12px;
}
.scale-card .scale-count span {
  font-size: 13px;
  font-weight: 500;
  color: #8b93a7;
}
.scale-card .ratio {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  background: #eff6ff;
  color: #2563eb;
}
.scale-card:nth-child(1) .ratio {
  background: #dcfce7;
  color: #16a34a;
}
.scale-card:nth-child(2) .ratio {
  background: #dbeafe;
  color: #3b82f6;
}
.scale-card:nth-child(3) .ratio {
  background: #ffedd5;
  color: #f97316;
}
.scale-card:nth-child(4) .ratio {
  background: #f3e8ff;
  color: #a855f7;
}
.scale-card .val {
  font-size: 20px;
  font-weight: 700;
}
.scale-card .val span {
  font-weight: 400;
  color: #9ca3af;
  font-size: 11px;
}

.progress {
  height: 8px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 3px;
  overflow: hidden;
}

.scale-percent {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #55617a;
  text-align: right;
}

.progress-bar {
  height: 100%;
  border-radius: 24px;
}

.pb-green {
  background: #22c55e;
}

.pb-blue {
  background: #3b82f6;
}

.pb-orange {
  background: #f97316;
}

.pb-purple {
  background: #a855f7;
}

/* Progress update */
.update-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.up-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.up-item .update-name {
  font-size: 13px;
  font-weight: 600;
  color: #16233f;
  min-width: 100px;
}
.up-item .update-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  flex: 0 0 auto;
}
.up-item .update-icon.update-icon-blue {
  background: #1c6fd8;
}
.up-item .update-icon.update-icon-orange {
  background: #e2621c;
}
.up-item .update-icon.update-icon-purple {
  background: #7c4fd8;
}
.up-item .update-icon i {
  font-size: 14px;
  color: #ffffff;
}
.up-item .bar {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.up-item .bar-fill {
  height: 100%;
  border-radius: 3px;
}
.up-item .pct {
  font-weight: 600;
  min-width: 28px;
  text-align: right;
}
.up-item .date {
  color: #9ca3af;
  min-width: 60px;
}

/* Row 2: Main 3 columns */
.row2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  gap: 12px;
  min-height: 0;
  min-width: 0;
}
.row2 .card.row2card {
  display: flex;
  flex-direction: column;
}

.risk-map-area {
  display: flex;
  flex: 1;
  gap: 12px;
  height: 100%;
  margin-top: 12px;
  min-width: 0;
}

.map-placeholder {
  flex: 1;
  background: #eef2ff;
  border-radius: 6px;
  border: 1px dashed #c7d2fe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 11px;
  min-height: 140px;
  position: relative;
  min-width: 0;
}
.map-placeholder .map-label {
  font-weight: 600;
  margin-top: 4px;
}

.map-controls {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-btn {
  width: 22px;
  height: 22px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.risk-stats {
  width: 220px;
  flex: 0 1 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: #f8fafc;
  border-radius: 5px;
  font-size: 11px;
}
.risk-item .naturaldisaster-name {
  font-size: 13px;
  color: #16233f;
}
.risk-item .ri-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
}
.risk-item .ri-icon i {
  font-size: 13px;
  color: #ffffff;
}
.risk-item .ri-icon:nth-child(1) {
  background: #ef4444;
}
.risk-item:nth-of-type(2) .ri-icon {
  background: #ef4444;
}
.risk-item:nth-of-type(3) .ri-icon {
  background: #3b82f6;
}
.risk-item:nth-of-type(4) .ri-icon {
  background: #f97316;
}
.risk-item:nth-of-type(5) .ri-icon {
  background: #a855f7;
}
.risk-item .ri-num {
  font-weight: 700;
  margin-left: auto;
}

.risk-total {
  margin-top: 4px;
  padding: 5px 6px;
  background: #eff6ff;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  color: #1e40af;
}

/* Resources */
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  gap: 12px;
  height: 100%;
}
.res-grid .total-tkcn {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-big {
  background: #f0fdf4;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  border: 1px solid #bbf7d0;
}
.res-big .num {
  font-size: 22px;
  font-weight: 700;
  color: #16a34a;
}
.res-big .lbl {
  font-size: 11px;
  color: #4b5563;
}
.res-big .sub {
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
}

.veh-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.veh-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 13px;
  border-bottom: 1px solid #e6e9f2;
}
.veh-item .v-name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4b5563;
}
.veh-item .v-name i {
  background: #f8fafc;
  padding: 8px;
  border-radius: 8px;
  margin-right: 5px;
}
.veh-item .v-num {
  font-weight: 600;
}

/* Plans */
.plans-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 6px;
}
.plans-top .plan-stat {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  align-items: center;
  gap: 6px;
}
.plans-top .plan-stat:nth-child(1) .p-icon {
  background: #16a34a;
}
.plans-top .plan-stat:nth-child(2) .p-icon {
  background: #2563eb;
}
.plans-top .plan-stat:nth-child(3) .p-icon {
  background: #f97316;
}
.plans-top .plan-stat:nth-child(4) .p-icon {
  background: #6b7280;
}
.plans-top .plan-stat .p-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  margin-bottom: 2px;
}
.plans-top .plan-stat .p-num {
  font-size: 20px;
  font-weight: 700;
}
.plans-top .plan-stat .p-pct {
  font-size: 11px;
  color: #6b7280;
}
.plans-top .plan-stat .p-lbl {
  font-size: 13px;
  color: #4b5563;
}

.recent-plans {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rp-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 13px;
}
.rp-item .rp-code {
  font-weight: 600;
  color: #1e40af;
  min-width: 70px;
}
.rp-item .rp-name {
  flex: 1;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-badge {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-green {
  background: #dcfce7;
  color: #16a34a;
}

.badge-blue {
  background: #dbeafe;
  color: #2563eb;
}

.badge-orange {
  background: #ffedd5;
  color: #ea580c;
}

/* Row 3: Recent updates */
.row3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  box-shadow: 0 1px 2px rgba(16, 29, 69, 0.06);
  border: 1px solid #e6e9f2;
  padding: 12px;
  border-radius: 8px;
}
.row3 .upd-card {
  background: #fff;
  border-radius: 0;
  display: flex;
  gap: 8px;
  border-right: 1px solid #e5e7eb;
  margin-right: 20px;
}
.row3 .upd-card:nth-child(1) .u-icon {
  background: #2563eb;
}
.row3 .upd-card:nth-child(2) .u-icon {
  background: #16a34a;
}
.row3 .upd-card:nth-child(3) .u-icon {
  background: #9333ea;
}
.row3 .upd-card:nth-child(4) .u-icon {
  background: #ea580c;
}
.row3 .upd-card:nth-child(5) .u-icon {
  background: #4b5563;
}
.row3 .upd-card .u-head {
  font-size: 13px;
  font-weight: 700;
  color: #16233f;
  margin-bottom: 4px;
}
.row3 .upd-card .u-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}
.row3 .upd-card .u-desc {
  font-size: 12px;
  color: #55617a;
  margin-bottom: 10px;
  line-height: 1.4;
}
.row3 .upd-card .u-time {
  font-size: 11px;
  color: #8b93a7;
}

.title-below {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1e3a6b;
  margin-bottom: 14px;
}

.header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btn-read {
  text-align: right;
  background-color: aliceblue;
  padding: 4px 12px;
  border-radius: 24px;
}
.btn-read a {
  font-size: 13px;
  color: #2563eb;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a6b;
  margin-bottom: 12px;
  margin-top: 14px;
}
.panel-title span {
  font-weight: 400;
  color: #9ca3af;
}
.panel-title.first {
  margin-top: 0px;
}

.activity-title {
  font-size: 15px;
  font-weight: 600;
  color: #16233f;
  margin-bottom: 4px;
}

@media (max-width: 767.98px) {
  .plans-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-scales {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content {
    display: flex;
    flex-direction: column;
  }
  .row1, .row2, .row3 {
    grid-template-columns: 1fr;
  }
  .row3 .upd-card {
    border-right: none;
    margin-right: 0;
  }
  .risk-map-area {
    flex-direction: column;
  }
  .risk-stats {
    width: 100%;
  }
  .res-grid {
    display: flex;
    flex-direction: column;
  }
}
