﻿@charset "UTF-8";
@keyframes shrink {
  0% {
    background-size: 100%;
  }
  100% {
    background-size: 130%;
  }
}
@keyframes shrink2 {
  0% {
    background-size: 95%;
  }
  100% {
    background-size: 100%;
  }
}
@keyframes opacitymove {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes opacitymoveup {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes opacitymovedown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes translateXmove {
  from {
    transform: translateX(-30px);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes translateYmoveup {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes translateYmovedown {
  from {
    transform: translateY(-30px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes translateLoad {
  0% {
    left: 0%;
    right: 100%;
    width: 0%;
  }
  10% {
    left: 0%;
    right: 75%;
    width: 25%;
  }
  90% {
    right: 0%;
    left: 75%;
    width: 25%;
  }
  100% {
    left: 100%;
    right: 0%;
    width: 0%;
  }
}
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
  }
}
@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/******* 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é****/
/*$secondary-color: #cf0921;
$primary-color: #014eff;
$text-active: #FCE731;*/
@font-face {
  font-family: "manrope";
  src: url("../../fonts/manrope/manrope-variablefont_wght.ttf") format("truetype");
}
ul, li {
  list-style: none;
}

body {
  font-family: Manrope, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
}

p {
  margin: 0 auto;
}

a:hover {
  text-decoration: none;
}

#baocaotonghop {
  width: 90%;
  margin: 30px auto;
}
@media only screen and (max-width: 769px) {
  #baocaotonghop {
    width: 100%;
  }
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}
.main-content .left-panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.main-content .left-panel .panel-header {
  background: #1A52CD;
  color: white;
  padding: 20px 30px;
  font-size: 20px;
  font-weight: 600;
}
@media only screen and (max-width: 769px) {
  .main-content .left-panel .panel-header {
    font-size: 18px;
    padding: 10px 14px;
  }
}
.main-content .left-panel .report-type-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e9ecef;
}
.main-content .left-panel .report-type-tabs .tab-btn {
  background: #f8f9fa;
  border: none;
  color: #333;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  flex: 1; /* giãn đều */
  font-weight: 600;
  border: 1px solid #f3f3f3;
}
.main-content .left-panel .report-type-tabs .tab-btn.active {
  background: #4a90e2;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}
.main-content .left-panel .report-type-tabs .tab-btn:hover:not(.active) {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}
.main-content .left-panel .search-section {
  padding: 30px;
  border-bottom: 1px solid #e0e0e0;
}
@media only screen and (max-width: 769px) {
  .main-content .left-panel .search-section {
    padding: 14px;
  }
}
@media only screen and (max-width: 769px) {
  .main-content .left-panel .search-section button {
    width: 100%;
    font-size: 14px;
  }
}
.main-content .left-panel .pagination-wrapper {
  background: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e9ecef;
}
@media only screen and (max-width: 769px) {
  .main-content .left-panel .pagination-wrapper {
    font-size: 13px;
  }
}
.main-content .left-panel .pagination-wrapper #page-info {
  font-size: 14px;
  color: #666;
}
.main-content .left-panel .pagination-wrapper .pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}
.main-content .left-panel .pagination-wrapper .pagination .page-btn {
  background: white;
  border: 1px solid #ccc;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}
.main-content .left-panel .pagination-wrapper .pagination .page-btn:hover:not(:disabled):not(.active) {
  background: #f8f9fa;
  border-color: #4a90e2;
  color: #333;
}
.main-content .left-panel .pagination-wrapper .pagination .page-btn:disabled {
  background: #f8f9fa;
  border-color: #e0e6ed;
  color: #999;
  cursor: not-allowed;
}
.main-content .left-panel .pagination-wrapper .pagination .page-btn.page-prev, .main-content .left-panel .pagination-wrapper .pagination .page-btn.page-next {
  font-weight: 600;
}
@media (max-width: 768px) {
  .main-content .left-panel .pagination-wrapper {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .main-content .left-panel .pagination {
    justify-content: center;
  }
}
.main-content .right-panel .panel-container {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.main-content .right-panel .quick-actions {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
@media only screen and (max-width: 769px) {
  .main-content .right-panel .quick-actions {
    padding: 14px;
  }
}
.main-content .right-panel .quick-actions h3 {
  color: #2c3542;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}
@media only screen and (max-width: 769px) {
  .main-content .right-panel .quick-actions h3 {
    font-size: 16px;
  }
}
.main-content .right-panel .quick-actions .quick-action-btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
  padding: 15px;
  font-size: 16px;
}
@media only screen and (max-width: 769px) {
  .main-content .right-panel .quick-actions .quick-action-btn {
    font-size: 14px;
    padding: 12px;
  }
}
.main-content .right-panel .stats-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
@media only screen and (max-width: 769px) {
  .main-content .right-panel .stats-card {
    padding: 14px;
  }
}
.main-content .right-panel .stats-card h3 {
  color: #2c3542;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}
@media only screen and (max-width: 769px) {
  .main-content .right-panel .stats-card h3 {
    font-size: 16px;
  }
}
.main-content .right-panel .stats-card .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.main-content .right-panel .stats-card .stats-grid .stat-item {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
}
.main-content .right-panel .stats-card .stats-grid .stat-item .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #4CAF50;
}
.main-content .right-panel .stats-card .stats-grid .stat-item .stat-number.primary {
  color: #4A90E2;
}
.main-content .right-panel .stats-card .stats-grid .stat-item .stat-number.success {
  color: #28a745;
}
.main-content .right-panel .stats-card .stats-grid .stat-item .stat-number.warning {
  color: #ffc107;
}
.main-content .right-panel .stats-card .stats-grid .stat-item .stat-number.info {
  color: #17a2b8;
}
.main-content .right-panel .stats-card .stats-grid .stat-item .stat-label {
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
}

.reports-list {
  padding: 30px;
}
@media only screen and (max-width: 769px) {
  .reports-list {
    padding: 14px;
  }
}
.reports-list .report-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.1s ease;
  position: relative;
  cursor: pointer;
}
@media only screen and (max-width: 769px) {
  .reports-list .report-item {
    padding: 10px;
  }
}
.reports-list .report-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.reports-list .report-item .report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.reports-list .report-item .report-header .report-title {
  font-weight: 700;
  color: #2c3e50;
  font-size: 16px;
  flex: 1;
  margin-right: 30px;
}
@media only screen and (max-width: 769px) {
  .reports-list .report-item .report-header .report-title {
    font-size: 14px;
    margin-right: 0;
  }
}
.reports-list .report-item .report-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6c757d;
}
@media only screen and (max-width: 769px) {
  .reports-list .report-item .report-info {
    font-size: 12px;
  }
}
.reports-list .report-item .report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
@media only screen and (max-width: 769px) {
  .report-status {
    font-size: 10px;
  }
}

.status-draft {
  background: #fff3cd;
  color: #856404;
}

.status-sent {
  background: #d1ecf1;
  color: #0c5460;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.btn-sm {
  padding: 8px;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}
@media only screen and (max-width: 769px) {
  .form-group label {
    font-size: 13px;
    margin-bottom: 0.3rem;
  }
}

.form-group input, .form-group select, .form-group textarea {
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  width: 100%;
}
@media only screen and (max-width: 769px) {
  .form-group input, .form-group select, .form-group textarea {
    font-size: 13px;
    padding: 6px;
  }
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.file-upload {
  border: 2px dashed #4CAF50;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #f8fff8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover {
  background: #f0fff0;
  border-color: #45a049;
}

.file-upload input {
  display: none;
}

.file-list {
  margin-top: 15px;
}
.file-list .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
}
.file-list .file-item .file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.file-list .file-item .file-info .file-icon {
  font-size: 24px;
}
.file-list .file-item .file-info .file-details {
  flex: 1;
}
.file-list .file-item .file-info .file-details .file-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}
@media only screen and (max-width: 769px) {
  .file-list .file-item .file-info .file-details .file-name {
    font-size: 12px;
  }
}
.file-list .file-item .file-info .file-details .file-size {
  font-size: 12px;
  color: #999;
}
.file-list .file-item .action-file {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 4px;
}
.file-list .file-item .action-file:hover {
  background-color: #e9ecef;
}

#viewReportModal .modal-body {
  font-size: 14px;
}
#viewReportModal .modal-body .report-title {
  font-size: 18px;
  font-weight: 700;
}
@media only screen and (max-width: 769px) {
  #viewReportModal .modal-body .report-title {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .right-panel {
    order: -1;
  }
}
@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
  }
  .form-group {
    min-width: 100%;
  }
  .report-info {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* Custom Drawer */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 1200px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1051;
  display: flex;
  flex-direction: column;
}

.drawer-backdrop.show .drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  margin: 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
}
