/*///color class//*/

span.ics-status-warning {
    color: #e53e3e !important; /* màu đỏ tươi */
}

span.ics-status-warning-ncc {
    color: #00b0ff !important; /* màu xanh dương */
}

span.ics-status-warning-ve-mot-phan {
    color: #ed60ad !important; /* màu xanh dương */
}


span.ics-status-warning-dong-goi-1-phan {
    color: #f7e86f !important; /* màu xanh dương */
}


span.ics-status-muted {
    color: #ff7300 !important; /* màu đỏ tươi */
}

span.ics-status-success {
    color: #00ff86 !important; /* màu đỏ tươi */
}


/* ==== ĐĂNG KÝ / ĐĂNG NHẬP DOANH NGHIỆP ==== */
.pln-register-company-bg {
    min-height: unset;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: none;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    box-sizing: border-box;
}
.pln-register-company-box {
    background: radial-gradient(ellipse at 90% 120%, rgba(32,197,221,0.12), transparent 90%), #151536;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(20,40,100,0.12), 0 0 0 1px #283b68;
    padding: 38px 44px 24px 44px;
    min-width: 400px;
    max-width: 97vw;
    margin: 0;
    position: relative;
    transition: box-shadow 0.18s;
}
.pln-register-company-logo {
    font-size: 2.7rem;
    font-weight: 800;
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 28px;
    background: linear-gradient(90deg,#3bb6fb 15%,#37c8e4 50%,#25a3f7 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 2px 16px rgba(30, 90, 200, 0.12), 0 1px 1px #192855;
}
.pln-register-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 22px;
}
.pln-register-company-box input[type="text"],
.pln-register-company-box input[type="email"],
.pln-register-company-box input[type="password"] {
    width: 100%;
    background: #1a1a37;
    color: #f5faff;
    border: 1px solid #243256;
    border-radius: 7px;
    font-size: 1rem;
    padding: 10px 12px;
    margin-bottom: 18px;
    transition: border 0.17s, background 0.2s;
}
.pln-register-company-box input[type="text"]:focus,
.pln-register-company-box input[type="email"]:focus,
.pln-register-company-box input[type="password"]:focus {
    outline: none;
    border-color: #23eee6;
    background: #20204a;
}
.pln-register-company-box input[type="text"]::placeholder,
.pln-register-company-box input[type="email"]::placeholder,
.pln-register-company-box input[type="password"]::placeholder {
    color: #b6b8c6;
    opacity: 1;
}
.pln-register-company-box .ics-btn.ics-btn-main {
    background: linear-gradient(90deg, #22b6f8 40%, #10ffce 100%);
    color: #fff !important;
    font-weight: bold;
    font-size: 1.07rem;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 2px 12px #22b6f829;
    transition: background 0.18s, box-shadow 0.18s;
}
.pln-register-company-box .ics-btn.ics-btn-main:hover {
    background: linear-gradient(90deg, #10ffce 10%, #22b6f8 100%);
    box-shadow: 0 2px 18px #22b6f857;
}
#pln-register-company-result {
    text-align: center;
    min-height: 24px;
    margin-top: 18px;
    font-size: 1rem;
}


/* ///////// PANEL DOANH NGHIỆP FULL WIDTH /////////*/


.pln-company-panel {
    width: 100%;
    max-width: 1700px;
    margin: 38px auto 0 auto;
    padding: 44px 32px 32px 32px;
    background: #181a35;
    border-radius: 22px;
    box-shadow: 0 4px 32px #14286426;
    color: #e9f6ff;
    font-size: 1.08rem;
    /* Đảm bảo không tràn ra ngoài content theme */
    box-sizing: border-box;
    overflow-x: visible;
}



/* Chỉnh nút ở khối dưới cùng (đổi mật khẩu & đăng xuất) */
.ics-actions.mt-2 button,
.ics-actions.mt-2 a.ics-btn {
    font-size: 13px;
    padding: 6px 16px;
    line-height: 1.2;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* đảm bảo nút "Đăng xuất" không bị gạch chân */
}

/* Đảm bảo nút a không bị style mặc định */
.ics-actions.mt-2 a.ics-btn:hover {
    text-decoration: none;
}



/* Giảm cỡ chữ toàn bảng */
.pln-table-wrapper table.ics-table td,
.pln-table-wrapper table.ics-table th {
    font-size: 12px;
}

/* Chỉnh nút trong bảng nhỏ lại + bo tròn */
.pln-table-wrapper table.ics-table td button {
    font-size: 12px;
    padding: 4px 10px;
    line-height: 1.2;
    border-radius: 5px;
}




/* Không dùng width: 99vw/100vw để tránh tràn sang phải */
@media (max-width: 1600px) {
    .pln-company-panel { max-width: 99vw; }
}
@media (max-width: 1279px) {
    .pln-company-panel { max-width: 100vw; padding: 28px 2vw 22px 2vw;}
}
@media (max-width: 900px) {
    .pln-company-panel { max-width: 100vw; padding: 8px 0 12px 0; }
}

/* Tiêu đề & info */
.pln-company-panel h2 {
    color: #24ffd9;
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 13px;
    letter-spacing: 0.5px;
}
.pln-company-panel .pln-highlight-user {
    color: #fff;
    font-weight: 800;
}
.pln-company-panel .pln-company-info {
    margin-bottom: 20px;
}
.pln-company-panel .pln-label {
    color: #aeeeff;
    font-weight: 500;
    min-width: 130px;
    display: inline-block;
    margin-bottom: 2px;
}
.pln-company-panel .pln-label-value {
    color: #fff;
    font-weight: 400;
}
.pln-company-panel hr {
    border: none;
    border-bottom: 1.5px solid #2e3958;
    margin: 18px 0;
}

/* Hành động */
.pln-company-panel .ics-actions {
    margin: 15px 0 18px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.pln-company-panel .ics-btn {
    font-size: 1rem;
    min-width: 90px;
}

/* Table wrapper & table */
.pln-company-panel .pln-table-wrapper {
    overflow-x: auto;
    margin: 24px 0 22px 0;
    border-radius: 16px;
    background: #131535;
    border: 1.5px solid #23315b;
    box-shadow: 0 2px 16px #15154e1c;
}
.pln-company-panel .ics-table {
    width: 100%;
    min-width: 1100px;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    border: none;
    margin-bottom: 0;
    table-layout: auto;
}
.pln-company-panel .ics-table th,
.pln-company-panel .ics-table td {
    white-space: nowrap;
    vertical-align: middle;
    font-size: 1.05rem;
}
.pln-company-panel .ics-table th {
    font-weight: bold;
}

/* Checkbox phân quyền */
.pln-company-panel td label {
    margin-right: 7px;
    font-weight: 400;
    font-size: 1em;
    white-space: nowrap;
}

/* Modal popup */
.ics-modal {
    display: none;
    position: fixed !important;
    z-index: 10010;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(20, 24, 48, 0.60);
    align-items: center;
    justify-content: center;
}
.ics-modal.show { display: flex !important; }
.ics-modal .ics-modal-content {
    max-width: 420px;
    width: 96vw;
    background: #181a35;
    border-radius: 13px;
    box-shadow: 0 8px 38px #1ce8e81a, 0 1px 2px #181a35;
    color: #fff;
    padding: 32px 24px 26px 24px;
    margin: auto;
    animation: fadeInUp .2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}
@keyframes fadeInUp {
    from { transform: translateY(70px); opacity: 0;}
    to { transform: translateY(0); opacity: 1;}
}
.ics-modal .ics-modal-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #24ffd9;
    margin-bottom: 18px;
}
.ics-modal .ics-modal-actions {
    display: flex;
    gap: 13px;
    margin-top: 12px;
}
.ics-modal input[type="text"],
.ics-modal input[type="password"],
.ics-modal input[type="email"],
.ics-modal select {
    width: 100%;
    background: #232447;
    color: #eaffff;
    border: 1px solid #243256;
    border-radius: 7px;
    font-size: 1rem;
    padding: 9px 12px;
    margin-bottom: 15px;
    transition: border 0.17s, background 0.2s;
}
.ics-modal input:focus, .ics-modal select:focus {
    outline: none;
    border-color: #23eee6;
    background: #20204a;
}

/* Responsive mạnh cho mobile/tablet */
@media (max-width: 1200px) {
    .pln-company-panel { max-width: 99vw; padding: 13px 1vw 15px 1vw; }
    .pln-company-panel .ics-table { min-width: 900px;}
}
@media (max-width: 900px) {
    .pln-company-panel { max-width: 100vw; padding: 7px 0 12px 0;}
    .pln-company-panel .ics-table { min-width: 600px;}
    .pln-company-panel .pln-table-wrapper { margin: 8px 0 10px 0;}
    .pln-company-panel h2 { font-size: 1.1rem;}
    .ics-modal .ics-modal-content { padding: 11px 3vw 14px 3vw;}
}

/*////màu sắc nút*/


.ics-btn-danger {
    background: linear-gradient(90deg,#fc3d5c 10%,#e73344 100%) !important;
    color: #fff !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px #fc3d5c27;
    transition: background 0.16s, box-shadow 0.16s;
}
.ics-btn-danger:hover {
    background: linear-gradient(90deg,#e73344 10%,#fc3d5c 100%) !important;
    box-shadow: 0 2px 22px #fc3d5c57;
}

/* ==== DASHBOARD FORM ĐẸP, KHÔNG BOX-SHADOW ==== */
.pln-dashboard {
    width: 100%;
    max-width: 1600px;
    margin: 38px auto 0 auto;
    padding: 36px 24px 28px 24px;
    background: #181a35;
    border-radius: 22px;
    color: #e9f6ff;
    font-size: 1.07rem;
}

.pln-dashboard h2 {
    background: linear-gradient(90deg,#28eaff 20%,#53c7ff 65%,#2fffad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; text-fill-color: transparent;
    font-size: 2.3rem; font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
}
.ics-dashboard-notice {
    color: #32d6ff;
    font-weight: 600;
    padding: 5px 0 12px 2px;
    margin-bottom: 13px;
    font-size: 1.11rem;
    letter-spacing: 0.1px;
}

#pln-filter-form {
    font-size: 0.97rem;         /* hoặc 15px */
    padding: 13px 18px 13px 18px;
    border-radius: 15px;
    background: linear-gradient(90deg,#191b3a 70%, #203061 100%);
    border: 1px solid #22e8ff3a;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 22px;
}

#pln-filter-form label {
    font-weight: 700;
    color: #22ffe0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em; /* Kế thừa */
}

#pln-filter-form input[type="date"] {
    background: #181a2f;
    color: #fff;
    border: 2px solid #22ffe0;
    border-radius: 10px;
    padding: 8px 15px;
    min-width: 150px;
    font-size: 1em;
    transition: border 0.15s;
}
#pln-filter-form input[type="date"]:focus {
    border-color: #47f1ff;
    outline: none;
}

#pln-filter-form button[type="submit"] {
    background: linear-gradient(90deg,#1defff 10%,#2f8fff 90%);
    border: none;
    border-radius: 11px;
    padding: 8px 32px;
    font-size: 1em;
    font-weight: 700;
    color: #0e2a34;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    margin-left: 15px;
    box-shadow: none;
}

#pln-filter-form button[type="submit"]:hover {
    background: linear-gradient(90deg,#17f7cb 0,#15c6e7 100%);
    color: #fff;
}

/* Section title */
.pln-dashboard h3 {
    color: #24ffd9;
    font-size: 1.24rem;
    font-weight: 700;
    margin-bottom: 13px;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .pln-dashboard { max-width: 99vw; padding: 12px 1vw 15px 1vw; }
    .pln-dashboard h2 { font-size: 1.27rem;}
    form#pln-filter-form { font-size: 1rem; padding: 10px 7px 11px 7px;}
}
@media (max-width: 700px) {
    .pln-dashboard { max-width: 100vw; padding: 7px 0 11px 0;}
    .pln-dashboard h2 { font-size: 1rem;}
    .pln-dashboard h3 { font-size: 1.09rem; }
    form#pln-filter-form { flex-direction: column; gap: 7px; padding: 9px 3vw 12px 3vw;}
    form#pln-filter-form button[type="submit"] { margin-left: 0; width: 100%;}
}

#pln-filter-form label > input[type="date"] {
    margin-left: 10px;
}

