@charset "UTF-8";
:root {
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --text-color: #343A40;
  --text-muted: #6c757d;
}

[data-theme=dark] {
  --color-bg: #0c1425;
  --color-white: #0f172a;
  --color-gray-50: #192643;
  --color-gray-100: #1e293b;
  --color-gray-200: #222e40;
  --color-gray-300: #475569;
  --color-gray-400: #64748b;
  --color-gray-500: #94a3b8;
  --color-gray-600: #cbd5e1;
  --color-gray-700: #e2e8f0;
  --color-gray-800: #f1f5f9;
  --color-gray-900: #ffffff;
  --text-color: #ffffff;
  --text-muted: #cbd5e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge i {
  font-size: 12px;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--text-color);
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}
html img, body img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
html a, body a {
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}
html i, body i {
  line-height: 0.8 !important;
}

.kg-dashboard {
  display: flex;
  height: 100svh;
  overflow: hidden;
}

.kg-sidebar {
  width: 260px;
  background: var(--color-white);
  border-right: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100svh;
  left: 0;
  top: 0;
  z-index: 999;
}
.kg-sidebar-logo {
  height: 70px;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-sidebar-logo img {
  height: 50px;
  display: block;
}
.kg-sidebar-balance {
  padding: 16px;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  gap: 8px;
}
.kg-sidebar-balance .kg-balance-item {
  flex: 1;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  padding: 8px 12px;
  text-align: center;
  transition: all 0.3s ease;
}
.kg-sidebar-balance .kg-balance-item:hover {
  border-color: var(--color-gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.kg-sidebar-balance .kg-balance-item.kg-green {
  border-top: 3px solid #10b981;
}
.kg-sidebar-balance .kg-balance-item.kg-red {
  border-top: 3px solid #DC2626;
}
.kg-sidebar-balance .kg-balance-item .kg-balance-label {
  display: block;
  font-size: 11px;
  color: var(--color-gray-500);
  margin-bottom: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kg-sidebar-balance .kg-balance-item .kg-balance-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
}
.kg-sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.kg-sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--color-gray-600);
  transition: all 0.3s ease;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.kg-sidebar-link i {
  font-size: 20px;
  width: 20px;
  text-align: center;
}
.kg-sidebar-link:hover {
  background: var(--color-gray-50);
  color: #145e9a;
}
.kg-sidebar-link.kg-active {
  background: rgba(20, 94, 154, 0.1);
  color: #145e9a;
  border-right: 3px solid #145e9a;
}
.kg-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kg-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow: hidden;
}

.kg-navbar {
  height: 70px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 997;
}
.kg-navbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kg-navbar-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}
.kg-navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.kg-navbar-search {
  position: relative;
}
.kg-navbar-search input {
  width: 240px;
  height: 42px;
  padding-left: 45px;
  padding-right: 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  background: var(--color-white);
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s ease;
}
.kg-navbar-search input::placeholder {
  color: var(--text-muted);
}
.kg-navbar-search input:focus {
  outline: none;
  border-color: #145e9a;
  box-shadow: 0 0 0 4px rgba(20, 94, 154, 0.1);
}
.kg-navbar-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.kg-navbar-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-gray-50);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-navbar-icon i {
  font-size: 18px;
  color: var(--color-gray-600);
}
.kg-navbar-icon:hover {
  background: var(--color-gray-100);
}
.kg-navbar-icon .badge.text-bg-danger {
  position: absolute;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  font-size: 12px;
  top: -6px;
  right: -6px;
}
.kg-navbar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.kg-navbar-profile:hover {
  background: var(--color-gray-50);
}
.kg-navbar-profile i {
  font-size: 18px;
  color: var(--color-gray-500);
}
.kg-navbar-profile .kg-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.kg-navbar-profile .kg-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kg-navbar-profile .kg-profile-info .kg-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900);
}
.kg-navbar-profile .kg-profile-info .kg-profile-role {
  font-size: 12px;
  color: var(--color-gray-500);
}
.kg-navbar-profile .kg-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}
.kg-navbar-profile .kg-profile-menu.kg-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kg-navbar-profile .kg-profile-menu .kg-profile-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--color-gray-700);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--color-gray-100);
}
.kg-navbar-profile .kg-profile-menu .kg-profile-option i {
  font-size: 18px;
  width: 20px;
}
.kg-navbar-profile .kg-profile-menu .kg-profile-option:hover {
  background: var(--color-gray-50);
  color: #145e9a;
}
.kg-navbar-profile .kg-profile-menu .kg-profile-option:last-child {
  border-bottom: none;
}
.kg-navbar-profile .kg-profile-menu .kg-profile-option.kg-logout {
  color: #DC2626;
}
.kg-navbar-profile .kg-profile-menu .kg-profile-option.kg-logout:hover {
  background: rgba(220, 38, 38, 0.05);
  color: #DC2626;
}

.kg-time-filter {
  position: relative;
}
.kg-time-filter .kg-time-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 16px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  height: 42px;
}
.kg-time-filter .kg-time-btn i {
  font-size: 16px;
}
.kg-time-filter .kg-time-btn:hover {
  background: var(--color-gray-200);
}
.kg-time-filter .kg-time-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  min-width: 180px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 500;
}
.kg-time-filter .kg-time-menu.kg-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kg-time-filter .kg-time-menu .kg-time-option {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-gray-700);
  transition: all 0.3s ease;
}
.kg-time-filter .kg-time-menu .kg-time-option:hover {
  background: var(--color-gray-50);
  color: #145e9a;
}
.kg-time-filter .kg-time-menu .kg-time-option.kg-active {
  background: rgba(20, 94, 154, 0.1);
  color: #145e9a;
  font-weight: 600;
}
.kg-time-filter .kg-time-menu .kg-time-option:first-child {
  border-radius: 8px 8px 0 0;
}
.kg-time-filter .kg-time-menu .kg-time-option:last-child {
  border-radius: 0 0 8px 8px;
}

.kg-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background: var(--color-bg);
}

.kg-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.kg-stats .kg-stat-card {
  background: var(--color-white);
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}
.kg-stats .kg-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.kg-stats .kg-stat-card .kg-stat-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-stats .kg-stat-card .kg-stat-icon i {
  font-size: 24px;
  color: #fff;
}
.kg-stats .kg-stat-card .kg-stat-icon.kg-purple {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.kg-stats .kg-stat-card .kg-stat-icon.kg-blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}
.kg-stats .kg-stat-card .kg-stat-icon.kg-green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.kg-stats .kg-stat-card .kg-stat-icon.kg-red {
  background: linear-gradient(135deg, #DC2626, #dc2626);
}
.kg-stats .kg-stat-card .kg-stat-icon.kg-pink {
  background: linear-gradient(135deg, #E31E24, #DC2626);
}
.kg-stats .kg-stat-card .kg-stat-icon.kg-gray {
  background: linear-gradient(135deg, #4b5563, #374151);
}
.kg-stats .kg-stat-card .kg-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kg-stats .kg-stat-card .kg-stat-info .kg-stat-label {
  font-size: 13px;
  color: var(--color-gray-500);
  font-weight: 500;
}
.kg-stats .kg-stat-card .kg-stat-info .kg-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gray-900);
}

.kg-card {
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-gray-200);
  overflow: visible;
}
.kg-card-header {
  padding: 24px;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kg-card-header .kg-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}
.kg-card-header .kg-select-year {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}
.kg-card-header .kg-select-year:hover {
  border-color: #145e9a;
}
.kg-card-header .kg-select-year:focus {
  outline: none;
  border-color: #145e9a;
  box-shadow: 0 0 0 3px rgba(20, 94, 154, 0.1);
}
.kg-card-body {
  padding: 24px;
  position: relative;
}
.kg-card-body canvas {
  width: 100% !important;
  height: 300px !important;
}
.kg-card-large {
  grid-column: 1;
}
.kg-card-small {
  grid-column: 2;
}

.kg-map {
  width: 100%;
  height: 100%;
  border-radius: 0 0 12px 12px;
}
.kg-map-card .kg-card-body {
  padding: 0;
  height: 300px;
}

.kg-table {
  width: 100%;
  border-collapse: collapse;
}
.kg-table-wrapper {
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
}
.kg-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.kg-table-wrapper::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: 3px;
}
.kg-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 3px;
}
.kg-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}
.kg-table thead {
  background: var(--color-gray-50);
}
.kg-table thead th {
  padding: 16px 24px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kg-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
}
.kg-table tbody tr:hover {
  background: var(--color-gray-50);
}
.kg-table tbody tr:last-child {
  border-bottom: none;
}
.kg-table tbody td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--color-gray-700);
}
.kg-table-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kg-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #145e9a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.kg-table-avatar.kg-avatar-blue {
  background: #3b82f6;
}
.kg-table-avatar.kg-avatar-purple {
  background: #8b5cf6;
}
.kg-table-avatar.kg-avatar-cyan {
  background: #06b6d4;
}
.kg-table-avatar.kg-avatar-green {
  background: #10b981;
}
.kg-table-avatar.kg-avatar-orange {
  background: #f59e0b;
}
.kg-table-avatar.kg-avatar-pink {
  background: #ec4899;
}
.kg-table-avatar.kg-avatar-teal {
  background: #14b8a6;
}
.kg-table-avatar.kg-avatar-indigo {
  background: #6366f1;
}
.kg-table-avatar.kg-avatar-red {
  background: #ef4444;
}
.kg-table-avatar.kg-avatar-yellow {
  background: #eab308;
}
.kg-table .img-brand {
  height: 40px;
  width: 80px;
  object-fit: contain;
}
.kg-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kg-table .btn {
  font-size: 14px !important;
  white-space: nowrap;
}
.kg-table .btn i {
  font-size: 16px;
}
.kg-table .btn-group {
  width: 100%;
  display: flex;
}
.kg-table .btn-group .btn {
  height: 36px;
  width: 100%;
  font-size: 18px;
}
.kg-table .btn-group .btn.dropdown-toggle {
  width: 36px;
  flex: inherit;
  background-color: #2473b4;
}
.kg-table .btn-group .dropdown-menu {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 4px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.kg-table .btn-group .dropdown-menu .dropdown-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-color);
  border-radius: 6px;
  transition: all 0.3s ease;
}
.kg-table .btn-group .dropdown-menu .dropdown-item:hover {
  background: var(--color-gray-50);
  color: #145e9a;
}
.kg-table-dropdown {
  position: relative;
}
.kg-table-dropdown .kg-table-dropdown-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.kg-table-dropdown .kg-table-dropdown-btn:hover {
  background: var(--color-gray-100);
  color: var(--text-color);
}
.kg-table-dropdown .kg-table-dropdown-btn i {
  font-size: 18px;
}
.kg-table-dropdown .kg-table-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 160px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}
.kg-table-dropdown .kg-table-dropdown-menu.kg-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kg-table-dropdown .kg-table-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--color-gray-100);
}
.kg-table-dropdown .kg-table-dropdown-item:last-child {
  border-bottom: none;
}
.kg-table-dropdown .kg-table-dropdown-item i {
  font-size: 16px;
  width: 18px;
  color: var(--text-muted);
}
.kg-table-dropdown .kg-table-dropdown-item:hover {
  background: var(--color-gray-50);
  color: #145e9a;
}
.kg-table-dropdown .kg-table-dropdown-item:hover i {
  color: #145e9a;
}

.kg-notifications-dropdown {
  position: relative;
}
.kg-notifications-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
}
.kg-notifications-menu.kg-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kg-notifications-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kg-notifications-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
}
.kg-notifications-header .kg-btn-clear {
  background: none;
  border: none;
  color: #145e9a;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-notifications-header .kg-btn-clear:hover {
  color: #8b5cf6;
}
.kg-notifications-list {
  max-height: 400px;
  overflow-y: auto;
}
.kg-notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-gray-200);
  text-align: center;
}
.kg-notifications-footer .kg-view-all {
  display: block;
  color: #145e9a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.kg-notifications-footer .kg-view-all:hover {
  color: #8b5cf6;
}
.kg-notifications-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-bottom: 1px solid var(--color-gray-100);
}
.kg-notifications-item:hover {
  background: var(--color-gray-50);
}
.kg-notifications-item:last-child {
  border-bottom: none;
}
.kg-notifications-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-notifications-icon i {
  font-size: 16px;
  color: #fff;
}
.kg-notifications-icon.kg-purple {
  background: #145e9a;
}
.kg-notifications-icon.kg-green {
  background: #10b981;
}
.kg-notifications-icon.kg-blue {
  background: #06b6d4;
}
.kg-notifications-content {
  flex: 1;
}
.kg-notifications-text {
  font-size: 14px;
  color: var(--color-gray-700);
  margin: 0 0 4px 0;
}
.kg-notifications-time {
  font-size: 12px;
  color: var(--color-gray-500);
}

.kg-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  z-index: 101;
}
.kg-mobile-logo {
  height: 30px;
}
.kg-mobile-logo img {
  display: block;
}