/*///css nút trong dashboard//*/

.ics-action-btn {
    font-weight: 600;
    border-radius: 5px;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease;
    user-select: none;
    text-align: center;
    display: inline-block;
}

.ics-action-btn:hover {
    filter: brightness(1.12);
}

.ics-action-btn.red {
    background-image: linear-gradient(45deg, #f44336, #e91e63);
}

.ics-action-btn.green {
    background-image: linear-gradient(45deg, #4caf50, #1de9b6);
}

.ics-action-btn.blue {
    background-image: linear-gradient(45deg, #2196f3, #00b0ff);
}

.ics-action-btn.green2 {
    background-image: linear-gradient(45deg, #d7d7d7, #ffffff);
}

.ics-action-btn.teal {
    background-image: linear-gradient(45deg, #26a69a, #00bfa5);
}

.ics-action-btn.yellow {
    background-image: linear-gradient(45deg, #ffeb3b, #ffc107);
    color: #000;
}

.pln-table-wrapper table {
  font-size: 10px; /* Thay đổi thành cỡ chữ bạn muốn */
  font-weight: normal; /* hoặc bold, nếu muốn */
  line-height: 1.4; /* điều chỉnh khoảng cách dòng */
}


/*/// cỡ chữ trong bảng của dashbroad pannel*/


/* Thu nhỏ font các bảng trong dashboard */
.pln-dashboard .ics-table td,
.pln-dashboard .ics-table th {
    font-size: 12px;
    padding: 6px 8px;
}



/*//popup dashboard*/




.ics-modal-inner {
  background: #fff;
  padding: 28px 24px;
  max-width: 700px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

/* Tiêu đề popup */
.ics-modal-inner h3 {
  color: #0d47a1; /* xanh đậm */
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 24px;
}

/* Các dòng thông tin */
.ics-modal-inner > div {
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.ics-modal-inner > div > b {
  font-weight: 700;
  color: #555;
}

/* Bảng trong popup */
.ics-modal-inner table.ics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.ics-modal-inner table.ics-table th,
.ics-modal-inner table.ics-table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 13px;
  color: #222;
  background: #fafafa;
}

.ics-modal-inner table.ics-table thead th {
  background: #0d47a1;
  color: #fff;
  font-weight: 700;
}

.ics-modal-inner table.ics-table tbody tr:nth-child(odd) td {
  background: #f0f4ff;
}

/* Nút đóng */
.ics-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.7);
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.ics-modal-close:hover {
  background-color: #b71c1c;
  box-shadow: 0 4px 12px rgba(183, 28, 28, 0.9);
}

/*/scroll bảng*/

.ics-modal-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/*///css ghi chu khieu nai*/

#complaint-notes-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-left: 18px; /* để danh sách có khoảng cách bên trái */
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
}

#complaint-notes-list li {
  background-color: #e8f0fe;
  margin-bottom: 6px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  color: #222;
  line-height: 1.4;
  list-style-type: disc;
}

#complaint-new-note {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  border: 1px solid #888;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#complaint-new-note:focus {
  outline: none;
  border-color: #0d47a1;
  box-shadow: 0 0 6px rgba(13, 71, 161, 0.5);
  background-color: #fff;
}

#complaint-add-note {
  margin-top: 8px;
  padding: 8px 20px;
  background-color: #0d47a1;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

#complaint-add-note:hover {
  background-color: #07428a;
}

#complaint-note-status {
  margin-top: 6px;
  font-size: 13px;
  color: green;
  display: none;
}

.ics-modal-inner {
  max-height: 90vh; /* Giới hạn chiều cao tối đa popup là 90% chiều cao viewport */
  overflow-y: auto; /* Hiện thanh cuộn dọc nếu nội dung vượt */
  box-sizing: border-box;
  padding-bottom: 20px; /* Khoảng đệm dưới cho nút Cập nhật hoặc phần footer */
}

.ics-modal-table-wrapper {
  max-height: 250px; /* Giới hạn chiều cao cho bảng chi tiết */
  overflow-y: auto; /* Cho phép scroll trong bảng nếu nhiều dòng */
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#complaint-notes-list {
  max-height: 100px; /* Giới hạn chiều cao cho list ghi chú */
  overflow-y: auto; /* Scroll khi ghi chú dài */
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  list-style-position: inside;
}


/*///css nút phân trang dashboard*/

.pln-pagination {
  margin-top: 10px;
  font-size: 14px;
  user-select: none;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding-left: 10px;
  flex-wrap: wrap;
}

.pln-pagination a,
.pln-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pln-pagination a {
  background-color: #213145; /* màu xanh dương đậm */
  color: #fff;
  border: 1px solid transparent;
}

.pln-pagination a:hover {
  background-color: #155ab6; /* xanh đậm hơn khi hover */
  border-color: #0f3c79;
  color: #fff;
}

.pln-pagination .current {
  background-color: #0f3c79; /* màu xanh đậm cho trang hiện tại */
  color: #e0e0e0;
  cursor: default;
  border: 1px solid #0f3c79;
}

.pln-pagination .pln-page-prev,
.pln-pagination .pln-page-next {
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  background-color: #0f4ab8;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.pln-pagination .pln-page-prev:hover,
.pln-pagination .pln-page-next:hover {
  background-color: #0a2e6a;
  border-color: #082254;
  color: #fff;
}



/*///css báo cáo Block 0///*/


/* ==== Khung tổng === */
.pln-report-summary-wrapper {
    background: rgba(21, 21, 54, 0.75);
    border: 1px solid rgba(32, 197, 221, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    color: #fff;
}

/* ==== Form filter + input === */
.pln-report-summary-wrapper form label {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.pln-report-summary-wrapper input[type="date"],
.pln-report-summary-wrapper select {
    background: #111a3a;
    border: 1px solid rgba(32, 197, 221, 0.4);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    margin-left: 6px;
    transition: all 0.2s ease;
}

.pln-report-summary-wrapper input[type="date"]:focus,
.pln-report-summary-wrapper select:focus {
    border-color: #20c5dd;
    outline: none;
    box-shadow: 0 0 4px rgba(32, 197, 221, 0.5);
}

/* ==== Button submit ==== */
.pln-report-summary-wrapper button[type="submit"] {
    background: linear-gradient(135deg, #20c5dd, #1f85ff);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pln-report-summary-wrapper button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 197, 221, 0.4);
}

/* ==== Kết quả báo cáo ==== */
#sales-report-result,
#packing-report-result {
    background: rgba(17, 26, 58, 0.6);
    border: 1px solid rgba(32, 197, 221, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin-top: 10px;
    margin-bottom: 16px; /* <-- thêm dòng này */
    line-height: 1.6;
}

/* ==== Text h3 ==== */
.pln-report-summary-wrapper h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #20c5dd;
}


#sales-report-result:empty,
#packing-report-result:empty {
    display: none;
}


/* ==== STAFF BAR - COPY FULL ==== */

body.pln-user-logged-in { padding-top: 54px !important; }
body:not(.pln-user-logged-in) { padding-top: 0 !important; }

.pln-staff-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: #181f34;
    color: #39f6ff;
    padding: 0 18px 0 10px;
    height: 54px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 16px 0 #171e37a8;
    font-size: 16px;
    font-family: inherit;
    /*border-radius: 0 0 16px 16px;*/
}
.pln-staff-bar__menu-toggle {
    background: none;
    border: none;
    color: #31a2fd;
    font-size: 28px;
    margin-right: 16px;
    display: none;
    cursor: pointer;
    transition: color .2s;
    padding: 5px 10px 5px 4px;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}
.pln-staff-bar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.pln-staff-bar__item {
    color: #31a2fd;
    background: transparent;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s, color .15s;
    padding: 6px 15px;
    font-size: 16px;
    display: inline-block;
}
.pln-staff-bar__item:hover,
.pln-staff-bar__item:focus {
    color: #fff;
    background: #006aff;
    text-decoration: none;
}
.pln-staff-bar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}
.pln-user-avatar {
    background: #181f34;
    color: #00eaff;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    margin-right: 3px;
    border: 2px solid #23b3dd;
}
.pln-user-name {
    color: #fff;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}
.pln-logout-btn {
    color: #fff;
    background: #13c2b5;
    padding: 7px 18px 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: none;
    margin-left: 8px;
    transition: background .14s;
    box-shadow: 0 0 0 2px #0e778d2e;
    display: inline-block;
}
.pln-logout-btn:hover,
.pln-logout-btn:focus {
    background: #f33070;
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
    .pln-staff-bar { font-size: 13px; height: 42px; padding: 0 7px 0 3px;}
    .pln-staff-bar__nav { gap: 2px; }
    .pln-staff-bar__item { padding: 4px 7px; font-size: 13px;}
    .pln-user-avatar { font-size: 13px; width: 20px; height: 20px;}
    .pln-user-name { font-size: 12px; }
    .pln-logout-btn { padding: 4px 12px 4px 10px; font-size: 12px; border-radius: 6px;}
}

@media (max-width: 650px) {
    .pln-staff-bar {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        padding: 0;
        /*border-radius: 0 0 18px 18px;*/
        min-height: 42px;
    }
    .pln-staff-bar__menu-toggle {
        display: block;
        position: absolute;
        left: 11px;
        top: 0px;
        z-index: 21;
    }
    .pln-staff-bar__nav {
        flex-direction: column;
        align-items: flex-start;
        background: #222f4d;
        margin: 0;
        padding: 10px 14px 12px 14px;
        border-radius: 0 0 18px 18px;
        width: 100vw;
        max-width: 99vw;
        position: absolute;
        top: 44px;
        left: 0;
        display: none;
        box-shadow: 0 6px 28px 0 #161e37a6;
        border-top: 1.5px solid #0cecff33;
        margin-top: 4px;
    }
    .pln-staff-bar__nav.is-open { display: flex; }
    .pln-staff-bar__item {
        margin: 2px 0; width: 100%; text-align: left; border-radius: 6px; font-size: 15px;
        padding: 10px 0 10px 18px;
    }
    .pln-staff-bar__user {
        justify-content: flex-end;
        padding: 4px 10px;
        border-top: 1px solid #233c57;
        margin: 0;
        background: #181f34;
    }
}

/* Staff bar luôn trên cùng */
.pln-staff-bar { z-index: 99999; }

/* Đảm bảo header theme (nếu fixed) không bị lệch khi chưa đăng nhập */
body:not(.pln-user-logged-in) .site-header,
body:not(.pln-user-logged-in) .main-header {
    top: 0 !important;
}

/* ==== END STAFF BAR ==== */




/*// Màu sắc bảng Log ///*/

/* Thu nhỏ chữ riêng bảng log user */
.pln-log-table {
    font-size: 11px;
}

.pln-log-table th,
.pln-log-table td {
    padding: 5px 7px;
    line-height: 1.3;
}

/* Màu xanh nõn chuối cho cột thời gian */
.pln-log-table td:first-child {
    color: #00ff86 ;
    font-weight: 400;
}


/* Màu đỏ cho cột User */
.pln-log-table td:nth-child(2) {
    color: #e53e3e;
    font-weight: 600;
}


.pln-delete-log-btn {
    background: linear-gradient(45deg, #f44336, #e91e63);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pln-delete-log-btn:hover {
    opacity: 0.85;
}



/*/// bieu do chart///*/


/* PLN Dashboard Chart CSS - Thêm vào style.css */

.pln-dashboard-chart {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #475569;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pln-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pln-stat-card {
    background: #0f172a;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.pln-stat-card:hover {
    border-color: #4ECDC4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
}

.pln-stat-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.pln-stat-content {
    flex: 1;
}

.pln-stat-number {
    font-size: 20px;
    font-weight: 600;
    color: #4ECDC4;
    margin-bottom: 2px;
}

.pln-stat-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.pln-chart-container {
    background: #0f172a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #334155;
}

.pln-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pln-chart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #E2E8F0;
}

.pln-chart-controls {
    display: flex;
    gap: 8px;
    background: rgba(78, 205, 196, 0.05);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.1);
}

.pln-chart-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #94A3B8;
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pln-chart-btn:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
}