.kg-hamburger {
  width: 40px;
  height: 40px;
  background: var(--color-gray-50);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-hamburger i {
  font-size: 20px;
  color: var(--color-gray-700);
}
.kg-hamburger:hover {
  background: var(--color-gray-100);
}

.kg-overlay,
.kg-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.kg-overlay.kg-show,
.kg-sidebar-overlay.kg-show {
  display: block;
  opacity: 1;
}

@media (max-width: 1200px) {
  .kg-stats .kg-stat-card .kg-stat-icon {
    width: 48px;
    height: 48px;
  }
  .kg-stats .kg-stat-card .kg-stat-icon i {
    font-size: 20px;
  }
  .kg-stats .kg-stat-card .kg-stat-info .kg-stat-value {
    font-size: 24px;
  }
  .kg-table-wrapper {
    overflow-x: visible;
  }
  .kg-table-wrapper .kg-table {
    display: block;
    padding: 12px;
  }
  .kg-table-wrapper .kg-table thead {
    display: none;
  }
  .kg-table-wrapper .kg-table tbody {
    display: block;
  }
  .kg-table-wrapper .kg-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-white);
  }
  .kg-table-wrapper .kg-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .kg-table-wrapper .kg-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-100);
    text-align: right;
  }
  .kg-table-wrapper .kg-table tbody tr td:last-child {
    border-bottom: none;
  }
  .kg-table-wrapper .kg-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 13px;
    text-align: left;
    flex-shrink: 0;
    margin-right: 12px;
  }
}
@media (max-width: 1024px) {
  .kg-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .kg-navbar-title {
    font-size: 20px;
  }
  .kg-navbar-right {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .kg-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .kg-sidebar.kg-show {
    transform: translateX(0);
  }
  .kg-content {
    margin-left: 0;
    width: 100%;
  }
  .kg-mobile-header {
    display: flex;
  }
  .kg-navbar {
    padding: 0 16px;
    height: auto;
    min-height: 60px;
    position: relative;
    top: 0;
  }
  .kg-navbar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .kg-navbar-title {
    font-size: 18px;
  }
  .kg-navbar-right {
    gap: 8px;
  }
  .kg-navbar-profile .kg-profile-info {
    display: none;
  }
  .kg-main {
    padding: 16px;
  }
  .kg-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .kg-stats .kg-stat-card {
    padding: 16px;
  }
  .kg-stats .kg-stat-card .kg-stat-icon {
    width: 40px;
    height: 40px;
  }
  .kg-stats .kg-stat-card .kg-stat-icon i {
    font-size: 18px;
  }
  .kg-stats .kg-stat-card .kg-stat-info .kg-stat-label {
    font-size: 11px;
  }
  .kg-stats .kg-stat-card .kg-stat-info .kg-stat-value {
    font-size: 20px;
  }
  .kg-card-header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .kg-card-header .kg-card-title {
    font-size: 16px;
  }
  .kg-card-body {
    padding: 16px;
  }
  .kg-card-body canvas {
    height: 250px !important;
  }
  .kg-table-wrapper .kg-table {
    width: 100%;
  }
  .kg-table-wrapper .kg-table thead th {
    padding: 12px 16px;
    font-size: 11px;
    white-space: nowrap;
  }
  .kg-table-wrapper .kg-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  .kg-table-user {
    gap: 8px;
  }
  .kg-table-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .kg-time-filter .kg-time-menu {
    left: auto;
    right: 0;
  }
  .kg-notifications-dropdown .kg-notifications-menu {
    width: 320px;
    right: -16px;
  }
  .kg-btn-primary,
  .kg-btn-secondary {
    font-size: 13px;
    padding: 10px 14px;
  }
  .kg-shipments-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .kg-shipments-header .kg-shipments-actions,
  .kg-shipments-header .kg-shipments-filters {
    width: 100%;
    flex-wrap: wrap;
  }
  .kg-shipments-header .kg-shipments-filters .kg-navbar-search {
    width: 100%;
    order: 3;
  }
  .kg-shipments-header .kg-shipments-filters .kg-navbar-search input {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .kg-navbar .kg-back-btn {
    display: none;
  }
  .kg-navbar-title {
    font-size: 16px;
  }
  .kg-navbar-icon {
    width: 36px;
    height: 36px;
  }
  .kg-navbar-icon i {
    font-size: 16px;
  }
  .kg-navbar-profile {
    padding: 6px 8px;
  }
  .kg-navbar-profile .kg-profile-img {
    width: 32px;
    height: 32px;
  }
  .kg-stats {
    grid-template-columns: 1fr;
  }
  .kg-stats .kg-stat-card {
    flex-direction: row;
  }
  .kg-stats .kg-stat-card .kg-stat-info .kg-stat-label {
    font-size: 12px;
  }
  .kg-stats .kg-stat-card .kg-stat-info .kg-stat-value {
    font-size: 24px;
  }
  .kg-card-body canvas {
    height: 200px !important;
  }
  .kg-sidebar {
    width: 280px;
  }
  .kg-sidebar-balance {
    flex-direction: column;
  }
  .kg-sidebar-balance .kg-balance-item {
    width: 100%;
  }
  .kg-notifications-dropdown {
    position: inherit;
  }
  .kg-notifications-dropdown .kg-notifications-menu {
    left: 8px;
    right: inherit;
    width: calc(100% - 16px);
  }
  .kg-time-filter .kg-time-btn {
    width: 180px;
    justify-content: space-between;
  }
  .kg-time-filter .kg-time-menu {
    width: 100%;
    left: 0;
  }
}
.kg-shipments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.kg-shipments-header .kg-shipments-actions {
  display: flex;
  gap: 12px;
}
.kg-shipments-header .kg-shipments-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}
.kg-shipments-header .btn-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 16px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  cursor: pointer;
  transform: none !important;
}
.kg-shipments-header .btn-filter i {
  font-size: 16px;
}
.kg-shipments-header .btn-filter:hover {
  background: var(--color-gray-200);
}
.kg-shipments-header .btn-filter:hover, .kg-shipments-header .btn-filter:active, .kg-shipments-header .btn-filter:focus {
  border: 1px solid var(--color-gray-200);
}

.kg-shipments-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-shipments-stats .kg-shipments-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-200);
}
.kg-shipments-stats .kg-shipments-stat:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-primary {
  background: rgba(20, 94, 154, 0.05);
  border-color: rgba(20, 94, 154, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-primary .kg-shipments-stat-label {
  color: #145e9a;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-primary .kg-shipments-stat-value {
  color: #145e9a;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-primary:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-primary.kg-active {
  background: #145e9a;
  border-color: #145e9a;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-primary:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-primary:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-primary.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-primary.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-warning .kg-shipments-stat-label {
  color: #c57f08;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-warning .kg-shipments-stat-value {
  color: #c57f08;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-warning:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-warning.kg-active {
  background: #f59e0b;
  border-color: #f59e0b;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-warning:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-warning:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-warning.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-warning.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-purple {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-purple .kg-shipments-stat-label {
  color: #8b5cf6;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-purple .kg-shipments-stat-value {
  color: #8b5cf6;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-purple:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-purple.kg-active {
  background: #8b5cf6;
  border-color: #8b5cf6;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-purple:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-purple:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-purple.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-purple.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-blue {
  background: rgba(20, 94, 154, 0.05);
  border-color: rgba(20, 94, 154, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-blue .kg-shipments-stat-label {
  color: #2563eb;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-blue .kg-shipments-stat-value {
  color: #2563eb;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-blue:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-blue.kg-active {
  background: #2563eb;
  border-color: #2563eb;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-blue:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-blue:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-blue.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-blue.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-success .kg-shipments-stat-label {
  color: #10b981;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-success .kg-shipments-stat-value {
  color: #10b981;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-success:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-success.kg-active {
  background: #10b981;
  border-color: #10b981;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-success:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-success:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-success.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-success.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-pink {
  background: rgba(236, 72, 153, 0.05);
  border-color: rgba(236, 72, 153, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-pink .kg-shipments-stat-label {
  color: #ec4899;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-pink .kg-shipments-stat-value {
  color: #ec4899;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-pink:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-pink.kg-active {
  background: #ec4899;
  border-color: #ec4899;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-pink:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-pink:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-pink.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-pink.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-gray {
  background: rgba(75, 85, 99, 0.05);
  border-color: rgba(75, 85, 99, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-gray .kg-shipments-stat-label {
  color: #4b5563;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-gray .kg-shipments-stat-value {
  color: #4b5563;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-gray:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-gray.kg-active {
  background: #4b5563;
  border-color: #4b5563;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-gray:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-gray:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-gray.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-gray.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-red {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.3);
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-red .kg-shipments-stat-label {
  color: #DC2626;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-red .kg-shipments-stat-value {
  color: #DC2626;
  transition: all 0.3s ease;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-red:hover, .kg-shipments-stats .kg-shipments-stat.kg-stat-red.kg-active {
  background: #DC2626;
  border-color: #DC2626;
}
.kg-shipments-stats .kg-shipments-stat.kg-stat-red:hover .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-red:hover .kg-shipments-stat-value, .kg-shipments-stats .kg-shipments-stat.kg-stat-red.kg-active .kg-shipments-stat-label, .kg-shipments-stats .kg-shipments-stat.kg-stat-red.kg-active .kg-shipments-stat-value {
  color: #fff;
}
.kg-shipments-stats .kg-shipments-stat .kg-shipments-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.kg-shipments-stats .kg-shipments-stat .kg-shipments-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.kg-shipment-number {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kg-shipment-number .kg-shipment-badge {
  font-weight: 600;
  color: var(--text-color);
}
.kg-shipment-number .kg-shipment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.kg-shipment-customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kg-shipment-customer strong {
  color: var(--text-color);
  font-size: 14px;
}
.kg-shipment-customer .kg-shipment-location,
.kg-shipment-customer .kg-shipment-phone {
  font-size: 12px;
  color: var(--text-muted);
}

.kg-shipments-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--color-gray-200);
}
.kg-shipments-footer .kg-shipments-info {
  font-size: 14px;
  color: var(--text-muted);
}

.kg-shipments-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.kg-shipments-actions-bar .kg-shipments-action-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.kg-shipments-actions-bar .btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.kg-form-group {
  margin-bottom: 20px;
  position: relative;
}
.kg-form-group:last-child {
  margin-bottom: 0;
}

.kg-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.kg-input-icon {
  position: relative;
}
.kg-input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  z-index: 1;
  pointer-events: none;
}
.kg-input-icon .form-control, .kg-input-icon .form-select {
  padding-left: 46px;
}
.kg-input-icon textarea.form-control {
  padding-top: 14px;
}
.kg-input-icon .kg-autofill-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.kg-input-icon .kg-autofill-btn i {
  font-size: 14px;
  position: static;
  transform: none;
  color: #fff;
}

.kg-back-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.kg-back-btn:hover {
  color: #145e9a;
}
.kg-back-btn i {
  font-size: 20px;
}

.kg-create-shipment {
  padding: 24px;
}
.kg-create-shipment .kg-create-shipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.kg-create-shipment .kg-create-section-header {
  padding: 20px 24px;
  margin: -20px -20px 20px -20px;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kg-create-shipment .kg-create-section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0;
}
.kg-create-shipment .kg-create-section-body {
  padding: 24px;
  margin: -20px;
}
.kg-create-shipment .kg-address-search {
  position: relative;
  margin-bottom: 20px;
}
.kg-create-shipment .kg-address-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}
.kg-create-shipment .kg-address-search .form-control {
  padding-left: 46px;
}
.kg-create-shipment .kg-address-list {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.kg-create-shipment .kg-address-item {
  padding: 16px;
  border: 2px solid var(--color-gray-200);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-create-shipment .kg-address-item:hover {
  border-color: var(--color-gray-300);
  background: var(--color-gray-50);
}
.kg-create-shipment .kg-address-item.kg-selected {
  border-color: #145e9a;
  background: rgba(20, 94, 154, 0.03);
}
.kg-create-shipment .kg-address-item.kg-selected .kg-address-item-check {
  background: #145e9a;
  color: #fff;
}
.kg-create-shipment .kg-address-item-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-200);
  color: transparent;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.kg-create-shipment .kg-address-item-check i {
  font-size: 14px;
}
.kg-create-shipment .kg-address-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kg-create-shipment .kg-address-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #145e9a;
}
.kg-create-shipment .kg-address-item-name, .kg-create-shipment .kg-address-item-detail {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-color);
}
.kg-create-shipment .kg-address-item-name i, .kg-create-shipment .kg-address-item-detail i {
  font-size: 14px;
  color: var(--text-muted);
}
.kg-create-shipment .kg-address-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-200);
}
.kg-create-shipment .kg-address-pagination-text {
  font-size: 13px;
  color: var(--text-muted);
}
.kg-create-shipment .kg-address-pagination-btns {
  display: flex;
  gap: 4px;
}
.kg-create-shipment .kg-create-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
}
.kg-create-shipment .kg-create-footer-left {
  position: relative;
}
.kg-create-shipment .kg-create-footer-right {
  display: flex;
  gap: 12px;
}
.kg-create-shipment .kg-shipment-type-btn {
  min-width: 220px;
  justify-content: space-between;
}
.kg-create-shipment .kg-shipment-type-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 250px;
  padding: 8px;
  display: none;
  z-index: 100;
}
.kg-create-shipment .kg-shipment-type-menu.kg-show {
  display: block;
}
.kg-create-shipment .kg-shipment-type-option {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.kg-create-shipment .kg-shipment-type-option:hover {
  background: var(--color-gray-50);
}
.kg-create-shipment .kg-shipment-type-option.kg-active {
  background: rgba(20, 94, 154, 0.1);
  color: #145e9a;
}
.kg-create-shipment .kg-shipment-type-option.kg-active i:last-child {
  opacity: 1;
}
.kg-create-shipment .kg-shipment-type-option i:first-child {
  font-size: 16px;
}
.kg-create-shipment .kg-shipment-type-option span {
  flex: 1;
  text-align: left;
}
.kg-create-shipment .kg-shipment-type-option i:last-child {
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.kg-shipment-detail {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 24px;
  padding: 24px;
}
.kg-shipment-detail .kg-shipment-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kg-shipment-detail .kg-shipment-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.kg-card {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
  padding: 20px;
}

.kg-detail-card-header {
  padding: 16px 20px;
  margin: -20px -20px 20px -20px;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kg-detail-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}
.kg-detail-card-body.kg-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-muted);
}
.kg-detail-card-body.kg-empty-state i {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.kg-detail-card-body.kg-empty-state span {
  font-size: 14px;
}

.kg-shipment-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kg-shipment-header-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kg-shipment-header .kg-shipment-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}
.kg-shipment-header .kg-shipment-id {
  font-size: 13px;
  color: var(--text-muted);
}
.kg-shipment-header .btn {
  height: 55px;
  width: 100%;
  font-size: 18px;
}
.kg-shipment-header .btn.dropdown-toggle {
  width: 55px;
  flex: inherit;
  background-color: #2473b4;
}
.kg-shipment-header .btn-group {
  width: 100%;
  display: flex;
}
.kg-shipment-header .btn-group .dropdown-menu {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 4px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.kg-shipment-header .btn-group .dropdown-menu .dropdown-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-color);
  border-radius: 6px;
  transition: all 0.3s ease;
}
.kg-shipment-header .btn-group .dropdown-menu .dropdown-item:hover {
  background: var(--color-gray-50);
  color: #145e9a;
}
.kg-shipment-header .btn-group .dropdown-menu .dropdown-item:active {
  background: var(--color-gray-100);
}

.kg-offers-panel .kg-offers-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 16px 0;
}
.kg-offers-panel .kg-offers-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.kg-offers-panel .kg-offers-warning i {
  font-size: 16px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}
[data-theme=dark] .kg-offers-panel .kg-offers-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.kg-offers-list .kg-offers-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 20px 0 12px 0;
}
.kg-offers-list .kg-offers-category:first-child {
  margin-top: 0;
}

.kg-offer-item {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-offer-item:last-of-type {
  margin-bottom: 0;
}
.kg-offer-item:hover {
  border-color: var(--color-gray-300);
}
.kg-offer-item:has(.kg-offer-radio input:checked) {
  border-color: #145e9a;
  background: rgba(20, 94, 154, 0.03);
}
.kg-offer-item .kg-offer-radio {
  flex-shrink: 0;
}
.kg-offer-item .kg-offer-radio input[type=radio] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-300);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.kg-offer-item .kg-offer-radio input[type=radio]:checked {
  border-color: #145e9a;
  background: #145e9a;
}
.kg-offer-item .kg-offer-radio input[type=radio]:checked::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.kg-offer-item .kg-offer-radio label {
  display: none;
}
.kg-offer-item .kg-offer-logo {
  width: 70px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-offer-item .kg-offer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.kg-offer-item .kg-offer-details {
  flex: 1;
  min-width: 0;
}
.kg-offer-item .kg-offer-details .kg-offer-name {
  font-size: 14px;
  font-weight: 600;
  color: #145e9a;
  margin: 0 0 4px 0;
}
.kg-offer-item .kg-offer-details .kg-offer-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.kg-offer-item .kg-offer-details .kg-offer-time i {
  font-size: 12px;
}
.kg-offer-item .kg-offer-details .kg-offer-time i:last-child {
  cursor: help;
}
.kg-offer-item .kg-offer-price {
  text-align: right;
  flex-shrink: 0;
}
.kg-offer-item .kg-offer-price .kg-offer-amount {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 2px;
}
.kg-offer-item .kg-offer-price .kg-offer-tax {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.kg-package-tabs {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 20px;
  gap: 24px;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-package-tabs .nav-item {
  margin: 0;
}
.kg-package-tabs .nav-link {
  padding: 12px 0;
  background: transparent !important;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  margin-right: 24px;
}
.kg-package-tabs .nav-link:hover {
  color: var(--text-color);
}
.kg-package-tabs .nav-link.active {
  color: #145e9a;
  border-bottom-color: #145e9a;
}

.kg-package-form .kg-dimensions-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kg-package-form .kg-dimensions-input .kg-dimension-item {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.kg-package-form .kg-dimensions-input .kg-dimension-item i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 16px;
  z-index: 1;
}
.kg-package-form .kg-dimensions-input .kg-dimension-item .form-control {
  border: none;
  background: transparent;
  padding-left: 40px;
  padding-right: 40px;
  text-align: center;
}
.kg-package-form .kg-dimensions-input .kg-dimension-item .kg-dimension-unit {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.kg-package-form .kg-dimensions-input .kg-dimension-item:first-child .form-control {
  padding-left: 40px;
}
.kg-package-form .kg-dimensions-input .kg-dimension-item:not(:first-child) i {
  display: none;
}
.kg-package-form .kg-dimensions-input .kg-dimension-item:not(:first-child) .form-control {
  padding-left: 16px;
}
.kg-package-form .kg-dimensions-input .kg-dimension-separator {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.kg-package-form .kg-weight-desi-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.kg-package-form .kg-weight-desi-row .kg-form-group {
  flex: 1;
}
.kg-package-form .kg-weight-input {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.kg-package-form .kg-weight-input i {
  padding-left: 12px;
  color: var(--text-muted);
  font-size: 16px;
}
.kg-package-form .kg-weight-input .form-control {
  border: none;
  background: transparent;
  padding-left: 12px;
}
.kg-package-form .kg-weight-input .kg-weight-unit {
  padding-right: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.kg-desi-info .kg-form-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kg-desi-info .kg-form-label i {
  font-size: 14px;
  color: var(--text-muted);
  cursor: help;
}
.kg-desi-info .kg-desi-value-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 10px 16px;
}
.kg-desi-info .kg-desi-value-box i {
  color: var(--text-muted);
  font-size: 16px;
}
.kg-desi-info .kg-desi-value-box .kg-desi-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}
.kg-desi-info .kg-desi-value-box .kg-desi-unit {
  color: var(--text-muted);
  font-size: 13px;
}

.kg-package-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-200);
}

.kg-address-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-color);
  margin-bottom: 10px;
}
.kg-address-info:last-child {
  margin-bottom: 0;
}
.kg-address-info i {
  font-size: 14px;
  color: var(--text-muted);
  width: 18px;
  flex-shrink: 0;
}

.kg-support-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--color-white);
  border-radius: 10px;
  border: 1px solid var(--color-gray-200);
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-support-link i {
  font-size: 18px;
  color: var(--text-muted);
}
.kg-support-link:hover {
  border-color: #145e9a;
  color: #145e9a;
}
.kg-support-link:hover i {
  color: #145e9a;
}

.kg-package-info {
  margin-bottom: 16px;
}
.kg-package-info:last-child {
  margin-bottom: 0;
}
.kg-package-info .kg-info-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.kg-package-info .kg-info-label i {
  font-size: 12px;
  cursor: help;
}
.kg-package-info .kg-info-value {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kg-package-info .kg-info-value i {
  font-size: 16px;
  color: var(--text-muted);
}
.kg-package-info .kg-info-value span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}
.kg-package-info .kg-info-value.kg-dimensions {
  gap: 8px;
}
.kg-package-info .kg-info-value.kg-dimensions .kg-dimension-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  padding: 8px 12px;
}
.kg-package-info .kg-info-value.kg-dimensions .kg-dimension-box i {
  font-size: 14px;
}
.kg-package-info .kg-info-value.kg-dimensions .kg-dimension-box span {
  font-size: 13px;
  font-weight: 500;
}
.kg-package-info .kg-info-value.kg-dimensions .kg-dimension-separator {
  color: var(--text-muted);
  font-weight: 500;
}
.kg-package-info .kg-info-value.kg-weight,
.kg-package-info .kg-info-value.kg-desi {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  padding: 8px 12px;
}

.kg-setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-color);
  margin-bottom: 10px;
}
.kg-setting-item:last-child {
  margin-bottom: 0;
}
.kg-setting-item i {
  font-size: 16px;
  flex-shrink: 0;
}
.kg-setting-item .kg-setting-badge {
  background: rgba(20, 94, 154, 0.1);
  color: #145e9a;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
}

.kg-accepted-offer .kg-accepted-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 16px 0;
}
.kg-accepted-offer .kg-accepted-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kg-accepted-offer .kg-accepted-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-gray-50);
  border: 1px solid #145e9a;
  border-radius: 10px;
  padding: 14px;
}
.kg-accepted-offer .kg-accepted-logo {
  width: 70px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ff6000;
  font-weight: 700;
  font-size: 13px;
}
.kg-accepted-offer .kg-accepted-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.kg-accepted-offer .kg-accepted-details {
  flex: 1;
  min-width: 0;
}
.kg-accepted-offer .kg-accepted-details .kg-accepted-name {
  font-size: 14px;
  font-weight: 600;
  color: #145e9a;
  margin: 0 0 4px 0;
}
.kg-accepted-offer .kg-accepted-details .kg-accepted-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.kg-accepted-offer .kg-accepted-details .kg-accepted-time i {
  font-size: 12px;
}
.kg-accepted-offer .kg-accepted-details .kg-accepted-time i:last-child {
  cursor: help;
}
.kg-accepted-offer .kg-accepted-price {
  text-align: right;
  flex-shrink: 0;
}
.kg-accepted-offer .kg-accepted-price .kg-accepted-amount {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 2px;
}
.kg-accepted-offer .kg-accepted-price .kg-accepted-tax {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.kg-accepted-offer .kg-accepted-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 12px;
}
.kg-accepted-offer .kg-accepted-warning i {
  font-size: 16px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}
.kg-accepted-offer .kg-accepted-warning .kg-accepted-warning-text {
  flex: 1;
}
.kg-accepted-offer .kg-accepted-warning .kg-accepted-warning-text p {
  font-size: 12px;
  line-height: 1.5;
  color: #b45309;
  margin: 0;
}
[data-theme=dark] .kg-accepted-offer .kg-accepted-warning .kg-accepted-warning-text p {
  color: #fbbf24;
}

.kg-tracking-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kg-tracking-info .kg-tracking-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kg-tracking-info .kg-tracking-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.kg-tracking-info .kg-tracking-value {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kg-tracking-info .kg-tracking-value span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}
.kg-tracking-info .kg-tracking-value .form-control {
  flex: 1;
  font-size: 13px;
  padding: 8px 12px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  color: var(--text-color);
}
.kg-tracking-info .kg-tracking-value .kg-copy-btn,
.kg-tracking-info .kg-tracking-value .kg-external-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.kg-tracking-info .kg-tracking-value .kg-copy-btn i,
.kg-tracking-info .kg-tracking-value .kg-external-btn i {
  font-size: 14px;
  color: var(--text-muted);
}
.kg-tracking-info .kg-tracking-value .kg-copy-btn:hover,
.kg-tracking-info .kg-tracking-value .kg-external-btn:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-300);
}
.kg-tracking-info .kg-tracking-status .kg-status-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}
.kg-tracking-info .kg-tracking-time span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.kg-shipment-activities {
  margin-top: 16px;
}
.kg-activities-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 4px;
}
.kg-activity-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding: 12px 0;
}
.kg-activity-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border-color, #e5e7eb);
}
.kg-activity-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #93c5fd;
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}
.kg-activity-body {
  flex: 1;
  min-width: 0;
}
.kg-activity-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.kg-activity-status {
  font-size: 13px;
}
.kg-activity-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.kg-activity-details,
.kg-activity-location,
.kg-activity-source {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.kg-activity-location i {
  font-size: 11px;
}

.kg-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kg-action-buttons .btn {
  width: 100%;
  justify-content: center;
}

.modal {
  backdrop-filter: blur(4px);
}
.modal .modal-dialog {
  max-width: 600px;
}
.modal .modal-content {
  background: var(--color-white);
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.modal .modal-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--color-gray-200);
  justify-content: space-between;
}
.modal .modal-header .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}
.modal .modal-header .btn-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  opacity: 1;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
  background-image: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .modal-header .btn-close i {
  font-size: 24px;
  color: var(--text-color);
}
.modal .modal-header .btn-close:hover {
  background: var(--color-gray-100);
}
.modal .modal-body {
  padding: 24px;
  max-height: calc(100svh - 250px);
  overflow-y: auto;
}
.modal .modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-gray-200);
  gap: 12px;
}
.modal .modal-footer .btn {
  margin: 0;
}