.pln-chart-btn.active {
    background: #4ECDC4;
    color: #1e293b;
    font-weight: 600;
}

.pln-chart-wrapper {
    position: relative;
    height: 300px;
}

#pln-dashboard-chart {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pln-dashboard-chart {
        padding: 16px;
        margin: 16px 0;
    }
    
    .pln-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .pln-stat-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .pln-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .pln-stat-number {
        font-size: 16px;
    }
    
    .pln-stat-label {
        font-size: 11px;
    }
    
    .pln-chart-container {
        padding: 16px;
    }
    
    .pln-chart-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pln-chart-header h3 {
        font-size: 16px;
        text-align: center;
    }
    
    .pln-chart-controls {
        justify-content: center;
    }
    
    .pln-chart-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .pln-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pln-stat-card {
        flex-direction: row;
        text-align: left;
    }
}


/* PLN Dashboard Finance CSS - Thêm vào style.css */

.pln-finance-overview {
    background: #0f172a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #334155;
}

.pln-finance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pln-finance-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #E2E8F0;
}

.pln-finance-controls {
    display: flex;
    gap: 6px;
    background: rgba(78, 205, 196, 0.05);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.1);
    flex-wrap: wrap;
}

.pln-finance-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #94A3B8;
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pln-finance-btn:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
}

.pln-finance-btn.active {
    background: #4ECDC4;
    color: #1e293b;
    font-weight: 600;
}

.pln-finance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.pln-finance-card {
    background: rgba(78, 205, 196, 0.05);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(78, 205, 196, 0.1);
    transition: all 0.2s ease;
}

.pln-finance-card:hover {
    border-color: #4ECDC4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
}

.pln-finance-total {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.2);
}

.pln-finance-paid {
    background: rgba(150, 206, 180, 0.1);
    border-color: rgba(150, 206, 180, 0.2);
}

.pln-finance-remaining {
    background: rgba(254, 202, 87, 0.1);
    border-color: rgba(254, 202, 87, 0.2);
}

.pln-finance-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.pln-finance-content {
    flex: 1;
}

.pln-finance-number {
    font-size: 18px;
    font-weight: 600;
    color: #4ECDC4;
    margin-bottom: 2px;
}

.pln-finance-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.pln-finance-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.pln-breakdown-card {
    background: #1e293b;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.pln-breakdown-card:hover {
    border-color: #4ECDC4;
    transform: translateY(-1px);
}

.pln-breakdown-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 4px;
}

.pln-breakdown-content {
    flex: 1;
}

.pln-breakdown-number {
    font-size: 16px;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 1px;
}

.pln-breakdown-label {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 500;
}

.pln-finance-chart-container {
    background: rgba(78, 205, 196, 0.02);
    border-radius: 6px;
    padding: 16px;
    border: 1px solid rgba(78, 205, 196, 0.1);
}