@media (max-width: 1200px) {
  .kg-shipment-detail {
    grid-template-columns: 1fr 360px;
  }
  .kg-create-shipment .kg-create-shipment-grid {
    grid-template-columns: 1fr;
  }
  .kg-create-shipment .kg-address-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .kg-shipment-detail {
    grid-template-columns: 1fr;
  }
  .kg-shipment-detail .kg-shipment-right {
    position: static;
    order: -1;
  }
}
@media (max-width: 768px) {
  .kg-shipment-detail {
    padding: 16px;
    gap: 16px;
  }
  .kg-detail-card-header {
    padding: 14px 16px;
  }
  .kg-detail-card-body {
    padding: 16px;
  }
  .kg-package-tabs .nav-link {
    font-size: 13px;
    margin-right: 16px;
  }
  .kg-package-form .kg-dimensions-input {
    flex-direction: column;
  }
  .kg-package-form .kg-dimensions-input .kg-dimension-separator {
    display: none;
  }
  .kg-package-form .kg-weight-desi-row {
    flex-direction: column;
    gap: 16px;
  }
  .kg-offer-item {
    flex-wrap: wrap;
  }
  .kg-offer-item .kg-offer-logo {
    width: 60px;
  }
  .kg-offer-item .kg-offer-details {
    flex: 1;
    min-width: 100px;
  }
  .kg-offer-item .kg-offer-price {
    width: 100%;
    text-align: left;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .kg-offer-item .kg-offer-price .kg-offer-tax {
    margin-left: auto;
  }
  .kg-create-shipment {
    padding: 0;
  }
  .kg-create-shipment .kg-create-section-header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .kg-create-shipment .kg-create-footer {
    flex-direction: column;
  }
  .kg-create-shipment .kg-create-footer-left, .kg-create-shipment .kg-create-footer-right {
    width: 100%;
  }
  .kg-create-shipment .kg-create-footer-right {
    flex-direction: column;
  }
  .kg-create-shipment .kg-create-footer .btn {
    width: 100%;
  }
  .modal-footer {
    flex-direction: column;
  }
  .modal-footer .btn {
    width: 100%;
  }
}
.kg-price-list {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kg-delivery-type-tabs {
  display: flex;
  gap: 0;
  max-width: 450px;
  margin: 0 auto;
  background: rgba(20, 94, 154, 0.08);
  border-radius: 100px;
  padding: 6px;
}
.kg-delivery-type-tabs .kg-delivery-type-btn {
  flex: 1;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: #145e9a;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.kg-delivery-type-tabs .kg-delivery-type-btn:hover:not(.kg-active) {
  background: rgba(20, 94, 154, 0.05);
}
.kg-delivery-type-tabs .kg-delivery-type-btn.kg-active {
  background: #145e9a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 94, 154, 0.3);
}

.kg-cargo-companies {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.kg-cargo-companies .kg-cargo-company-item {
  min-width: 160px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.kg-cargo-companies .kg-cargo-company-item img {
  width: 140px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.kg-cargo-companies .kg-cargo-company-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}
.kg-cargo-companies .kg-cargo-company-item:hover {
  border-color: #145e9a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(20, 94, 154, 0.15);
}
.kg-cargo-companies .kg-cargo-company-item.kg-active {
  background: linear-gradient(135deg, rgba(20, 94, 154, 0.08) 0%, rgba(20, 94, 154, 0.12) 100%);
  border-color: #145e9a;
  box-shadow: 0 4px 12px rgba(20, 94, 154, 0.2);
}
.kg-cargo-companies .kg-cargo-company-item.kg-active span {
  color: #145e9a;
}
.kg-cargo-companies .kg-cargo-company-item.kg-active img {
  transform: scale(1.05);
}

.kg-price-table-wrapper .kg-price-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-price-table-wrapper .kg-price-table-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.kg-price-table .table {
  margin: 0;
}
.kg-price-table .table thead {
  background: var(--color-gray-50);
}
.kg-price-table .table thead th {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--text-color);
}
.kg-price-table .table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-price-table .table.table-striped tbody tr:nth-of-type(odd) > * {
  background-color: rgba(20, 94, 154, 0.02) !important;
}
.kg-price-table .table tbody tr {
  background: var(--color-white);
}

[data-theme=dark] .kg-price-table .table thead th {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  background-color: var(--color-white);
}
[data-theme=dark] .kg-price-table .table tbody tr {
  background: transparent;
}
[data-theme=dark] .kg-price-table .table tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}
[data-theme=dark] .kg-price-table .table.table-striped tbody tr:nth-of-type(odd) > * {
  background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-theme=dark] .kg-price-table .table.table-striped tbody tr:nth-of-type(even) > * {
  background-color: transparent !important;
}

.kg-company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kg-company-cell .kg-company-logo {
  width: 70px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.kg-company-cell .kg-company-name {
  font-weight: 500;
  color: var(--text-color);
}

.kg-price-value {
  font-size: 15px;
  font-weight: 600;
  color: #10b981;
}

.kg-price-info-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-price-info-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.kg-price-info-item h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 8px 0;
}
.kg-price-info-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 1200px) {
  .kg-price-info-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .kg-price-list {
    padding: 0 16px 16px 16px;
    gap: 16px;
  }
  .kg-delivery-type-tabs {
    max-width: 100%;
    padding: 4px;
  }
  .kg-delivery-type-tabs .kg-delivery-type-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  .kg-cargo-companies {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }
  .kg-cargo-companies::-webkit-scrollbar {
    height: 4px;
  }
  .kg-cargo-companies::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 2px;
  }
  .kg-cargo-companies .kg-cargo-company-item {
    min-width: 100px;
    flex-shrink: 0;
    padding: 10px;
  }
  .kg-cargo-companies .kg-cargo-company-item img {
    width: 80px;
    height: 30px;
  }
  .kg-price-table {
    overflow-x: auto;
  }
  .kg-price-table::-webkit-scrollbar {
    height: 6px;
  }
  .kg-price-table::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 3px;
  }
  .kg-price-table .table {
    min-width: 600px;
  }
  .kg-price-table .table thead th {
    padding: 12px;
    font-size: 12px;
  }
  .kg-price-table .table tbody td {
    padding: 12px;
    font-size: 13px;
  }
  .kg-company-cell {
    gap: 8px;
  }
  .kg-company-cell .kg-company-logo {
    width: 50px;
    height: 24px;
  }
  .kg-company-cell .kg-company-name {
    font-size: 13px;
  }
  .kg-price-value {
    font-size: 14px;
  }
  .kg-price-info-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .kg-price-info-item {
    padding: 10px 12px;
  }
  .kg-price-info-item h5 {
    font-size: 13px;
  }
  .kg-price-info-item p {
    font-size: 12px;
  }
  .kg-price-info-item img {
    width: 60px;
    height: 28px;
  }
  .kg-price-info-item span {
    font-size: 12px;
  }
  .kg-price-table .table {
    font-size: 13px;
  }
  .kg-price-table .table thead th {
    padding: 10px 12px;
    font-size: 11px;
  }
  .kg-price-table .table tbody td {
    padding: 12px;
  }
  .kg-company-cell {
    gap: 8px;
  }
  .kg-company-cell .kg-company-logo {
    width: 60px;
    height: 28px;
  }
  .kg-company-cell .kg-company-name {
    font-size: 13px;
  }
  .kg-price-info-content {
    grid-template-columns: 1fr;
  }
}
.kg-profile-page {
  max-width: 900px;
  margin: 0 auto;
}

.kg-profile-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--color-gray-100);
  border-radius: 12px;
  padding: 6px;
}
.kg-profile-tabs .kg-profile-tab {
  flex: 1;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-profile-tabs .kg-profile-tab:hover:not(.kg-active) {
  background: var(--color-white);
  color: var(--text-color);
}
.kg-profile-tabs .kg-profile-tab.kg-active {
  background: var(--color-white);
  color: #145e9a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kg-tab-panel {
  display: none;
}
.kg-tab-panel.kg-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.kg-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-profile-header .kg-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.kg-profile-header .kg-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kg-profile-header .kg-profile-info-main h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px 0;
}
.kg-profile-header .kg-profile-info-main p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.kg-profile-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}
.kg-profile-form .form-control {
  font-size: 14px;
  padding: 10px 14px;
}
.kg-profile-form .input-group .btn {
  padding: 10px 20px;
  font-size: 13px;
}

.kg-info-field {
  position: relative;
}
.kg-info-field .form-control {
  background: var(--color-gray-50);
  border: 2px solid var(--color-gray-200);
  cursor: not-allowed;
  padding-right: 40px;
}
.kg-info-field .form-control:focus {
  background: var(--color-gray-50);
  border-color: var(--color-gray-200);
  box-shadow: none;
}

.kg-phone-field {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.kg-phone-field .form-control {
  flex: 1;
  background: var(--color-gray-50);
  border: 2px solid var(--color-gray-200);
  cursor: not-allowed;
}
.kg-phone-field .form-control:focus {
  background: var(--color-gray-50);
  border-color: var(--color-gray-200);
  box-shadow: none;
}
.kg-phone-field .kg-update-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 110px;
}

.kg-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray-200);
}

.kg-forgot-link {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.kg-forgot-link a {
  color: #145e9a;
  text-decoration: none;
}
.kg-forgot-link a:hover {
  text-decoration: underline;
}

.kg-danger-zone {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--color-gray-200);
}

.kg-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.kg-alert i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.kg-alert p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.kg-alert.kg-alert-danger {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #DC2626;
}
.kg-alert.kg-alert-info {
  background: rgba(20, 94, 154, 0.08);
  border: 1px solid rgba(20, 94, 154, 0.2);
  color: #145e9a;
}

.kg-document-date {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.accordion .accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion .accordion-item:last-child {
  margin-bottom: 0;
}
.accordion .accordion-button {
  background: var(--color-white);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  box-shadow: none;
}
.accordion .accordion-button:not(.collapsed) {
  background: var(--color-gray-50);
  color: #145e9a;
  box-shadow: none;
}
.accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}
.accordion .accordion-button::after {
  filter: var(--accordion-arrow-filter, none);
}
.accordion .accordion-body {
  background: var(--color-gray-50);
  padding: 0;
}
.accordion .accordion-body .kg-document-date {
  padding: 16px 20px;
}

[data-theme=dark] .accordion .accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .accordion .accordion-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
}
[data-theme=dark] .accordion .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.05);
  color: #145e9a;
}
[data-theme=dark] .accordion .accordion-button::after {
  filter: brightness(0) invert(1);
}
[data-theme=dark] .accordion .accordion-body {
  background: rgba(255, 255, 255, 0.05);
}

.kg-addresses-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}
.kg-addresses-tabs .kg-addresses-tab {
  padding: 18px 24px;
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-gray-200);
  color: var(--text-color-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}
.kg-addresses-tabs .kg-addresses-tab:hover {
  color: var(--text-color);
}
.kg-addresses-tabs .kg-addresses-tab.kg-active {
  color: #145e9a;
  border-bottom-color: #145e9a;
}

.kg-addresses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kg-addresses-search {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.kg-addresses-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-secondary);
  font-size: 16px;
}
.kg-addresses-search .form-control {
  padding-left: 44px;
}
.kg-addresses-search .form-control:focus {
  border-color: #145e9a;
  box-shadow: 0 0 0 0.2rem rgba(20, 94, 154, 0.1);
}

.kg-tab-content {
  position: relative;
}

.kg-addresses-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.kg-addresses-tab-panel.kg-active {
  display: block;
}

.kg-addresses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.kg-address-card {
  padding: 0;
}
.kg-address-card:hover {
  transform: none;
  box-shadow: none;
}

.kg-address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 20px 24px;
  border-bottom: none;
}
.kg-address-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.kg-address-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  border: 1px solid #10b981;
  color: #10b981;
}
.kg-address-badge i {
  font-size: 12px;
}

.kg-address-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 20px;
}

.kg-address-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
}
.kg-address-item i {
  font-size: 16px;
  color: var(--text-color-secondary);
  margin-top: 2px;
  flex-shrink: 0;
}
.kg-address-item span {
  flex: 1;
}

.kg-address-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-gray-200);
}

.kg-btn-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: transparent;
}
.kg-btn-action i {
  font-size: 14px;
}

.kg-btn-edit {
  color: #145e9a;
  border-color: #145e9a;
}
.kg-btn-edit:hover {
  background-color: rgba(20, 94, 154, 0.1);
}

.kg-btn-delete {
  color: #DC2626;
  border-color: #DC2626;
}
.kg-btn-delete:hover {
  background-color: rgba(220, 38, 38, 0.1);
}

.kg-address-empty {
  padding: 48px 24px;
  border: 2px dashed var(--color-gray-200);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 280px;
}
.kg-address-empty:hover {
  border-color: #145e9a;
  background-color: rgba(20, 94, 154, 0.02);
}
.kg-address-empty:hover i, .kg-address-empty:hover span {
  color: #145e9a;
}
.kg-address-empty i {
  font-size: 48px;
  color: var(--text-color-secondary);
  transition: color 0.3s ease;
}
.kg-address-empty span {
  font-size: 16px;
  font-weight: 500;
  color: #145e9a;
  transition: color 0.3s ease;
}

.kg-addresses-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}
.kg-addresses-footer span {
  color: var(--text-color-secondary);
  font-size: 14px;
}

@media (max-width: 992px) {
  .kg-addresses-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .kg-addresses-header {
    flex-direction: column;
    align-items: stretch;
  }
  .kg-addresses-search {
    max-width: 100%;
  }
  .kg-addresses-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .kg-addresses-tabs::-webkit-scrollbar {
    display: none;
  }
  .kg-addresses-footer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .kg-profile-page {
    padding: 0;
  }
  .kg-profile-tabs {
    gap: 4px;
    padding: 4px;
  }
  .kg-profile-tabs .kg-profile-tab {
    padding: 10px 16px;
    font-size: 13px;
  }
  .kg-profile-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .kg-profile-header .kg-profile-avatar {
    width: 70px;
    height: 70px;
  }
  .kg-profile-header .kg-profile-info-main h2 {
    font-size: 18px;
  }
}
.kg-billing-cards {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.kg-billing-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kg-billing-card.kg-billing-balance {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.kg-billing-card.kg-billing-balance .kg-billing-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kg-billing-card-label {
  font-size: 14px;
  color: var(--color-gray-500);
  font-weight: 500;
}

.kg-billing-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #145e9a;
}
.kg-billing-card-value.kg-red-text {
  color: #DC2626;
}

.kg-billing-transfer-card {
  margin-bottom: 24px;
}
.kg-billing-transfer-card .kg-card-header .kg-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #145e9a;
}
.kg-billing-transfer-card .kg-card-header .kg-card-title i {
  font-size: 20px;
}

.kg-transfer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kg-transfer-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.kg-transfer-label {
  min-width: 140px;
  font-size: 14px;
  color: var(--color-gray-500);
  font-weight: 500;
}

.kg-transfer-value {
  font-size: 14px;
  color: var(--color-gray-900);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kg-transfer-value strong {
  font-weight: 700;
}

.kg-copy-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-gray-100);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.kg-copy-btn i {
  font-size: 14px;
  color: var(--color-gray-600);
}
.kg-copy-btn:hover {
  background: #145e9a;
}
.kg-copy-btn:hover i {
  color: #fff;
}

.kg-transfer-notes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-200);
}
.kg-transfer-notes p {
  font-size: 13px;
  color: var(--color-gray-600);
  margin-bottom: 8px;
  line-height: 1.6;
}
.kg-transfer-notes p:last-child {
  margin-bottom: 0;
}

.kg-note-star {
  color: #DC2626;
  font-weight: 600;
}

.kg-billing-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0 24px;
}

.kg-billing-tab {
  padding: 16px 24px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-500);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.kg-billing-tab:hover {
  color: #145e9a;
}
.kg-billing-tab.kg-active {
  color: #145e9a;
}
.kg-billing-tab.kg-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #145e9a;
  border-radius: 3px 3px 0 0;
}

.kg-billing-tab-content {
  display: none;
}
.kg-billing-tab-content.kg-active {
  display: block;
}

.kg-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--color-gray-200);
}

.kg-table-info {
  font-size: 14px;
  color: var(--color-gray-500);
}

.kg-pagination {
  display: flex;
  gap: 8px;
}

.kg-pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-pagination-btn:hover {
  border-color: #145e9a;
  color: #145e9a;
}
.kg-pagination-btn.kg-active {
  background: #145e9a;
  border-color: #145e9a;
  color: #fff;
}

.kg-empty-state {
  text-align: center;
  padding: 60px 24px !important;
}

.kg-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.kg-empty-content i {
  font-size: 48px;
  color: var(--color-gray-300);
}
.kg-empty-content p {
  font-size: 14px;
  color: var(--color-gray-500);
  margin: 0;
}

@media (max-width: 1024px) {
  .kg-billing-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .kg-billing-cards {
    grid-template-columns: 1fr;
  }
  .kg-billing-card.kg-billing-balance {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .kg-transfer-row {
    flex-direction: column;
    gap: 4px;
  }
  .kg-transfer-label {
    min-width: auto;
  }
  .kg-billing-tabs {
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .kg-billing-tabs::-webkit-scrollbar {
    display: none;
  }
  .kg-billing-tab {
    padding: 14px 16px;
    white-space: nowrap;
  }
  .kg-table-footer {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}
.kg-modal-content {
  background: var(--color-white);
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.kg-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}
.kg-modal-close i {
  font-size: 16px;
  color: var(--color-gray-700);
}
.kg-modal-close:hover {
  background: var(--color-gray-200);
}

.kg-credit-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  position: relative;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.kg-credit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 Q50,50 100,0 L100,100 Q50,50 0,100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
  opacity: 0.5;
  border-radius: 16px;
}

.kg-card-chip {
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border-radius: 6px;
  margin-bottom: 16px;
  position: relative;
}
.kg-card-chip::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.kg-card-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 2px;
}

.kg-card-number {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 24px;
  font-family: "Courier New", monospace;
}

.kg-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.kg-card-holder,
.kg-card-expiry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kg-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.kg-card-name,
.kg-card-date {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.kg-balance-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}
.kg-balance-form .form-control,
.kg-balance-form .form-select {
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-color);
  background: var(--color-white);
  transition: all 0.3s ease;
}
.kg-balance-form .form-control:focus,
.kg-balance-form .form-select:focus {
  border-color: #145e9a;
  box-shadow: 0 0 0 4px rgba(20, 94, 154, 0.1);
  outline: none;
}
.kg-balance-form .form-control::placeholder,
.kg-balance-form .form-select::placeholder {
  color: var(--color-gray-400);
}

.kg-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kg-support-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.kg-support-stat {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}
.kg-support-stat:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.kg-support-stat.kg-stat-all {
  border-top: 3px solid #145e9a;
}
.kg-support-stat.kg-stat-all .kg-support-stat-count {
  color: #145e9a;
}
.kg-support-stat.kg-stat-open {
  border-top: 3px solid #f59e0b;
}
.kg-support-stat.kg-stat-open .kg-support-stat-count {
  color: #f59e0b;
}
.kg-support-stat.kg-stat-answered {
  border-top: 3px solid #06b6d4;
}
.kg-support-stat.kg-stat-answered .kg-support-stat-count {
  color: #06b6d4;
}
.kg-support-stat.kg-stat-closed {
  border-top: 3px solid #10b981;
}
.kg-support-stat.kg-stat-closed .kg-support-stat-count {
  color: #10b981;
}

.kg-support-stat-count {
  font-size: 28px;
  font-weight: 700;
}

.kg-support-stat-label {
  font-size: 13px;
  color: var(--color-gray-500);
  font-weight: 500;
}

.kg-support-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gray-200);
  flex-wrap: wrap;
}

.kg-ticket-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kg-ticket-title strong {
  font-size: 14px;
  color: var(--color-gray-900);
  font-weight: 600;
}
.kg-ticket-title .kg-ticket-id {
  font-size: 12px;
  color: var(--color-gray-500);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
}
.modal-header .modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
}
.modal-header .modal-title i {
  font-size: 20px;
  color: #145e9a;
}

@media (max-width: 768px) {
  .kg-support-header {
    flex-direction: column;
    align-items: stretch;
  }
  .kg-support-stats {
    flex-wrap: wrap;
  }
  .kg-support-stat {
    flex: 1;
    min-width: calc(50% - 6px);
  }
  .kg-support-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .kg-support-filters .kg-navbar-search {
    width: 100%;
  }
  .kg-support-filters .kg-navbar-search input {
    width: 100%;
  }
  .kg-support-filters .kg-time-filter {
    width: 100%;
  }
  .kg-support-filters .kg-time-filter .kg-time-btn {
    width: 100%;
    justify-content: space-between;
  }
}
.kg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-gray-100);
  border-radius: 8px;
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}
.kg-back-btn i {
  font-size: 16px;
}
.kg-back-btn:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
}

.kg-create-ticket-container {
  max-width: 900px;
  margin: 0 auto;
}

.kg-create-ticket-info {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(20, 94, 154, 0.05);
  border: 1px solid rgba(20, 94, 154, 0.2);
  border-left: 4px solid #145e9a;
  border-radius: 12px;
  margin-bottom: 24px;
}

.kg-info-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #145e9a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-info-icon i {
  font-size: 20px;
  color: #fff;
}

.kg-info-text {
  flex: 1;
}
.kg-info-text p {
  margin: 0;
  font-size: 14px;
  color: var(--color-gray-700);
  line-height: 1.6;
}

.kg-ticket-form {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 32px;
}

.kg-form-error {
  display: none;
  color: #DC2626;
  font-size: 13px;
  margin-top: 6px;
}
.kg-form-error.kg-show {
  display: block;
}

.kg-custom-checkbox {
  padding: 16px;
  background: var(--color-gray-50);
  border-radius: 10px;
  border: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
}
.kg-custom-checkbox:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-300);
}
.kg-custom-checkbox .form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-300);
  margin-top: 0;
  cursor: pointer;
}
.kg-custom-checkbox .form-check-input:checked {
  background-color: #145e9a;
  border-color: #145e9a;
}
.kg-custom-checkbox .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(20, 94, 154, 0.1);
}
.kg-custom-checkbox .form-check-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  cursor: pointer;
  margin-left: 8px;
  position: relative;
  top: -2px;
}

.kg-file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-gray-50);
  border: 2px dashed var(--color-gray-200);
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}
.kg-file-upload:hover {
  border-color: #145e9a;
  background: rgba(20, 94, 154, 0.02);
}

.kg-file-info {
  font-size: 14px;
  color: var(--color-gray-500);
  flex: 1;
}

.kg-file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kg-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
}
.kg-file-item .kg-file-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.kg-file-item .kg-file-name i {
  font-size: 18px;
  color: #145e9a;
}
.kg-file-item .kg-file-name span {
  font-size: 14px;
  color: var(--color-gray-700);
}
.kg-file-item .kg-file-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--color-gray-500);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-file-item .kg-file-remove i {
  font-size: 14px;
}
.kg-file-item .kg-file-remove:hover {
  background: #DC2626;
  color: #fff;
}

.kg-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-200);
}

@media (max-width: 768px) {
  .kg-navbar-left {
    flex-wrap: wrap;
    gap: 12px;
  }
  .kg-back-btn {
    order: -1;
    width: 100%;
  }
  .kg-create-ticket-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .kg-ticket-form {
    padding: 20px;
  }
  .kg-form-actions {
    flex-direction: column;
  }
  .kg-form-actions button {
    width: 100%;
  }
}
.kg-integrations-header {
  margin-bottom: 24px;
}
.kg-integrations-header .kg-integrations-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 20px;
}
.kg-integrations-header .kg-integrations-search {
  position: relative;
  max-width: 500px;
}
.kg-integrations-header .kg-integrations-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-gray-400);
}
.kg-integrations-header .kg-integrations-search input {
  width: 100%;
  height: 50px;
  padding: 0 20px 0 50px;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  font-size: 15px;
  background: var(--color-white);
  color: var(--text-color);
  transition: all 0.3s ease;
}
.kg-integrations-header .kg-integrations-search input:focus {
  outline: none;
  border-color: #145e9a;
  box-shadow: 0 0 0 4px rgba(20, 94, 154, 0.1);
}
.kg-integrations-header .kg-integrations-search input::placeholder {
  color: var(--color-gray-400);
}