.pln-finance-chart-wrapper {
    position: relative;
    height: 250px;
}

#pln-finance-chart {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive cho Finance */
@media (max-width: 768px) {
    .pln-finance-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pln-finance-header h3 {
        text-align: center;
        font-size: 16px;
    }
    
    .pln-finance-controls {
        justify-content: center;
    }
    
    .pln-finance-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pln-finance-card {
        padding: 12px;
    }
    
    .pln-finance-number {
        font-size: 16px;
    }
    
    .pln-breakdown-card {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .pln-breakdown-number {
        font-size: 14px;
    }
    
    .pln-finance-chart-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .pln-finance-controls {
        flex-direction: column;
    }
    
    .pln-finance-btn {
        text-align: center;
    }
    
    .pln-breakdown-card {
        flex-direction: row;
        text-align: left;
    }
}



/* PLN Finance Modal CSS - Thêm vào style.css */

.pln-finance-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.pln-finance-modal {
    background: #1e293b;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid #334155;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pln-finance-modal-header {
    background: #0f172a;
    padding: 20px 24px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pln-finance-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #E2E8F0;
}

.pln-modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pln-modal-close:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
}

.pln-finance-modal-content {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.pln-no-orders {
    text-align: center;
    color: #94A3B8;
    font-size: 16px;
    padding: 40px 20px;
}

.pln-orders-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.pln-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #334155;
}

.pln-orders-table th {
    background: #334155;
    color: #E2E8F0;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #475569;
}

.pln-orders-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #334155;
    color: #E2E8F0;
    font-size: 13px;
    vertical-align: middle;
}

.pln-orders-table tr:last-child td {
    border-bottom: none;
}

.pln-orders-table tr:hover {
    background: rgba(78, 205, 196, 0.05);
}

.pln-paid {
    color: #4ECDC4 !important;
    font-weight: 600;
}

.pln-remaining.pln-debt {
    color: #FECA57 !important;
    font-weight: 600;
}

.pln-remaining.pln-clear {
    color: #96CEB4 !important;
    font-weight: 600;
}