.kg-integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.kg-integration-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.kg-integration-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #145e9a;
}
.kg-integration-card .kg-integration-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.kg-integration-card .kg-integration-info {
  flex: 1;
}
.kg-integration-card .kg-integration-logo {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  padding: 8px;
}
.kg-integration-card .kg-integration-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.kg-integration-card .kg-integration-logo svg {
  max-width: 100%;
  max-height: 100%;
}
.kg-integration-card .kg-integration-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1.4;
}
.kg-integration-card .kg-integration-desc {
  font-size: 14px;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.kg-integration-card .kg-integration-btn {
  margin-top: auto;
}
.kg-integration-card .kg-no-results {
  text-align: center;
  padding: 80px 20px;
}
.kg-integration-card .kg-no-results i {
  font-size: 64px;
  color: var(--color-gray-300);
  margin-bottom: 20px;
}
.kg-integration-card .kg-no-results p {
  font-size: 16px;
  color: var(--color-gray-500);
  margin: 0;
}

@media (max-width: 1200px) {
  .kg-integrations-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
@media (max-width: 768px) {
  .kg-integrations-grid {
    grid-template-columns: 1fr;
  }
  .kg-integrations-header .kg-integrations-search {
    max-width: 100%;
  }
}
.kg-integration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.kg-integration-modal.kg-show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.kg-integration-modal.kg-show .kg-integration-modal-content {
  transform: scale(1);
  opacity: 1;
}

.kg-integration-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.kg-integration-modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  width: 90%;
  max-width: 1200px;
  max-height: 90svh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.kg-integration-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 2;
}
.kg-integration-modal-close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
  transform: rotate(90deg);
}

.kg-integration-modal-body {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 600px;
}

.kg-integration-modal-left {
  padding: 40px;
  background: var(--color-gray-50);
  border-right: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kg-integration-modal-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.kg-integration-modal-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kg-integration-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1.3;
}

.kg-integration-modal-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray-600);
  margin: 0;
}

.kg-integration-modal-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.kg-integration-modal-guide {
  flex: 1;
}

.kg-integration-guide-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 16px 0;
  line-height: 1.4;
}
.kg-integration-guide-title span {
  color: #145e9a;
}

.kg-integration-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kg-integration-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.kg-step-number {
  min-width: 28px;
  height: 28px;
  background: #145e9a;
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.kg-step-content {
  flex: 1;
}
.kg-step-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-gray-700);
}
.kg-step-content p strong {
  color: var(--color-gray-900);
  font-weight: 600;
}

.kg-integration-visual {
  background: var(--color-gray-50);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  position: relative;
}

.kg-visual-image {
  aspect-ratio: 16/9;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-visual-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  transform: translateY(-50%);
}

.kg-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.kg-arrow-btn:hover {
  background: white;
  color: #145e9a;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kg-integration-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
}

.kg-form-group {
  margin-bottom: 16px;
}
.kg-form-group:last-child {
  margin-bottom: 0;
}
.kg-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 6px;
}
.kg-form-group .kg-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-color);
  background: var(--color-white);
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}
.kg-form-group .kg-form-control:focus {
  outline: none;
  border-color: #145e9a;
  box-shadow: 0 0 0 3px rgba(20, 94, 154, 0.1);
}
.kg-form-group .kg-form-control::placeholder {
  color: var(--color-gray-400);
}

.kg-integration-form-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.kg-integration-form-actions .btn {
  min-width: 100px;
  padding: 10px 16px;
  font-size: 13px;
}

@media (max-width: 992px) {
  .kg-integration-modal-content {
    width: 95%;
    max-height: 95svh;
  }
  .kg-integration-modal-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .kg-integration-modal-left {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-200);
  }
}
@media (max-width: 576px) {
  .kg-integration-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  .kg-integration-modal-left,
  .kg-integration-modal-right {
    padding: 24px;
  }
  .kg-integration-form-actions {
    flex-direction: column;
  }
  .kg-integration-form-actions .btn {
    width: 100%;
  }
}
.kg-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.3s ease;
  font-size: 18px;
}
.kg-back-btn:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
}

.kg-integration-detail {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 20px;
  height: calc(100svh - 70px - 48px);
}

.kg-integration-detail-left .kg-integration-detail-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
}

.kg-integration-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-gray-200);
}

.kg-integration-detail-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}
.kg-integration-detail-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kg-integration-detail-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1.3;
}

.kg-integration-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kg-integration-info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.kg-integration-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kg-integration-info-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-gray-700);
  padding-left: 20px;
  position: relative;
}
.kg-integration-info-list li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--color-gray-400);
}
.kg-integration-info-list li strong {
  color: var(--color-gray-900);
  font-weight: 600;
}

.kg-integration-note {
  background: #E8F4FD;
  border: 1px solid #B3D9F2;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.kg-integration-note i {
  font-size: 16px;
  color: #145e9a;
  flex-shrink: 0;
}
.kg-integration-note span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-gray-700);
}
.kg-integration-note span strong {
  color: #145e9a;
  font-weight: 600;
  cursor: pointer;
}
.kg-integration-note span strong:hover {
  text-decoration: underline;
}

.kg-integration-detail-right {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kg-integration-video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.kg-integration-video-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}
.kg-integration-video-title span {
  color: #145e9a;
}

.kg-integration-video-wrapper {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
}
.kg-integration-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.kg-form-help {
  display: block;
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 4px;
}

@media (max-width: 992px) {
  .kg-integration-detail {
    grid-template-columns: 1fr;
    height: auto;
  }
  .kg-integration-detail-left .kg-integration-detail-card {
    height: auto;
  }
  .kg-integration-video-wrapper {
    min-height: 300px;
  }
}
@media (max-width: 576px) {
  .kg-integration-detail-left .kg-integration-detail-card {
    padding: 20px;
  }
  .kg-integration-detail-right {
    padding: 20px;
  }
  .kg-integration-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .kg-integration-video-wrapper {
    min-height: 250px;
  }
}
.kg-support-detail {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kg-support-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-gray-200);
}

.kg-support-detail-info {
  flex: 1;
}

.kg-support-detail-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.kg-support-detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.kg-support-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kg-meta-label {
  font-size: 12px;
  color: var(--color-gray-500);
  font-weight: 500;
}

.kg-meta-value {
  font-size: 14px;
  color: var(--color-gray-900);
  font-weight: 500;
}

.kg-support-detail-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.kg-support-action-label {
  font-size: 12px;
  color: var(--color-gray-500);
  font-weight: 500;
}

.kg-support-action-value {
  font-size: 14px;
  color: var(--color-gray-900);
  font-weight: 500;
}

.kg-support-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kg-support-messages-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-gray-200);
}

.kg-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.kg-message.kg-message-user {
  flex-direction: row-reverse;
}

.kg-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.kg-message-avatar.kg-avatar-user {
  background: #145e9a;
}
.kg-message-avatar.kg-avatar-support {
  background: #F59E0B;
}

.kg-message-content {
  flex: 1;
  max-width: 70%;
}

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

.kg-message-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kg-message-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-900);
}

.kg-message-time {
  font-size: 11px;
  color: var(--color-gray-500);
}

.kg-message-body {
  background: var(--color-gray-50);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-gray-200);
}
.kg-message-body p {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-gray-700);
}
.kg-message-body p:last-child {
  margin-bottom: 0;
}

.kg-message-user .kg-message-body {
  background: rgba(20, 94, 154, 0.05);
  border-color: rgba(20, 94, 154, 0.1);
}

.kg-message-support .kg-message-body {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.1);
}

.kg-message-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  font-size: 12px;
  color: var(--color-gray-700);
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-message-attachment:hover {
  background: var(--color-gray-50);
  border-color: #145e9a;
  color: #145e9a;
}
.kg-message-attachment i {
  font-size: 14px;
}

.kg-support-reply {
  border-top: 1px solid var(--color-gray-200);
  padding-top: 20px;
}

.kg-support-reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kg-reply-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-color);
  background: var(--color-white);
  resize: vertical;
  min-height: 100px;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}
.kg-reply-textarea:focus {
  outline: none;
  border-color: #145e9a;
  box-shadow: 0 0 0 3px rgba(20, 94, 154, 0.1);
}
.kg-reply-textarea::placeholder {
  color: var(--color-gray-400);
}

.kg-reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.kg-reply-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kg-file-info-text {
  font-size: 12px;
  color: var(--color-gray-500);
}

.kg-settings-section {
  margin-bottom: 48px;
}
.kg-settings-section:last-child {
  margin-bottom: 0;
}

.kg-settings-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100%;
}
.kg-settings-card:hover {
  border-color: #145e9a;
  box-shadow: 0 4px 12px rgba(20, 94, 154, 0.1);
  transform: translateY(-2px);
}
.kg-settings-card:hover .kg-settings-icon {
  background: #145e9a;
}
.kg-settings-card:hover .kg-settings-icon i {
  color: #ffffff;
}
.kg-settings-card .kg-settings-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(20, 94, 154, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.kg-settings-card .kg-settings-icon i {
  font-size: 20px;
  color: #145e9a;
  transition: all 0.3s ease;
}
.kg-settings-card .kg-settings-icon.kg-blue {
  background: rgba(20, 94, 154, 0.1);
}
.kg-settings-card .kg-settings-icon.kg-blue i {
  color: #145e9a;
}
.kg-settings-card .kg-settings-content .kg-settings-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 8px 0;
}
.kg-settings-card .kg-settings-content .kg-settings-desc {
  font-size: 13px;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin: 0;
}

.kg-invoice-form {
  max-width: 700px;
  margin: 0 auto;
}
.kg-invoice-form .kg-invoice-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.kg-invoice-form .kg-invoice-header .kg-invoice-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 94, 154, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-invoice-form .kg-invoice-header .kg-invoice-icon i {
  font-size: 24px;
  color: #145e9a;
}
.kg-invoice-form .kg-invoice-header .kg-invoice-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.kg-invoice-form .kg-card {
  padding: 32px;
}
.kg-invoice-form .form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}
.kg-invoice-form .form-control,
.kg-invoice-form .form-select {
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--text-color);
  transition: all 0.3s ease;
}
.kg-invoice-form .form-control:focus,
.kg-invoice-form .form-select:focus {
  border-color: #145e9a;
  box-shadow: 0 0 0 3px rgba(20, 94, 154, 0.1);
  outline: none;
}
.kg-invoice-form .form-control::placeholder,
.kg-invoice-form .form-select::placeholder {
  color: var(--color-gray-400);
}
.kg-invoice-form .form-control[readonly],
.kg-invoice-form .form-select[readonly] {
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  cursor: not-allowed;
}
.kg-invoice-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.kg-invoice-form .kg-id-field {
  display: flex;
  gap: 8px;
  align-items: center;
}
.kg-invoice-form .kg-id-field .form-control {
  flex: 1;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 13px;
  color: var(--color-gray-600);
}
.kg-invoice-form .kg-copy-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.kg-invoice-form .kg-copy-btn i {
  font-size: 16px;
  color: var(--color-gray-600);
}
.kg-invoice-form .kg-copy-btn:hover {
  background: var(--color-gray-50);
  border-color: #145e9a;
}
.kg-invoice-form .kg-copy-btn:hover i {
  color: #145e9a;
}
.kg-invoice-form .kg-auto-fill-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-invoice-form .kg-auto-fill-btn i {
  font-size: 14px;
}
.kg-invoice-form .kg-auto-fill-btn:hover {
  background: #059669;
}
.kg-invoice-form .kg-select-wrapper {
  position: relative;
}
.kg-invoice-form .kg-select-wrapper .form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px;
}
.kg-invoice-form .input-group-text {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-right: 0;
  color: var(--color-gray-500);
  padding: 10px 14px;
}
.kg-invoice-form .input-group-text i {
  font-size: 16px;
}
.kg-invoice-form .input-group .form-control {
  border-left: 0;
}
.kg-invoice-form .input-group .form-control:focus {
  border-left: 0;
}
.kg-invoice-form .kg-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-200);
}
.kg-invoice-form .kg-form-actions .btn {
  min-width: 120px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
}

.kg-cod-info-text {
  padding: 20px;
  background: var(--color-gray-50);
  border-radius: 10px;
  margin-bottom: 32px;
  border: 1px solid var(--color-gray-200);
}
.kg-cod-info-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}
.kg-cod-info-text p:not(:last-child) {
  margin-bottom: 12px;
}

.kg-cod-section-title {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-cod-section-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.kg-account-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-account-profile .kg-account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-account-profile .kg-account-avatar span {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}
.kg-account-profile .kg-account-info {
  flex: 1;
}
.kg-account-profile .kg-account-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 4px 0;
}
.kg-account-profile .kg-account-info p {
  font-size: 14px;
  color: var(--color-gray-600);
  margin: 0;
}

.kg-account-form .kg-form-help {
  display: block;
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 6px;
}
.kg-account-form .kg-username-field {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  background: var(--color-gray-50);
  font-size: 14px;
}
.kg-account-form .kg-username-field .kg-username-prefix {
  color: var(--color-gray-900);
  font-weight: 500;
}
.kg-account-form .kg-username-field .kg-username-suffix {
  color: var(--color-gray-600);
}

.kg-return-codes {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.kg-return-codes .kg-return-code-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.kg-return-codes .kg-return-code-actions .btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kg-return-codes .kg-return-code-actions .btn i {
  font-size: 18px;
}

.kg-return-code-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}
.kg-return-code-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.kg-return-code-item .kg-return-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-return-code-item .kg-return-code-header .kg-return-code-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kg-return-code-item .kg-return-code-header .kg-return-code-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.kg-return-code-item .kg-return-code-header .kg-return-code-delete {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  color: var(--color-gray-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-return-code-item .kg-return-code-header .kg-return-code-delete i {
  font-size: 16px;
}
.kg-return-code-item .kg-return-code-header .kg-return-code-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: #DC2626;
  color: #DC2626;
}
.kg-return-code-item .kg-return-code-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-gray-50);
  border-radius: 12px;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-icon i {
  font-size: 18px;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-icon.kg-green {
  background: rgba(16, 185, 129, 0.1);
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-icon.kg-green i {
  color: #10b981;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-icon.kg-blue {
  background: rgba(20, 94, 154, 0.1);
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-icon.kg-blue i {
  color: #145e9a;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-info {
  display: flex;
  flex-direction: column;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-info .kg-return-stat-label {
  font-size: 13px;
  color: var(--color-gray-600);
  font-weight: 500;
}
.kg-return-code-item .kg-return-code-stats .kg-return-stat .kg-return-stat-info .kg-return-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-top: 2px;
}
.kg-return-code-item .kg-return-code-link .kg-return-link-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 10px;
}
.kg-return-code-item .kg-return-code-link .kg-return-link-label i {
  font-size: 16px;
  color: var(--color-gray-500);
}
.kg-return-code-item .kg-return-code-link .kg-return-link-field {
  display: flex;
  gap: 12px;
  align-items: center;
}
.kg-return-code-item .kg-return-code-link .kg-return-link-field .form-control {
  flex: 1;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  background: var(--color-gray-50);
  color: var(--color-gray-700);
  font-family: "Monaco", "Courier New", monospace;
}
.kg-return-code-item .kg-return-code-link .kg-return-link-field .btn-success {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kg-return-code-item .kg-return-code-link .kg-return-link-field .btn-success i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .kg-return-code-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }
  .kg-return-link-field {
    flex-direction: column;
  }
  .kg-return-link-field .btn-success {
    width: 100%;
    justify-content: center;
  }
}
.kg-create-return-code {
  max-width: 1200px;
  margin: 0 auto;
}
.kg-create-return-code .kg-page-header {
  margin-bottom: 24px;
}
.kg-create-return-code .kg-page-header .kg-page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.kg-create-return-code .kg-alert-info {
  margin-bottom: 32px;
}
.kg-create-return-code .kg-search-field {
  position: relative;
}
.kg-create-return-code .kg-search-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-gray-400);
}
.kg-create-return-code .kg-search-field .form-control {
  padding-left: 44px;
}
.kg-create-return-code .kg-address-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.kg-create-return-code .kg-address-search-header .form-label {
  margin: 0;
}
.kg-create-return-code .kg-address-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kg-create-return-code .kg-address-item {
  padding: 20px;
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--color-white);
}
.kg-create-return-code .kg-address-item:hover {
  border-color: var(--color-gray-300);
}
.kg-create-return-code .kg-address-item.kg-selected {
  border-color: #145e9a;
  background: rgba(20, 94, 154, 0.02);
}
.kg-create-return-code .kg-address-item.kg-selected .kg-address-item-check {
  background: #145e9a;
  color: #ffffff;
}
.kg-create-return-code .kg-address-item.kg-selected .kg-address-item-check i {
  display: block;
}
.kg-create-return-code .kg-address-item-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.kg-create-return-code .kg-address-item-check i {
  font-size: 14px;
  display: none;
}
.kg-create-return-code .kg-address-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kg-create-return-code .kg-address-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}
.kg-create-return-code .kg-address-item-name, .kg-create-return-code .kg-address-item-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray-700);
}
.kg-create-return-code .kg-address-item-name i, .kg-create-return-code .kg-address-item-detail i {
  font-size: 14px;
  color: var(--color-gray-500);
  flex-shrink: 0;
}
.kg-create-return-code .kg-address-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--color-gray-200);
}
.kg-create-return-code .kg-address-pagination .kg-address-pagination-text {
  font-size: 14px;
  color: var(--color-gray-600);
}
.kg-create-return-code .kg-address-pagination .kg-address-pagination-pages {
  display: flex;
  gap: 8px;
}
.kg-create-return-code .kg-address-pagination .kg-pagination-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}
.kg-create-return-code .kg-address-pagination .kg-pagination-btn:hover {
  border-color: #145e9a;
  color: #145e9a;
}
.kg-create-return-code .kg-address-pagination .kg-pagination-btn.kg-active {
  background: #145e9a;
  border-color: #145e9a;
  color: #ffffff;
}
.kg-create-return-code .kg-form-submit {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}
.kg-create-return-code .kg-form-submit .btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kg-create-return-code .kg-form-submit .btn i {
  font-size: 18px;
}

.kg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.kg-back-link i {
  font-size: 18px;
}
.kg-back-link:hover {
  background: var(--color-gray-50);
  border-color: #145e9a;
  color: #145e9a;
}

@media (max-width: 768px) {
  .kg-support-detail-header {
    flex-direction: column;
  }
  .kg-support-detail-action {
    align-items: flex-start;
  }
  .kg-message-content {
    max-width: 85%;
  }
  .kg-reply-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .kg-reply-actions .btn {
    width: 100%;
  }
  .kg-reply-file-info {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .kg-reply-file-info .btn {
    width: 100%;
  }
}
.kg-discount-coupons {
  max-width: 800px;
  margin: 0 auto;
}

.kg-coupon-section {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--color-gray-200);
}

.kg-coupon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.kg-coupon-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.kg-coupon-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
}
.kg-coupon-empty i {
  font-size: 48px;
  color: var(--color-gray-400);
}
.kg-coupon-empty p {
  font-size: 15px;
  color: var(--color-gray-600);
  margin: 0;
}

.kg-active-coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.kg-active-coupon-item:last-child {
  margin-bottom: 0;
}
.kg-active-coupon-item:hover {
  border-color: #145e9a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.kg-active-coupon-item .btn {
  height: 40px !important;
}

.kg-active-coupon-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.kg-active-coupon-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #145e9a 0%, #1a7ac7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-active-coupon-icon i {
  font-size: 26px;
  color: white;
}

.kg-active-coupon-info {
  flex: 1;
}

.kg-active-coupon-code {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px 0;
}

.kg-active-coupon-desc {
  font-size: 14px;
  color: var(--color-gray-600);
  margin: 0 0 10px 0;
}

.kg-active-coupon-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kg-coupon-date,
.kg-coupon-usage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-gray-500);
}
.kg-coupon-date i,
.kg-coupon-usage i {
  font-size: 14px;
}

.kg-coupon-delete-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.kg-coupon-delete-btn i {
  font-size: 18px;
}
.kg-coupon-delete-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: #DC2626;
  color: #DC2626;
}

.kg-coupon-add-section {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-gray-200);
}

.kg-coupon-add-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.kg-coupon-add-header i {
  font-size: 24px;
  color: #145e9a;
}

.kg-coupon-add-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.kg-coupon-add-form .kg-form-group {
  margin-bottom: 24px;
}
.kg-coupon-add-form .kg-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}
.kg-coupon-add-form .kg-coupon-input-wrapper {
  position: relative;
}
.kg-coupon-add-form .kg-coupon-input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-gray-400);
}
.kg-coupon-add-form .kg-coupon-input-wrapper .form-control {
  padding-left: 48px;
  height: 48px;
  font-size: 15px;
}
.kg-coupon-add-form .kg-form-help {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-gray-500);
}
.kg-coupon-add-form .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.kg-coupon-add-form .btn i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .kg-discount-coupons {
    padding: 0;
  }
  .kg-coupon-section,
  .kg-coupon-add-section {
    padding: 20px;
  }
  .kg-coupon-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .kg-active-coupon-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .kg-active-coupon-left {
    flex-direction: column;
    align-items: flex-start;
  }
  .kg-coupon-delete-btn {
    width: 100%;
    flex: 1;
  }
  .kg-active-coupon-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.kg-members-page {
  max-width: 1200px;
  margin: 0 auto;
}

.kg-members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.kg-members-header-info {
  flex: 1;
}

.kg-members-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.kg-members-table-wrapper {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  margin-bottom: 32px;
}

.kg-members-table {
  width: 100%;
  border-collapse: collapse;
}
.kg-members-table thead {
  background: var(--color-gray-50);
}
.kg-members-table thead tr th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-members-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
}
.kg-members-table tbody tr:last-child {
  border-bottom: none;
}
.kg-members-table tbody tr:hover {
  background: var(--color-gray-50);
}
.kg-members-table tbody tr td {
  padding: 20px;
  font-size: 14px;
  color: var(--text-color);
}

.kg-member-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kg-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-700);
  flex-shrink: 0;
}

.kg-member-email {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.kg-member-actions {
  display: flex;
  gap: 8px;
}

.kg-pending-invitations {
  margin-top: 48px;
}

.kg-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
}

.kg-invitations-table-wrapper {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.kg-invitations-table {
  width: 100%;
  border-collapse: collapse;
}
.kg-invitations-table thead {
  background: var(--color-gray-50);
}
.kg-invitations-table thead tr th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-gray-200);
}
.kg-invitations-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
}
.kg-invitations-table tbody tr:last-child {
  border-bottom: none;
}
.kg-invitations-table tbody tr:hover {
  background: var(--color-gray-50);
}
.kg-invitations-table tbody tr td {
  padding: 20px;
  font-size: 14px;
  color: var(--text-color);
}

.kg-invitation-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kg-invitation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E0E7FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #6366F1;
  flex-shrink: 0;
}

.kg-invitation-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kg-invitation-email {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.kg-invitation-status {
  font-size: 13px;
  color: var(--color-gray-600);
}

.kg-cancel-invitation {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
}
.kg-cancel-invitation i {
  font-size: 14px;
}

@media (max-width: 768px) {
  .kg-members-header {
    flex-direction: column;
    align-items: stretch;
  }
  .kg-members-header .btn {
    width: 100%;
  }
  .kg-members-table-wrapper,
  .kg-invitations-table-wrapper {
    overflow-x: auto;
  }
  .kg-members-table,
  .kg-invitations-table {
    min-width: 600px;
  }
  .kg-cancel-invitation {
    font-size: 13px;
    padding: 6px 12px;
  }
}
.kg-quick-bg {
  background: var(--color-gray-50);
  border-radius: 8px;
}

.kg-auth {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-gray-100) 100%);
}

.kg-auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: var(--color-white);
}

.kg-auth-form-side {
  flex: 1;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow-y: auto;
}

.kg-auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.kg-auth-logo {
  margin-bottom: 32px;
}
.kg-auth-logo img {
  height: 50px;
}

.kg-auth-header {
  margin-bottom: 32px;
}

.kg-auth-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 8px 0;
}

.kg-auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

.kg-auth-form .kg-form-group {
  margin-bottom: 20px;
}
.kg-auth-form .kg-input-icon {
  position: relative;
}
.kg-auth-form .kg-input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  z-index: 1;
}
.kg-auth-form .kg-input-icon .form-control {
  padding-left: 48px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  font-size: 15px;
  color: var(--text-color);
  transition: all 0.3s ease;
}
.kg-auth-form .kg-input-icon .form-control::placeholder {
  color: var(--text-muted);
}
.kg-auth-form .kg-input-icon .form-control:focus {
  border-color: #145e9a;
  box-shadow: 0 0 0 4px rgba(20, 94, 154, 0.1);
}
.kg-auth-form .kg-password-input .form-control {
  padding-right: 50px;
}
.kg-auth-form .kg-password-input .kg-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.kg-auth-form .kg-password-input .kg-password-toggle:hover {
  color: #145e9a;
}
.kg-auth-form .kg-password-input .kg-password-toggle i {
  position: static;
  transform: none;
  font-size: 18px;
}

.kg-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.kg-auth-options .form-check-label {
  font-size: 14px;
  color: var(--text-color);
}

.kg-forgot-link {
  font-size: 14px;
  color: #145e9a;
  font-weight: 500;
}
.kg-forgot-link:hover {
  color: #0e426d;
  text-decoration: underline;
}

.kg-auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}
.kg-auth-divider::before, .kg-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-gray-200);
}
.kg-auth-divider span {
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.kg-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kg-social-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
.kg-social-buttons .btn svg {
  flex-shrink: 0;
}

.kg-auth-footer {
  margin-top: 32px;
  text-align: center;
}
.kg-auth-footer p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.kg-auth-footer p a {
  color: #145e9a;
  font-weight: 600;
}
.kg-auth-footer p a:hover {
  text-decoration: underline;
}

.kg-link {
  color: #145e9a;
  font-weight: 500;
}
.kg-link:hover {
  text-decoration: underline;
}

.kg-auth-visual-side {
  flex: 1;
  width: 50%;
  background: linear-gradient(135deg, #145e9a 0%, #082740 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.kg-auth-visual-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.kg-auth-visual-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}
.kg-auth-visual-shape.kg-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
}
.kg-auth-visual-shape.kg-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
}
.kg-auth-visual-shape.kg-shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.05);
}