.pln-status-completed {
    background: rgba(78, 205, 196, 0.2);
    color: #4ECDC4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pln-status-cod {
    background: rgba(69, 183, 209, 0.2);
    color: #45B7D1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pln-status-unpaid {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pln-orders-summary {
    background: rgba(78, 205, 196, 0.05);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(78, 205, 196, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pln-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pln-summary-item span {
    color: #94A3B8;
    font-size: 14px;
}

.pln-summary-item strong {
    color: #E2E8F0;
    font-size: 15px;
    font-weight: 600;
}

/* Click indicator for finance cards */
.pln-breakdown-card {
    cursor: pointer !important;
    position: relative;
}

.pln-breakdown-card::after {
    content: '👆';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pln-breakdown-card:hover::after {
    opacity: 0.6;
}

/* Responsive cho Modal */
@media (max-width: 768px) {
    .pln-finance-modal-overlay {
        padding: 10px;
    }
    
    .pln-finance-modal {
        max-height: 95vh;
    }
    
    .pln-finance-modal-header {
        padding: 16px 20px;
    }
    
    .pln-finance-modal-header h3 {
        font-size: 16px;
    }
    
    .pln-finance-modal-content {
        padding: 16px;
    }
    
    .pln-orders-table th,
    .pln-orders-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .pln-orders-table th:nth-child(3),
    .pln-orders-table td:nth-child(3),
    .pln-orders-table th:nth-child(4),
    .pln-orders-table td:nth-child(4) {
        display: none;
    }
    
    .pln-orders-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .pln-summary-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .pln-orders-table th:nth-child(6),
    .pln-orders-table td:nth-child(6),
    .pln-orders-table th:nth-child(9),
    .pln-orders-table td:nth-child(9) {
        display: none;
    }
}


/*////////*/

/* ===== PLN ECOM PANEL - UI MODERN ===== */


.pln-sync-btns-row {
    display: flex;
    gap: 18px;
    width: 100%;
    justify-content: center;
    margin: 32px auto 0 auto;
}

.pln-sync-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161616;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 22px;
    font-size: 1.12rem;
    font-weight: 600;
    box-shadow: 0 2px 12px 0 #0002;
    cursor: pointer;
    transition: background 0.18s, color 0.16s;
    text-align: center;
    letter-spacing: 0.01em;
}
.pln-sync-btn:hover {
    background: #31a2fd;
    color: #fff;
}





.pln-ecom-panel {
    background: #1e2a3a;
    border-radius: 12px;
    padding: clamp(18px, 4vw, 32px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(64, 224, 208, 0.1);
    color: #e0e6ed;
    font-size: 1.05rem;
    margin: 30px auto;
    max-width: 1500px;
    border: 1px solid #2d3748;
    font-family: 'Inter', Arial, sans-serif;
}

/* Headings */
.pln-ecom-panel h2 {
    color: #31a2fd;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 24px 0;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
    letter-spacing: 0.5px;
}

.pln-ecom-panel h3 {
    color: #31a2fd;
    font-size: clamp(1.15rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin: 24px 0 16px 0;
}

/* Form Elements */
.pln-ecom-panel input[type="text"],
.pln-ecom-panel input[type="email"],
.pln-ecom-panel textarea,
.pln-ecom-panel select {
    width: 100%;
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    border-radius: 6px;
    font-size: 1rem;
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.pln-ecom-panel select {
    min-width: 180px;
    color: #1e293b;
    background: #e2e8f0;
    font-weight: 500;
}
.pln-ecom-panel input:focus,
.pln-ecom-panel textarea:focus,
.pln-ecom-panel select:focus {
    outline: none;
    border-color: #31a2fd;
    background: #374151;
    box-shadow: 0 0 0 2px rgba(64, 224, 208, 0.18);
}
.pln-ecom-panel textarea {
    min-height: 100px;
    resize: vertical;
}
.pln-ecom-panel input[type="file"] {
    margin: 8px 0 16px 0;
    color: #31a2fd;
}

/* Buttons */
.pln-ecom-panel .ics-btn {
    background: linear-gradient(90deg, #1e90ff 0%, #31a2fd 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.15);
    transition: all 0.25s cubic-bezier(.4,2,.6,1);
    cursor: pointer;
}
.pln-ecom-panel .ics-btn:hover {
    background: linear-gradient(90deg, #31a2fd 0%, #1e90ff 100%);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.24);
    transform: translateY(-1px);
}
.pln-ecom-panel .ics-btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.23);
}
.pln-ecom-panel .ics-btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.34);
}

/* Image */
.pln-ecom-panel img {
    margin-top: 12px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    max-width: 100%;
    height: auto;
    border: 1px solid #4a5568;
}

/* File/Notice */
.pln-ecom-panel input[type="file"] {
    padding: 4px;
    background: none;
    color: #31a2fd;
}

/* Responsive */
@media (max-width: 768px) {
    .pln-ecom-panel {
        margin: 18px 2vw;
        padding: 12px 3vw;
        font-size: 1rem;
    }
    .pln-ecom-panel h2 { font-size: 1.15rem; }
    .pln-ecom-panel h3 { font-size: 1rem; }
}

        
        
        
/* ==== BẢNG GIÁ SẢN PHẨM DOANH NGHIỆP (CHỈ XEM) ==== */
.pln-shop-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px 0 28px 0;
    color: #e6f0fa;
    font-size: 11px;
    font-family: 'Inter', Arial, sans-serif;
}
.pln-shop-title {
    color: #27e3fc;
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: bold;
    text-shadow: 0 2px 10px #16b6e94d;
    letter-spacing: 0.5px;
}
.pln-shop-filter { 
    margin-bottom: 14px; 
    text-align:right;
}
.pln-shop-item {
    background: #182435;
    border-radius: 10px;
    margin-bottom: 22px;
    border: 1px solid #283247;
    box-shadow: 0 2px 18px #1dd6fb11;
    overflow: hidden;
    position: relative;
}
.pln-shop-header { 
    display: flex; align-items: center;
    gap: 18px;
    padding: 18px 24px 10px 24px; 
    border-bottom: 1px solid #222e47;
    background: transparent;
}
.pln-shop-logo-wrap {
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
}
.pln-shop-logo { 
    width: 64px; height: 64px; object-fit: contain;
    border-radius: 12px;
    border: 2px solid #23e3fccc;
    background: #101a29;
    box-shadow: 0 2px 8px #0ff3ff22;
    margin-right: 13px;
    transition: box-shadow 0.2s;
}
.pln-shop-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pln-shop-name { color: #23c3fa; font-size: 1.2rem; font-weight: 700; margin-bottom: 2px; letter-spacing: 0.1px; }
.pln-shop-desc { color: #b6e8fd; font-size: 11px; margin-bottom: 3px; margin-top: 1px; line-height: 1.32; max-width: 90vw; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
.pln-shop-meta { font-size: 10.5px; color: #aeeeff; margin-top: 1px;}
.pln-shop-meta span { margin-right: 14px; color: #aeeeff; font-size: 10.5px;}
.pln-shop-content { padding: 0 10px 14px 10px; }
.pln-product-table { width: 100%; border-radius: 7px; background: #172033; font-size: 10.5px; }
.pln-product-table th, .pln-product-table td { padding: 4px 5px; text-align: center; border-bottom: 1px solid #22305a;}
.pln-product-table th { background: #1a2a46; color: #26edfd; font-weight: 700; font-size: 11px; letter-spacing: 0.3px;}
.pln-product-table tr:last-child td { border-bottom: none;}
.pln-product-stock.in-stock { color: #18ffad; font-weight: 700;}
.pln-product-stock.out-stock { color: #fd5353; font-weight: 700;}

@media (max-width: 900px) {
    .pln-shop-wrapper { max-width: 98vw; }
    .pln-shop-header { padding: 12px 3vw 9px 3vw; }
}
@media (max-width: 600px) {
    .pln-shop-title { font-size: 1rem;}
    .pln-shop-header { flex-direction: column; gap:8px; padding: 7px 5vw 7px 5vw; }
    .pln-shop-logo-wrap { min-width: 38px; height: 38px; }
    .pln-shop-logo { width: 38px; height: 38px; border-radius: 6px; }
    .pln-shop-name { font-size: 1rem; }
    .pln-shop-desc { font-size: 9.5px; max-width: 60vw; }
    .pln-shop-content { padding: 0 2px 11px 2px; }
    .pln-product-table th, .pln-product-table td { font-size: 9.2px; padding: 4px 2px; }
}

/* ===== NÚT & POPUP LỊCH SỬ GIAO DỊCH SHOP ===== */
.pln-shop-view-history {
    margin: 10px 0 5px 0;
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    font-size: 15px;
    background: linear-gradient(90deg,#20f7ff 60%,#15d7f2 100%);
    color: #17455e;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px #12f9f944;
    transition: background 0.18s, color 0.18s;
}
.pln-shop-view-history:hover {
    background: linear-gradient(90deg,#1bc9ff 60%,#11badb 100%);
    color: #114a5e;
}
.pln-shop-history-modal {
    position: fixed; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    background: rgba(9,22,40,0.80);
    z-index: 9999;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 32px 7vw;
}
.pln-shop-history-modal-inner {
    background: #1a2336;
    border-radius: 16px;
    max-width: 720px;
    width: 98vw;
    padding: 28px 20px 16px 20px;
    box-shadow: 0 4px 28px #19baff33;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 290px;
    max-height: 90vh;
    overflow-y: auto;
}
.pln-shop-history-modal h3 {
    color: #25e0ff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}
.pln-close-history-modal {
    position: absolute;
    top: 12px; right: 16px;
    color: #00f0d6;
    background: #172133;
    border: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 7px;
    padding: 6px 18px;
    cursor: pointer;
    box-shadow: 0 1px 7px #10fbe230;
    transition: background 0.18s, color 0.18s;
    z-index: 10;
    user-select: none;
}
.pln-close-history-modal:hover {
    background: #224877;
    color: #fff;
}
.pln-shop-history-table {
    width: 100%;
    border-radius: 7px;
    background: #19263c;
    border: 1px solid #234266;
    margin-bottom: 10px;
    overflow-x: auto;
}
.pln-shop-history-table th, .pln-shop-history-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #2a4365;
    font-size: 13px;
    font-family: 'Inter', Arial, sans-serif;
    white-space: nowrap;
}
.pln-shop-history-table th {
    background: #182e48;
    color: #24d0fd;
    font-weight: 700;
    font-size: 13.2px;
    letter-spacing: 0.3px;
}
.pln-shop-history-table tr:last-child td {
    border-bottom: none;
}
.pln-shop-history-detail-btn {
    padding: 8px 22px;
    background: linear-gradient(90deg,#23f5be 60%,#12dcf5 100%);
    border: none;
    color: #173549;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 2px;
    box-shadow: 0 2px 6px #19baff22;
    transition: background 0.18s, color 0.18s;
}
.pln-shop-history-detail-btn:hover {
    background: linear-gradient(90deg,#17e3ff 60%,#10cba6 100%);
    color: #162a3c;
}
.pln-shop-history-detail {
    margin-top: 10px;
    background: #192844;
    border-radius: 7px;
    padding: 15px 10px;
    color: #f3fbfe;
    font-size: 13px;
    box-shadow: 0 2px 8px #1a98e840;
    border: 1px solid #1e364f;
    text-align: left;
}
.pln-shop-history-detail ul {
    margin: 0 0 0 10px; padding: 0;
    list-style: square inside;
}
.pln-shop-history-detail li {
    margin: 2px 0 2px 0; font-size: 13px; color: #ffffff;
}

/* ===== Scrollbar đẹp cho popup ===== */
.pln-shop-history-modal-inner::-webkit-scrollbar {
    width: 8px;
}
.pln-shop-history-modal-inner::-webkit-scrollbar-thumb {
    background: #18c6fc;
    border-radius: 10px;
}
.pln-shop-history-modal-inner::-webkit-scrollbar-track {
    background: #122134;
}

/* ===== Ẩn nền khi đóng modal (bắt buộc JS phải xóa modal khi đóng) ===== */
body.pln-modal-open {
    overflow: hidden;
}

/* --- Thanh tìm kiếm sản phẩm trong mỗi box cửa hàng --- */
.pln-product-search-paginate {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.pln-shop-product-search {
    padding: 6px 14px;
    border-radius: 5px;
    border: 1px solid #44e4ff;
    background: #181f2a;
    color: #e8f7ff;
    font-size: 15px;
    min-width: 190px;
    max-width: 320px;
    transition: border .16s, box-shadow .16s;
    outline: none;
}
.pln-shop-product-search:focus {
    border: 1.5px solid #18c6fc;
    box-shadow: 0 0 3px #20dbff66;
}

/* --- Nút phân trang sản phẩm trong từng box --- */
.pln-shop-prev-btn,
.pln-shop-next-btn {
    background: #1a2537;
    border: none;
    color: #00d0ff;
    padding: 7px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: background .18s, color .18s, box-shadow .18s;
    box-shadow: 0 2px 8px 0 #00b1ff18;
}
.pln-shop-prev-btn:hover,
.pln-shop-next-btn:hover {
    background: #09befc;
    color: #fff;
    box-shadow: 0 3px 12px 0 #22c7ff30;
}

/* --- Thông tin trang hiện tại --- */
.pln-shop-page-info {
    color: #44e4ff;
    font-size: 15.5px;
    font-weight: 500;
    min-width: 90px;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.5px;
    background: none;
}

/* --- Responsive: dồn dọc trên mobile --- */
@media (max-width: 600px) {
    .pln-product-search-paginate {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .pln-shop-product-search {
        width: 100%;
        min-width: 0;
    }
    .pln-shop-page-info {
        margin: 4px 0;
    }
}








/*///////user-dashboard tài chính////*/


/* Modal Overlay */
.ics-qr-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: icsFadeIn .18s;
}

/* Modal Inner Box */
/* Modal Inner Box QR */
.ics-qr-modal-inner {
  background: #fff;
  padding: 36px 32px 24px 32px;
  border-radius: 14px;
  min-width: 340px;
  max-width: 96vw;
  box-shadow: 0 8px 32px rgba(25,83,168,0.10), 0 1.5px 6px rgba(0,0,0,0.05);
  position: relative;
  animation: icsScaleIn .2s;
}
@keyframes icsScaleIn {
  from { transform: scale(.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Modal Title */
.ics-qr-modal-inner h3 {
  margin: 0 0 18px 0;
  font-size: 22px;
  color: #1953a8;
  font-weight: 700;
  padding-top: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Close Button */
.ics-qr-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 4px 18px;
  border: none;
  background: #f43f5e;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .17s;
  box-shadow: 0 2px 8px rgba(244,63,94,0.08);
}
.ics-qr-modal-close:hover {
  background: #b91c1c;
}

/* Input tài chính */
#input-paid {
  width: 100%;
  padding: 8px 12px;
  font-size: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  margin-bottom: 4px;
  background: #f8fafc;
  transition: border .15s;
}
#input-paid:focus {
  border-color: #38bdf8;
  background: #fff;
}

/* Lưu và Đóng */
#btn-save-paid {
  background: #1953a8;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(25,83,168,0.09);
  transition: background .17s;
}
#btn-save-paid:hover {
  background: #2563eb;
}

/* Responsive cho mobile */
@media (max-width: 600px) {
  .ics-modal-inner {
    padding: 20px 8vw 18px 8vw;
    min-width: unset;
    max-width: 98vw;
  }
  .ics-modal-inner h3 {
    font-size: 17px;
  }
  .ics-modal-close {
    top: 8px;
    right: 8px;
    padding: 3px 11px;
    font-size: 13px;
  }
}

/*///////css cho xem chi tiet don phan thanh toan///*/


.ics-paid-success {
    color: #059669;
    background: #e7fbe8;
    padding: 2px 10px 2px 8px;
    border-radius: 8px;
    display: inline-block;
}
.ics-paid-warning {
    color: #eab308;
    background: #fef9c3;
    padding: 2px 10px 2px 8px;
    border-radius: 8px;
    display: inline-block;
}
.ics-paid-over {
    color: #2563eb;
    background: #e0e7ff;
    padding: 2px 10px 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

/*////css qr dong///*/


/* Fix khoảng cách header với nút Đóng */
.ics-modal-inner h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 24px !important;
  font-weight: 800;
  color: #1953a8;
  letter-spacing: 0.5px;
  /* Thêm padding-top cho giãn cách nút đóng */
  padding-top: 20px;
  text-align: left;
}

.ics-modal-close {
  background: #f43f5e;
  color: #fff;
  position: absolute;
  top: 18px !important;  /* Hạ xuống */
  right: 24px;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  font-size: 16px;
  padding: 5px 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px #f43f5e15;
  transition: background 0.12s;
  z-index: 1;
}
.ics-modal-close:hover {
  background: #e11d48;
}

/* QR Preview block căn giữa đẹp hơn */
#qr-preview-box {
  padding: 26px 0 8px 0 !important;
  border-radius: 18px;
  background: #f9fafb;
  box-shadow: 0 1px 8px #1953a81a;
  margin-bottom: 22px;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Phóng to QR code */
#qr-preview-box img {
  display: block;
  margin: 0 auto 18px auto;
  box-shadow: 0 1px 8px #2563eb1a;
  border-radius: 10px;
  max-width: 300px !important;
  width: 300px;
  height: auto;
}

/* Thông tin số tài khoản, nội dung dưới QR căn giữa và to rõ ràng */
#qr-preview-box span {
  display: block;
  margin: 2px auto;
  color: #1953a8;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
}

#qr-preview-box span.qr-note {
  color: #2563eb;
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}

@media (max-width: 500px) {
  .ics-modal-inner {
    min-width: unset;
    max-width: 97vw;
    padding: 8vw 2vw 5vw 2vw;
  }
  #qr-preview-box {
    padding: 5vw 0 2vw 0;
  }
  #qr-preview-box img {
    max-width: 90vw !important;
    width: 90vw;
  }
}



/*css qr co dinh*/

/* Style chung cho select dropdown */
.ics-qr-field select {
    width: 100%;
    padding: 11px 15px;
    border-radius: 11px;
    border: 1.5px solid #e0e7ef;
    background: #f3f6fc;
    font-size: 17px;
    font-weight: 700;
    color: #1953a8;
    outline: none;
    transition: border-color 0.16s ease, background 0.16s ease;
    box-shadow: 0 1.5px 6px #2563eb09;
    -webkit-appearance: none; /* Loại bỏ style mặc định của trình duyệt */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6H0z' fill='%232563eb'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    cursor: pointer;
}

/* Hiệu ứng khi focus */
.ics-qr-field select:focus {
    border-color: #2563eb;
    background: #fff;
    color: #2563eb;
}

/* Tương thích với các trình duyệt cũ hơn */
.ics-qr-field select::-ms-expand {
    display: none;
}


.ics-qr-config-form {
    max-width: 1500px;
    background: #fff;
    padding: 34px 38px 28px 38px;
    border-radius: 24px;
    box-shadow: 0 4px 32px #1e293b1a, 0 1px 8px #1e293b11;
    margin: 40px auto 40px auto;
    font-size: 16.5px;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.ics-qr-title {
    font-size: 27px;
    margin-top: 0;
    margin-bottom: 23px;
    font-weight: 900;
    color: #1953a8;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.21;
}
.ics-qr-success {
    color: #22c55e;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.ics-qr-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 19px;
}
.ics-qr-field label {
    font-weight: 800;
    color: #22223B;
    margin-bottom: 7px;
    font-size: 16.5px;
    opacity: 0.97;
}
.ics-qr-field input[type="text"] {
    width: 100%;
    padding: 11px 15px;
    border-radius: 11px;
    border: 1.5px solid #e0e7ef;
    background: #f3f6fc;
    font-size: 17px;
    font-weight: 700;
    outline: none;
    margin-bottom: 0;
    color: #1953a8;
    transition: border 0.16s;
    box-shadow: 0 1.5px 6px #2563eb09;
}
.ics-qr-field input[type="text"]:focus {
    border-color: #2563eb;
    background: #fff;
    color: #2563eb;
}

.ics-qr-note {
    margin-top: 4px;
    color: #888bb7;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ics-qr-btn {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    padding: 13px 0;
    border: none;
    border-radius: 11px;
    font-weight: 900;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 4px 16px #2563eb1b;
    margin: 10px 0 2px 0;
    width: 100%;
    letter-spacing: 0.01em;
    transition: background 0.14s;
}
.ics-qr-btn:hover { background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%); }

.ics-qr-meta {
    color: #8181a2;
    font-size: 13px;
    margin-top: 21px;
    text-align: center;
    letter-spacing: 0.01em;
}
.ics-qr-view-field {
    margin: 0 0 12px 0;
    color: #8181a2;
    font-size: 17px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .ics-qr-config-form {
    max-width: 97vw;
    padding: 6vw 2vw 6vw 2vw;
    font-size: 15.4px;
  }
  .ics-qr-title { font-size: 19px; }
}














/* CSS cho Search Box PLN Dashboard - Thêm vào style.css */

.pln-search-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #475569;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pln-search-form {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.pln-search-group {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.pln-search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pln-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pln-search-input::placeholder {
    color: #64748b;
}

.pln-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #475569;
    border: none;
    border-radius: 4px;
    color: #e2e8f0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pln-search-btn:hover {
    background: #64748b;
}

.pln-date-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pln-date-input {
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
    width: 140px;
}

.pln-date-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.pln-filter-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pln-filter-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.pln-search-status {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: #60a5fa;
    font-size: 13px;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pln-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pln-search-group {
        min-width: unset;
    }
    
    .pln-date-filters {
        justify-content: center;
    }
    
    .pln-date-input {
        width: 120px;
    }
}





/*////// lọc user dashboard panel đơn hàng tiến độ ////*/


/* CSS cho dropdown lọc tiến độ - Thêm vào style.css */

.pln-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pln-filter-select {
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23e2e8f0' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 32px;
}

.pln-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pln-filter-select option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 8px 12px;
}

/* Cập nhật search form để hiển thị tốt hơn */
.pln-search-form {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive cho filter group */
@media (max-width: 768px) {
    .pln-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pln-filter-group {
        justify-content: stretch;
    }
    
    .pln-filter-select {
        min-width: unset;
        width: 100%;
    }
    
    .pln-date-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pln-date-input {
        width: 120px;
        flex: 1;
        min-width: 120px;
    }
    
    .pln-filter-btn {
        flex: 0 0 auto;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .pln-search-form {
        gap: 8px;
    }
    
    .pln-date-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pln-date-input {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .pln-filter-btn {
        width: 100%;
    }
    
    .pln-filter-select {
        font-size: 12px;
        padding: 8px 10px;
        padding-right: 28px;
    }
}










/*///css đổi tiến độ ////*/


   .progress-change-container {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: 180px;
        width: 100%;
    }

    .progress-dropdown {
        font-size: 10px !important;
        padding: 3px 4px !important;
        min-width: 110px;
        max-width: 115px;
        flex-shrink: 0;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        background: white;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .progress-dropdown:hover {
        border-color: #1953a8;
        box-shadow: 0 0 0 1px rgba(25, 83, 168, 0.1);
    }

    .progress-dropdown:focus {
        outline: none;
        border-color: #1953a8;
        box-shadow: 0 0 0 2px rgba(25, 83, 168, 0.1);
    }

    .ics-change-progress-btn {
        font-size: 10px !important;
        padding: 3px 8px !important;
        background: #1953a8 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        font-weight: 500;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        min-width: 45px;
        max-width: 55px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .ics-change-progress-btn:hover {
        background: #1e40af !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .ics-change-progress-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .ics-change-progress-btn:disabled {
        background: #9ca3af !important;
        cursor: not-allowed !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .ics-change-progress-btn.changed {
        background: #dc2626 !important;
        animation: pulse-red 1.5s infinite;
    }

    .ics-change-progress-btn.changed:hover {
        background: #b91c1c !important;
    }

    @keyframes pulse-red {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.8; }
    }

    .ics-change-progress-btn.loading {
        background: #6b7280 !important;
        cursor: wait !important;
        position: relative;
    }

    .ics-change-progress-btn.loading::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 12px;
        margin: auto;
        border: 2px solid transparent;
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        top: 0; left: 0; right: 0; bottom: 0;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .progress-dropdown.status-empty { border-left: 3px solid #6b7280; }
    .progress-dropdown.status-0 { border-left: 3px solid #f59e0b; }
    .progress-dropdown.status-1 { border-left: 3px solid #10b981; }
    .progress-dropdown.status-3 { border-left: 3px solid #f97316; }
    .progress-dropdown.status-4 { border-left: 3px solid #10b981; }
    .progress-dropdown.status-5 { border-left: 3px solid #f97316; }

    .progress-dropdown.changed {
        transform: scale(1.02);
        box-shadow: 0 0 0 2px rgba(25, 83, 168, 0.2);
    }

    .progress-change-container.hover {
        transform: translateY(-1px);
    }

    .progress-change-container.has-changes {
        background: rgba(220, 38, 38, 0.05);
        border-radius: 6px;
        padding: 2px;
    }

    .ics-change-progress-btn.success { background: #10b981 !important; }
    .ics-change-progress-btn.error { background: #dc2626 !important; }

    @media (max-width: 768px) {
        .progress-change-container {
            flex-wrap: nowrap;
            gap: 4px;
            min-width: 160px;
        }
        .progress-dropdown {
            min-width: 100px;
            max-width: 105px;
            font-size: 9px !important;
            padding: 2px 3px !important;
        }
        .ics-change-progress-btn {
            font-size: 9px !important;
            padding: 2px 6px !important;
            min-width: 40px;
            max-width: 45px;
        }
    }
    
    
    /*///CSS popup thông báo log////*/
    

    #pln-notification-container {
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 999999;
        pointer-events: none;
        width: 350px;
        max-width: 90vw;
    }

    .pln-notification {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border-left: 5px solid #16a34a;
        margin-bottom: 12px;
        padding: 16px 20px;
        transform: translateX(-120%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        pointer-events: auto;
        position: relative;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .pln-notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .pln-notification.success {
        border-left-color: #16a34a;
        background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    }

    .pln-notification.error {
        border-left-color: #dc2626;
        background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    }

    .pln-notification.warning {
        border-left-color: #f59e0b;
        background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    }

    .pln-notification.info {
        border-left-color: #3b82f6;
        background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    }

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

    .pln-notification-title {
        font-weight: 600;
        font-size: 14px;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .pln-notification-icon {
        font-size: 16px;
        display: inline-block;
        animation: bounce 2s infinite;
    }

    .pln-notification.success .pln-notification-icon {
        color: #16a34a;
    }

    .pln-notification.error .pln-notification-icon {
        color: #dc2626;
    }

    .pln-notification.warning .pln-notification-icon {
        color: #f59e0b;
    }

    .pln-notification.info .pln-notification-icon {
        color: #3b82f6;
    }

    .pln-notification-close {
        background: none;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        font-size: 18px;
        padding: 0;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .pln-notification-close:hover {
        background: #f3f4f6;
        color: #6b7280;
    }

    .pln-notification-message {
        font-size: 13px;
        color: #4b5563;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .pln-notification-meta {
        font-size: 11px;
        color: #9ca3af;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding-top: 8px;
        margin-top: 8px;
    }

    .pln-notification-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: #16a34a;
        border-radius: 0 0 12px 0;
        transition: width linear;
        opacity: 0.8;
    }

    .pln-notification.success .pln-notification-progress {
        background: #16a34a;
    }

    .pln-notification.error .pln-notification-progress {
        background: #dc2626;
    }

    .pln-notification.warning .pln-notification-progress {
        background: #f59e0b;
    }

    .pln-notification.info .pln-notification-progress {
        background: #3b82f6;
    }

    @keyframes bounce {
        0%, 20%, 53%, 80%, 100% {
            transform: translate3d(0,0,0);
        }
        40%, 43% {
            transform: translate3d(0, -8px, 0);
        }
        70% {
            transform: translate3d(0, -4px, 0);
        }
        90% {
            transform: translate3d(0, -2px, 0);
        }
    }

    .pln-notification.hiding {
        animation: slideOutLeft 0.3s ease-in-out forwards;
    }

    @keyframes slideOutLeft {
        0% {
            transform: translateX(0);
            opacity: 1;
        }
        100% {
            transform: translateX(-120%);
            opacity: 0;
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        #pln-notification-container {
            left: 10px;
            right: 10px;
            width: auto;
            max-width: none;
        }
        
        .pln-notification {
            padding: 12px 16px;
        }
        
        .pln-notification-title {
            font-size: 13px;
        }
        
        .pln-notification-message {
            font-size: 12px;
        }
    }

    
    
    /*///css tổng quan bổ sung///*/
    
    
    
    .pln-finance-surplus {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.pln-finance-balanced {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}
    
    
    
    
    
    
    
    
            /* CSS cho nút Xuất Excel */
        .pln-export-btn {
            background: #16a34a !important;
            color: white !important;
            border: none !important;
            padding: 8px 16px !important;
            border-radius: 6px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            margin-left: 8px !important;
            white-space: nowrap !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        }

        .pln-export-btn:hover {
            background: #15803d !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
        }

        .pln-export-btn:active {
            transform: translateY(0) !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        }

        .pln-export-btn:disabled {
            background: #9ca3af !important;
            cursor: not-allowed !important;
            transform: none !important;
        }

        .pln-export-btn.loading {
            background: #6b7280 !important;
            cursor: wait !important;
            position: relative;
        }

        .pln-export-btn.loading::after {
            content: '';
            position: absolute;
            width: 14px;
            height: 14px;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            top: 0; left: 0; right: 0; bottom: 0;
        }

        .pln-export-status {
            margin-top: 8px;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
        }

        .pln-export-status.success {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

        .pln-export-status.error {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .pln-export-status.info {
            background: #dbeafe;
            color: #1d4ed8;
            border: 1px solid #bfdbfe;
        }

        @media (max-width: 768px) {
            .pln-date-filters {
                flex-wrap: wrap;
            }
            
            .pln-export-btn {
                margin-left: 0 !important;
                margin-top: 8px !important;
                width: 100% !important;
            }
        }
        
        
        
        
        
        
        
        
        
        
            /* CSS cho nút sửa giá và xóa sản phẩm */
    .ics-edit-price-btn, .ics-delete-item-btn {
        transition: all 0.2s ease;
        font-weight: bold;
        min-width: 28px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 1px;
    }
    
    .ics-edit-price-btn:hover {
        background: #1d4ed8 !important;
        transform: scale(1.05);
    }
    
    .ics-edit-price-btn.editing {
        background: #f59e0b !important;
        cursor: not-allowed;
        animation: pulse 1.5s infinite;
    }
    
    
    
    
    /* ===== CSS CHO POPUP CẬP NHẬT GIÁ BÁN SẢN PHẨM ===== */

/* Modal overlay cho popup sửa giá */
.ics-price-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease-out;
}

/* Container chính của popup */
.ics-price-modal-inner {
    background: #ffffff;
    padding: 20px 25px;
    min-width: 420px;
    max-width: 500px;
    width: 90vw;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

/* Tiêu đề popup */
.ics-price-modal h3 {
    margin: 0 0 14px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* Input nhập giá */
.ics-price-modal input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ics-price-modal input[type="number"]:focus {
    outline: none;
    border-color: #1953a8;
    box-shadow: 0 0 0 3px rgba(25, 83, 168, 0.1);
    background: #fafbfc;
}

.ics-price-modal input[type="number"]:hover {
    border-color: #d1d5db;
}

/* Input khi có lỗi */
.ics-price-modal input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: #fef2f2;
}

/* Label cho input */
.ics-price-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* Text mô tả nhỏ */
.ics-price-modal small,
.ics-price-modal .description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* Container cho các button */
.ics-price-modal .button-group {
    text-align: right;
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Button chung */
.ics-price-modal button {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Button Hủy */
.ics-price-modal .price-modal-close {
    background: #6b7280;
    color: #ffffff;
}

.ics-price-modal .price-modal-close:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Button Cập nhật */
.ics-price-modal #btn-update-price {
    background: #1953a8;
    color: #ffffff;
}

.ics-price-modal #btn-update-price:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 83, 168, 0.3);
}

/* Button khi đang loading */
.ics-price-modal #btn-update-price.updating {
    background: #f59e0b;
    cursor: not-allowed;
    opacity: 0.8;
}

.ics-price-modal #btn-update-price.updating:hover {
    transform: none;
    box-shadow: none;
}

/* Thông tin hiển thị trong popup */
.ics-price-modal .info-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ics-price-modal .info-row b {
    color: #374151;
    margin-right: 8px;
    min-width: 100px;
}

.ics-price-modal .info-value {
    color: #1f2937;
    font-weight: 500;
}

.ics-price-modal .info-value.order-id {
    color: #1953a8;
    font-weight: 600;
}

.ics-price-modal .info-value.product-sku {
    color: #059669;
    font-weight: 600;
}

.ics-price-modal .info-value.current-price {
    color: #dc2626;
    font-weight: 600;
}

.ics-price-modal .info-value.no-price {
    color: #dc2626;
    font-style: italic;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== RESPONSIVE CHO MOBILE ===== */
@media (max-width: 768px) {
    .ics-price-modal-inner {
        margin: 20px;
        padding: 16px 20px;
        min-width: unset;
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .ics-price-modal h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .ics-price-modal input[type="number"] {
        padding: 12px 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .ics-price-modal .button-group {
        flex-direction: column;
        gap: 8px;
    }

    .ics-price-modal button {
        width: 100%;
        padding: 12px 18px;
        font-size: 15px;
    }

    .ics-price-modal .info-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 8px;
    }

    .ics-price-modal .info-row b {
        margin-bottom: 2px;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .ics-price-modal-inner {
        margin: 15px;
        padding: 14px 16px;
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }

    .ics-price-modal h3 {
        font-size: 15px;
    }
}

/* ===== DARK MODE SUPPORT (TÙY CHỌN) ===== */
@media (prefers-color-scheme: dark) {
    .ics-price-modal {
        background: rgba(0, 0, 0, 0.4);
    }

    .ics-price-modal-inner {
        background: #1f2937;
        color: #f9fafb;
    }

    .ics-price-modal h3 {
        color: #f9fafb;
    }

    .ics-price-modal input[type="number"] {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .ics-price-modal input[type="number"]:focus {
        background: #4b5563;
        border-color: #3b82f6;
    }

    .ics-price-modal label {
        color: #e5e7eb;
    }

    .ics-price-modal small,
    .ics-price-modal .description {
        color: #9ca3af;
    }

    .ics-price-modal .info-row b {
        color: #e5e7eb;
    }

    .ics-price-modal .info-value {
        color: #f3f4f6;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.ics-price-modal:focus-within {
    outline: none;
}

.ics-price-modal button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.ics-price-modal input:focus {
    outline: none; /* Đã có box-shadow thay thế */
}

/* Cải thiện contrast cho văn bản */
.ics-price-modal .info-value.order-id,
.ics-price-modal .info-value.product-sku {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Loading spinner cho button (tùy chọn) */
.ics-price-modal #btn-update-price.updating::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}









/*///ECOM ghi chú////*/

/* PLN Company Notes Enhanced Styles */

/* =================== ADMIN FORM STYLES =================== */
.pln-notes-form {
    background: rgba(26, 32, 46, 0.8);
    border: 1px solid #40e0d0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(64, 224, 208, 0.1);
}

.pln-notes-form h3 {
    color: #40e0d0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pln-notes-container {
    position: relative;
}

.pln-notes-label {
    display: block;
    color: #40e0d0;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pln-notes-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #40e0d0;
    border-radius: 8px;
    background: rgba(26, 32, 46, 0.6);
    color: #e0e6ed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pln-notes-textarea:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.2);
    background: rgba(26, 32, 46, 0.8);
}

.pln-notes-textarea::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.pln-notes-info {
    margin-top: 12px;
    padding: 12px;
    background: rgba(64, 224, 208, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

.pln-notes-info small {
    color: #40e0d0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pln-notes-btn {
    background: linear-gradient(135deg, #40e0d0 0%, #64ffda 100%);
    color: #1a202e;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pln-notes-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #64ffda 0%, #40e0d0 100%);
}

.pln-notes-btn:active {
    transform: translateY(0);
}

/* =================== ENHANCED SHORTCODE DISPLAY =================== */
.pln-company-notes {
    background: linear-gradient(135deg, rgba(26, 32, 46, 0.95) 0%, rgba(37, 46, 63, 0.95) 50%, rgba(26, 32, 46, 0.95) 100%);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 28px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
    animation: notesPulse 3s ease-in-out infinite;
}

/* Reset any inherited text formatting */
.pln-company-notes * {
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.pln-company-notes p {
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.pln-company-notes p:last-child {
    margin-bottom: 0;
}

/* Animated border gradient */
.pln-company-notes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(45deg, 
        #40e0d0, #64ffda, #00d4aa, #40e0d0, 
        #64ffda, #00d4aa, #40e0d0);
    background-size: 300% 300%;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderGradient 4s ease infinite;
    z-index: -1;
}

/* Floating elements */
.pln-company-notes::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.05) 0%, transparent 70%);
    animation: floatingGlow 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.pln-notes-header {
    border-bottom: 2px solid rgba(64, 224, 208, 0.4);
    padding-bottom: 20px;
    margin-bottom: 24px;
    position: relative;
}

.pln-notes-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #40e0d0, #64ffda);
    border-radius: 1px;
    animation: headerLine 2s ease-in-out infinite alternate;
}

.pln-notes-title {
    color: #40e0d0;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}

.pln-company-name {
    background: linear-gradient(135deg, #40e0d0, #64ffda);
    color: #1a202e;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 8px;
    animation: companyNamePulse 2s ease-in-out infinite;
}

.pln-notes-time {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    opacity: 0.8;
}

.pln-notes-content {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.3) 0%, rgba(45, 55, 72, 0.3) 100%);
    border-radius: 16px;
    padding: 24px;
    color: #e0e6ed;
    line-height: 1.0;
    font-size: 0.85rem;
    border: 1px solid rgba(64, 224, 208, 0.2);
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
    text-indent: 0;
}


/* Fix for pin icon circle */
.pln-notes-content::before {
    content: '📌';
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 1.5rem;
    background: rgba(26, 32, 46, 0.9);
    
    /* Đảm bảo hình tròn hoàn hảo */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 50%;
    border: 2px solid #40e0d0;
    animation: pinRotate 3s ease-in-out infinite;
    
    /* Fix aspect ratio */
    flex-shrink: 0;
    box-sizing: border-box;
}

.pln-notes-content:hover {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.4) 0%, rgba(45, 55, 72, 0.4) 100%);
    transform: translateY(-2px);
}

.pln-notes-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.pln-notes-footer small {
    color: #40e0d0;
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95rem;
    animation: footerGlow 2s ease-in-out infinite alternate;
}

/* =================== ERROR & EMPTY STATES =================== */
.pln-notes-error {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.15) 0%, rgba(185, 28, 28, 0.15) 100%);
    color: #fca5a5;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(229, 62, 62, 0.4);
    text-align: center;
    font-weight: 500;
    margin: 0;
    animation: errorShake 0.5s ease-in-out;
}

.pln-notes-empty {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #fde68a;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.4);
    text-align: center;
    font-weight: 500;
    margin: 0;
    font-style: italic;
    animation: emptyFloat 3s ease-in-out infinite;
}

/* =================== ICON STYLES =================== */
.pln-icon-notes,
.pln-icon-save,
.pln-icon-company,
.pln-icon-time {
    font-size: 1.3rem;
    opacity: 0.9;
    animation: iconBounce 2s ease-in-out infinite;
}

/* =================== ANIMATIONS =================== */
@keyframes notesPulse {
    0%, 100% { 
        border: 3px solid rgba(64, 224, 208, 0.3);
    }
    50% { 
        border: 3px solid rgba(64, 224, 208, 0.5);
    }
}

@keyframes borderGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatingGlow {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: rotate(180deg) scale(1.1);
        opacity: 0.1;
    }
}

@keyframes headerLine {
    0% { width: 60px; }
    100% { width: 120px; }
}

@keyframes companyNamePulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

@keyframes pinRotate {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

@keyframes footerGlow {
    0% { text-shadow: 0 0 5px rgba(64, 224, 208, 0.3); }
    100% { text-shadow: 0 0 15px rgba(64, 224, 208, 0.6); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 768px) {
    .pln-notes-form {
        padding: 16px;
    }
    
    .pln-company-notes {
        padding: 20px;
        margin: 15px 0;
        border-radius: 16px;
    }
    
    .pln-notes-title {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pln-company-name {
        margin-left: 0;
        margin-top: 8px;
        align-self: flex-start;
    }
    
    .pln-notes-textarea {
        min-height: 150px;
        font-size: 13px;
    }
    
    .pln-notes-content {
        padding: 18px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pln-company-notes {
        padding: 16px;
        margin: 12px 0;
    }
    
    .pln-notes-title {
        font-size: 1.2rem;
    }
    
    .pln-notes-content {
        padding: 15px;
        font-size: 0.95rem;
    }
}

/* =================== DARK MODE ENHANCEMENTS =================== */
@media (prefers-color-scheme: dark) {
    .pln-notes-textarea {
        background: rgba(15, 20, 30, 0.8);
    }
    
    .pln-notes-content {
        background: linear-gradient(135deg, rgba(15, 20, 30, 0.6) 0%, rgba(10, 15, 25, 0.6) 100%);
    }
}

/* =================== FOCUS STYLES FOR ACCESSIBILITY =================== */
.pln-notes-btn:focus {
    outline: 3px solid #40e0d0;
    outline-offset: 2px;
}

.pln-notes-textarea:focus {
    outline: none;
}

/* =================== PRINT STYLES =================== */
@media print {
    .pln-company-notes {
        background: white !important;
        color: black !important;
        border: 2px solid #40e0d0 !important;
        box-shadow: none !important;
    }
    
    .pln-notes-content {
        background: #f9f9f9 !important;
        color: black !important;
    }
}






/* Fix specific formatting issues */
.pln-company-notes .pln-notes-content {
    text-align: left !important;
    text-indent: 0 !important;
    margin: 0 !important;
    padding-left: 24px !important;
}

.pln-company-notes .pln-notes-content br + br {
    line-height: 0.5;
}

/* Remove any inherited list styles */
.pln-company-notes .pln-notes-content {
    list-style: none !important;
    list-style-type: none !important;
}

/* Ensure proper spacing for line breaks */
.pln-company-notes .pln-notes-content {
    white-space: pre-line !important;
}




/*///xoá phiếu xuất kho////*/

    