.kg-auth-visual-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 480px;
}

.kg-auth-visual-logo {
  margin-bottom: 32px;
}
.kg-auth-visual-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.kg-auth-visual-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
}
.kg-auth-visual-content h2 span {
  color: rgba(255, 255, 255, 0.7);
}
.kg-auth-visual-content p {
  font-size: 17px;
  opacity: 0.85;
  margin: 0 0 40px 0;
  line-height: 1.7;
}

.kg-auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.kg-auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.kg-auth-feature .kg-auth-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-auth-feature .kg-auth-feature-icon i {
  font-size: 22px;
}
.kg-auth-feature .kg-auth-feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kg-auth-feature .kg-auth-feature-text strong {
  font-size: 15px;
  font-weight: 600;
}
.kg-auth-feature .kg-auth-feature-text span {
  font-size: 13px;
  opacity: 0.7;
}

.kg-auth-testimonial {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  position: relative;
}
.kg-auth-testimonial .kg-auth-testimonial-quote {
  position: absolute;
  top: -12px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-auth-testimonial .kg-auth-testimonial-quote i {
  font-size: 14px;
}
.kg-auth-testimonial p {
  font-size: 15px;
  font-style: italic;
  margin: 0 0 16px 0 !important;
  opacity: 1 !important;
  line-height: 1.6;
}

.kg-auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kg-auth-testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.kg-auth-testimonial-author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kg-auth-testimonial-author div strong {
  font-size: 14px;
  font-weight: 600;
}
.kg-auth-testimonial-author div span {
  font-size: 12px;
  opacity: 0.7;
}

.kg-auth-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.kg-auth-stat {
  text-align: center;
  flex: 1;
}
.kg-auth-stat .kg-auth-stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.kg-auth-stat .kg-auth-stat-icon i {
  font-size: 24px;
}
.kg-auth-stat .kg-auth-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}
.kg-auth-stat .kg-auth-stat-label {
  display: block;
  font-size: 13px;
  opacity: 0.7;
}

.kg-auth-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
}

.kg-auth-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.8;
}
.kg-auth-trust-item i {
  font-size: 18px;
}

@media (max-width: 992px) {
  .kg-auth-container {
    flex-direction: column;
  }
  .kg-auth-visual-side {
    display: none;
  }
  .kg-auth-form-side {
    width: 100%;
    padding: 32px;
  }
}
@media (max-width: 576px) {
  .kg-auth-form-side {
    padding: 24px;
  }
  .kg-auth-logo {
    margin-bottom: 24px;
  }
  .kg-auth-logo img {
    height: 40px;
  }
  .kg-auth-header {
    margin-bottom: 24px;
  }
  .kg-auth-title {
    font-size: 24px;
  }
  .kg-auth-subtitle {
    font-size: 14px;
  }
  .kg-auth-form .kg-input-icon .form-control {
    height: 46px;
    font-size: 14px;
  }
  .kg-social-buttons .btn {
    height: 46px;
    font-size: 14px;
  }
  .kg-auth-stats {
    gap: 16px;
  }
  .kg-auth-stat .kg-auth-stat-value {
    font-size: 20px;
  }
  .kg-auth-stat .kg-auth-stat-label {
    font-size: 10px;
  }
}
.kg-bulk-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 24px;
}
.kg-bulk-upload-area {
  border: 2px dashed #145e9a;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}
.kg-bulk-upload-area:hover {
  background: var(--color-gray-50);
  border-color: #0e426d;
}
.kg-bulk-upload-area i {
  font-size: 64px;
  color: #145e9a;
  margin-bottom: 16px;
  display: block;
}
.kg-bulk-upload-area-text {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}
.kg-bulk-info {
  position: sticky;
  top: 24px;
}
.kg-bulk-info-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}
.kg-bulk-info-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.kg-bulk-info-list {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 20px;
  margin: 0;
}
.kg-bulk-info-list li {
  margin-bottom: 12px;
}
.kg-bulk-info-list li:last-child {
  margin-bottom: 0;
}
.kg-bulk-info hr {
  border-color: var(--color-gray-200);
}
.kg-bulk-uploaded-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}
[data-theme=dark] .kg-bulk-uploaded-card {
  background: var(--color-gray-100);
  border-color: var(--color-gray-300);
}
.kg-bulk-uploaded-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.kg-bulk-uploaded-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kg-bulk-uploaded-icon i {
  font-size: 28px;
  color: #10b981;
}
.kg-bulk-uploaded-info {
  flex: 1;
}
.kg-bulk-uploaded-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 4px 0;
}
.kg-bulk-uploaded-size {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.kg-bulk-uploaded-remove {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.kg-bulk-uploaded-remove i {
  font-size: 20px;
  color: var(--text-muted);
}
.kg-bulk-uploaded-remove:hover {
  background: var(--color-gray-200);
}
.kg-bulk-uploaded-remove:hover i {
  color: #DC2626;
}
.kg-bulk-uploaded-footer {
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-200);
}

@media (max-width: 992px) {
  .kg-bulk-upload-area {
    padding: 40px 20px;
  }
  .kg-bulk-upload-area i {
    font-size: 48px;
  }
  .kg-bulk-upload-area-text {
    font-size: 14px;
  }
  .kg-bulk-info {
    position: static;
    margin-top: 24px;
  }
  .kg-bulk-uploaded-header {
    gap: 12px;
  }
  .kg-bulk-uploaded-icon {
    width: 48px;
    height: 48px;
  }
  .kg-bulk-uploaded-icon i {
    font-size: 24px;
  }
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

.form-control, .form-select {
  box-shadow: none !important;
  min-height: 42px;
  transition: 0.2s;
  font-size: 15px;
}
[data-theme=dark] .form-control, [data-theme=dark] .form-select {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-300);
  color: var(--text-color);
}
[data-theme=dark] .form-control:hover, [data-theme=dark] .form-select:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background-color: var(--color-gray-50);
}
[data-theme=dark] .form-control:focus, [data-theme=dark] .form-select:focus {
  border-color: #3b82f6;
  background-color: var(--color-gray-50);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}
[data-theme=dark] .form-control::placeholder, [data-theme=dark] .form-select::placeholder {
  color: var(--color-gray-500);
}
.form-control:hover, .form-select:hover {
  border-color: rgba(20, 94, 154, 0.6);
}
.form-control:focus, .form-select:focus {
  border-color: #145e9a;
  box-shadow: 0 0 0 4px rgba(20, 94, 154, 0.1) !important;
}
.form-control.h-50px, .form-select.h-50px {
  min-height: 50px !important;
  height: 50px !important;
}

.btn {
  height: 42px;
  font-weight: 500;
  padding: 0 16px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  gap: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover, .btn:focus, .btn:active {
  transform: translateY(-1px);
}
.btn.btn-sm {
  height: 36px;
  font-size: 14px;
  padding: 0 12px;
  border-radius: 6px;
}
.btn.h-50px {
  height: 50px !important;
}
.btn.btn-primary {
  background-color: #145e9a;
  border-color: #145e9a;
  color: #fff;
}
.btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary:active {
  background-color: #115083;
  border-color: #115083;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 94, 154, 0.3);
}
.btn.btn-secondary {
  background-color: var(--color-gray-500);
  border-color: var(--color-gray-500);
  color: #fff;
}
.btn.btn-secondary:hover, .btn.btn-secondary:focus, .btn.btn-secondary:active {
  background-color: var(--color-gray-600);
  border-color: var(--color-gray-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn.btn-info {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: #fff;
}
.btn.btn-info:hover, .btn.btn-info:focus, .btn.btn-info:active {
  background-color: #0891b2;
  border-color: #0891b2;
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}
.btn.btn-light {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-200);
  color: var(--text-color);
}
.btn.btn-light:hover, .btn.btn-light:focus, .btn.btn-light:active {
  background-color: var(--color-gray-200);
  border-color: var(--color-gray-300);
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.btn.btn-link {
  background: transparent;
  border: 0;
  color: #145e9a !important;
  padding: 0;
  height: auto;
}
.btn.btn-link:hover, .btn.btn-link:focus, .btn.btn-link:active {
  color: #2563eb;
  text-decoration: none;
  opacity: 0.8;
}
.btn.btn-opacity-primary {
  background-color: rgba(20, 94, 154, 0.15);
  border: 0;
  color: #145e9a;
}
[data-theme=dark] .btn.btn-opacity-primary {
  background-color: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
[data-theme=dark] .btn.btn-opacity-primary:hover, [data-theme=dark] .btn.btn-opacity-primary:focus, [data-theme=dark] .btn.btn-opacity-primary:active {
  background-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.5);
}
.btn.btn-opacity-primary:hover {
  background-color: #145e9a;
  color: #fff;
}
.btn.btn-outline-primary {
  background-color: transparent;
  border-color: #145e9a;
  color: #145e9a;
}
.btn.btn-outline-primary:hover, .btn.btn-outline-primary:focus, .btn.btn-outline-primary:active {
  background-color: #145e9a;
  border-color: #145e9a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 94, 154, 0.3);
}
.btn.btn-outline-dark {
  color: var(--text-muted);
  border-color: var(--color-gray-200);
}
.btn.btn-outline-dark:hover, .btn.btn-outline-dark:focus, .btn.btn-outline-dark:active {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-300);
  color: var(--text-muted);
}
.btn.btn-outline-danger {
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.2);
}
.btn.btn-outline-danger:hover, .btn.btn-outline-danger:focus, .btn.btn-outline-danger:active {
  background-color: #DC2626;
  border-color: #DC2626;
  color: #fff;
}
.btn.btn-opacity-danger {
  background-color: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}
.btn.btn-opacity-danger:hover {
  background-color: #DC2626;
  color: #fff;
}
.btn.btn-pdf {
  background-color: #E11F1F;
  border-color: #E11F1F;
  color: #fff;
}
.btn.btn-pdf:hover, .btn.btn-pdf:focus, .btn.btn-pdf:active {
  background-color: #cb1b1b;
  border-color: #cb1b1b;
}

.fs-18 {
  font-size: 18px;
}

.fs-15 {
  font-size: 15px;
}

.fs-14 {
  font-size: 14px;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.badge {
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge.rounded-pill {
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge.text-bg-success {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
}
.badge.text-bg-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #c57f08 !important;
}
.badge.text-bg-secondary {
  background: rgba(107, 114, 128, 0.12) !important;
  color: var(--color-gray-700) !important;
}
.badge.text-bg-danger {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #DC2626 !important;
}
.badge.text-bg-info {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #06b6d4 !important;
}
.badge.text-bg-primary {
  background: rgba(20, 94, 154, 0.12) !important;
  color: #145e9a !important;
}

.form-check-input {
  height: 18px;
  width: 18px;
  margin: 0;
  box-shadow: none !important;
}
[data-theme=dark] .form-check-input {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-400);
}
[data-theme=dark] .form-check-input:hover {
  border-color: rgba(59, 130, 246, 0.6);
}
[data-theme=dark] .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}
[data-theme=dark] .form-check-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}
.form-check-input:checked {
  background-color: #145e9a;
  border-color: #145e9a;
}

.text-primary {
  color: #145e9a !important;
}

strong {
  font-weight: 600;
}

.modal-content, .accordion-item {
  color: var(--text-color);
}

.alert {
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.alert i {
  font-size: 18px;
  flex-shrink: 0;
}
.alert.alert-danger {
  background: rgba(220, 38, 38, 0.08);
  color: #b21d1d;
  border-left: 4px solid #DC2626;
}
[data-theme=dark] .alert.alert-danger {
  background: rgba(220, 38, 38, 0.15);
  color: #e35252;
}
.alert.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  color: #ac6f07;
  border-left: 4px solid #f59e0b;
}
[data-theme=dark] .alert.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.alert.alert-success {
  background: rgba(16, 185, 129, 0.08);
  color: #0c8a60;
  border-left: 4px solid #10b981;
}
[data-theme=dark] .alert.alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #14e8a2;
}
.alert.alert-info {
  background: rgba(6, 182, 212, 0.08);
  color: #058ba2;
  border-left: 4px solid #06b6d4;
}
[data-theme=dark] .alert.alert-info {
  background: rgba(6, 182, 212, 0.15);
  color: #15d7f8;
}
.alert.alert-primary {
  background: rgba(20, 94, 154, 0.08);
  color: #115083;
  border-left: 4px solid #145e9a;
}
[data-theme=dark] .alert.alert-primary {
  background: rgba(20, 94, 154, 0.15);
  color: #1d87de;
}
.alert .alert-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: inherit;
}
.alert .btn-close {
  margin-left: auto;
  opacity: 0.5;
}
.alert .btn-close:hover {
  opacity: 1;
}

/*# sourceMappingURL=style.css.map */
