﻿
/* ===== CSS VARIABLES (Metronic8 inspired) ===== */
:root {
  --kt-primary: #1B84FF;
  --kt-primary-hover: #056EE9;
  --kt-primary-light: #EFF6FF;
  --kt-success: #17C653;
  --kt-success-light: #DFFFEA;
  --kt-warning: #F6C000;
  --kt-warning-light: #FFF8DD;
  --kt-danger: #F8285A;
  --kt-danger-light: #FFEEF3;
  --kt-info: #7239EA;
  --kt-info-light: #F8F5FF;
  --kt-gray-100: #F9F9F9;
  --kt-gray-200: #F1F1F4;
  --kt-gray-300: #DBDFE9;
  --kt-gray-400: #B5B5C3;
  --kt-gray-500: #A1A5B7;
  --kt-gray-600: #7E8299;
  --kt-gray-700: #5E6278;
  --kt-gray-800: #3F4254;
  --kt-gray-900: #181C32;
  --kt-body-bg: #F5F8FA;
  --kt-sidebar-width: 265px;
  --kt-sidebar-bg: #1E1E2D;
  --kt-sidebar-item-hover: #2D2D3F;
  --kt-sidebar-active: #1B84FF;
  --kt-border-radius: 0.625rem;
  --kt-card-shadow: 0 0 20px 0 rgba(76,87,125,.07);
  font-family: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--kt-body-bg); font-family: 'Inter', sans-serif; color: var(--kt-gray-800); font-size: 13px; min-height: 100vh; }

/* ===== LAYOUT ===== */
.app-wrapper { display: flex; height: 100vh; overflow: hidden; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--kt-sidebar-width);
  background: var(--kt-sidebar-bg);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #3A3A52; border-radius: 2px; }

.sidebar-logo {
  padding: 24px 20px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 8px;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px; background: var(--kt-primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo .logo-icon i { color: #fff; font-size: 16px; }
.sidebar-logo .logo-text { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.sidebar-logo .logo-text span { color: var(--kt-primary); }

.sidebar-section { padding: 0 12px; margin-bottom: 4px; }
.sidebar-section-title {
  color: var(--kt-gray-500); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 12px 6px;
}

.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  color: #9D9DB5; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all .15s ease;
  margin-bottom: 2px; position: relative;
}
.sidebar-item:hover { background: var(--kt-sidebar-item-hover); color: #fff; }
.sidebar-item.active { background: rgba(27,132,255,.15); color: var(--kt-primary); }
.sidebar-item.active i { color: var(--kt-primary); }
.sidebar-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; color: #6B6B88; }
.sidebar-item:hover i { color: #fff; }
.sidebar-item .badge {
  margin-left: auto; background: var(--kt-primary);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px; line-height: 1.4;
}

.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 8px 16px; }

/* Project switcher in sidebar */
.project-switcher {
  margin: 8px 12px 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 10px 12px;
  cursor: pointer; transition: all .15s;
}
.project-switcher:hover { background: rgba(255,255,255,.08); }
.project-switcher .ps-label { color: var(--kt-gray-500); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: 4px; }
.project-switcher .ps-name { color: #fff; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.project-switcher .ps-name i { font-size: 11px; color: var(--kt-gray-500); }
.project-switcher .ps-meta { color: var(--kt-gray-500); font-size: 11px; margin-top: 2px; }

/* ===== MAIN CONTENT ===== */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* TOPBAR */
.topbar {
  background: #fff; border-bottom: 1px solid var(--kt-gray-200);
  display: flex; align-items: center; padding: 0 24px;
  height: 62px; gap: 16px; flex-shrink: 0;
}
.topbar-breadcrumb { display: flex; align-items: center; gap: 6px; flex: 1; }
.topbar-breadcrumb .bc-home { color: var(--kt-gray-500); font-size: 13px; cursor: pointer; }
.topbar-breadcrumb .bc-sep { color: var(--kt-gray-300); font-size: 11px; }
.topbar-breadcrumb .bc-item { color: var(--kt-gray-700); font-size: 13px; font-weight: 500; }
.topbar-breadcrumb .bc-item.active { color: var(--kt-gray-900); font-weight: 600; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  width: 36px; height: 36px; border-radius: 8px; border: none;
  background: var(--kt-gray-100); cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--kt-gray-600);
  transition: all .15s; position: relative;
}
.topbar-btn:hover { background: var(--kt-gray-200); color: var(--kt-gray-800); }
.topbar-btn .notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; background: var(--kt-danger);
  border-radius: 50%; border: 2px solid #fff;
}
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--kt-primary-light); display: flex;
  align-items: center; justify-content: center;
  color: var(--kt-primary); font-size: 13px; font-weight: 600;
  cursor: pointer; border: 2px solid var(--kt-gray-200);
}

/* CONTENT AREA */
.content-area { flex: 1; overflow-y: auto; padding: 24px; }
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: var(--kt-gray-300); border-radius: 3px; }

/* ===== VIEWS ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== PAGE HEADER ===== */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 20px; font-weight: 700; color: var(--kt-gray-900); margin-bottom: 4px; }
.page-header p { color: var(--kt-gray-600); font-size: 13px; }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: var(--kt-border-radius);
  box-shadow: var(--kt-card-shadow); border: 1px solid var(--kt-gray-200);
  margin-bottom: 20px;
}
.card-header {
  padding: 18px 20px 0; display: flex;
  align-items: center; justify-content: space-between;
}
.card-title { font-size: 14px; font-weight: 600; color: var(--kt-gray-900); }
.card-subtitle { font-size: 12px; color: var(--kt-gray-500); margin-top: 2px; }
.card-body { padding: 20px; }
.card-toolbar { display: flex; gap: 8px; align-items: center; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border-radius: var(--kt-border-radius);
  box-shadow: var(--kt-card-shadow); border: 1px solid var(--kt-gray-200);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 4px;
}
.stat-value { font-size: 22px; font-weight: 700; color: var(--kt-gray-900); }
.stat-label { font-size: 12px; color: var(--kt-gray-500); font-weight: 500; }
.stat-trend { font-size: 11px; display: flex; align-items: center; gap: 3px; font-weight: 500; }
.stat-trend.up { color: var(--kt-success); }
.stat-trend.neutral { color: var(--kt-gray-500); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 8px; border: none;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s; text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-primary { background: var(--kt-primary); color: #fff; }
.btn-primary:hover { background: var(--kt-primary-hover); }
.btn-light { background: var(--kt-gray-100); color: var(--kt-gray-700); border: 1px solid var(--kt-gray-200); }
.btn-light:hover { background: var(--kt-gray-200); }
.btn-success { background: var(--kt-success); color: #fff; }
.btn-danger { background: var(--kt-danger); color: #fff; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-success { background: var(--kt-success-light); color: #078D2E; }
.badge-warning { background: var(--kt-warning-light); color: #B58900; }
.badge-danger { background: var(--kt-danger-light); color: #C2143D; }
.badge-primary { background: var(--kt-primary-light); color: var(--kt-primary); }
.badge-info { background: var(--kt-info-light); color: var(--kt-info); }
.badge-gray { background: var(--kt-gray-100); color: var(--kt-gray-600); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--kt-gray-500);
  background: var(--kt-gray-100); border-bottom: 1px solid var(--kt-gray-200);
}
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }
tbody tr { border-bottom: 1px solid var(--kt-gray-100); transition: background .1s; }
tbody tr:hover { background: var(--kt-gray-100); }
tbody tr:last-child { border-bottom: none; }
td { padding: 12px 14px; font-size: 13px; color: var(--kt-gray-700); vertical-align: middle; }
.td-name { font-weight: 600; color: var(--kt-gray-900); }
.td-code { font-family: monospace; font-size: 12px; color: var(--kt-gray-500); background: var(--kt-gray-100); padding: 2px 7px; border-radius: 4px; }
.td-actions { display: flex; gap: 4px; }

/* ===== SEARCH / TOOLBAR ===== */
.table-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--kt-gray-200); }
.search-input {
  display: flex; align-items: center; gap: 8px;
  background: var(--kt-gray-100); border-radius: 8px;
  padding: 8px 12px; flex: 1; max-width: 280px;
  border: 1px solid transparent; transition: all .15s;
}
.search-input:focus-within { border-color: var(--kt-primary); background: #fff; }
.search-input i { color: var(--kt-gray-400); font-size: 13px; }
.search-input input { border: none; background: none; outline: none; font-size: 13px; color: var(--kt-gray-800); flex: 1; font-family: inherit; }
.search-input input::placeholder { color: var(--kt-gray-400); }

/* ===== PROJECT SELECTION SCREEN ===== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  background: #fff; border-radius: var(--kt-border-radius);
  border: 2px solid var(--kt-gray-200); padding: 20px;
  cursor: pointer; transition: all .2s ease; position: relative; overflow: hidden;
}
.project-card:hover { border-color: var(--kt-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,132,255,.15); }
.project-card.completed { opacity: .7; }
.project-card-actions { position: relative; z-index: 1; }
.project-card .pc-status { position: absolute; top: 14px; right: 14px; }
.project-card .pc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.project-card .pc-name { font-size: 14px; font-weight: 700; color: var(--kt-gray-900); margin-bottom: 4px; }
.project-card .pc-code { font-size: 11px; color: var(--kt-gray-400); font-family: monospace; margin-bottom: 10px; }
.project-card .pc-meta { display: flex; flex-direction: column; gap: 5px; }
.project-card .pc-meta-row { display: flex; justify-content: space-between; font-size: 12px; }
.project-card .pc-meta-row span:first-child { color: var(--kt-gray-500); }
.project-card .pc-meta-row span:last-child { font-weight: 600; color: var(--kt-gray-700); }
.project-card .pc-progress { margin-top: 12px; }
.pc-progress-bar { height: 4px; background: var(--kt-gray-200); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.pc-progress-fill { height: 100%; border-radius: 2px; background: var(--kt-primary); transition: width .6s ease; }
.project-card:hover .pc-progress-fill { background: var(--kt-primary); }
.pc-progress-text { display: flex; justify-content: space-between; font-size: 11px; color: var(--kt-gray-500); }

/* ===== PROJECT WORKSPACE HEADER ===== */
.workspace-banner {
  background: linear-gradient(135deg, #1B84FF 0%, #1360C8 100%);
  border-radius: var(--kt-border-radius);
  padding: 22px 24px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.workspace-banner::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.workspace-banner::after {
  content: ''; position: absolute; right: 60px; bottom: -40px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.wb-left { position: relative; z-index: 1; }
.wb-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.wb-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wb-tag { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255,255,255,.75); }
.wb-tag i { font-size: 11px; }
.wb-right { position: relative; z-index: 1; display: flex; gap: 8px; }
.btn-wb-light { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-wb-light:hover { background: rgba(255,255,255,.3); }

/* ===== QUICK ACTIONS ===== */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.qa-card {
  background: #fff; border-radius: var(--kt-border-radius);
  border: 1px solid var(--kt-gray-200); padding: 16px;
  cursor: pointer; transition: all .2s ease;
  display: flex; align-items: center; gap: 12px;
}
.qa-card:hover { border-color: var(--kt-primary); box-shadow: 0 4px 16px rgba(27,132,255,.1); }
.qa-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.qa-text .qa-title { font-size: 13px; font-weight: 600; color: var(--kt-gray-800); }
.qa-text .qa-desc { font-size: 11px; color: var(--kt-gray-500); margin-top: 2px; }

.workspace-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 20px; }
.workspace-metric + .workspace-metric { margin-top: 18px; }
.workspace-metric-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; color: var(--kt-gray-600); }
.workspace-metric-row strong { color: var(--kt-gray-900); font-size: 13px; }
.workspace-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.workspace-pill { background: var(--kt-gray-100); border: 1px solid var(--kt-gray-200); border-radius: 10px; padding: 14px; }
.workspace-pill span { display: block; font-size: 11px; color: var(--kt-gray-500); margin-bottom: 6px; }
.workspace-pill strong { font-size: 14px; color: var(--kt-gray-900); }
.workspace-detail-list { display: flex; flex-direction: column; gap: 10px; }
.workspace-detail-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.workspace-detail-row span { color: var(--kt-gray-500); }
.workspace-detail-row strong { color: var(--kt-gray-900); text-align: right; }

/* ===== FORM ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1/-1; }
label { font-size: 12.5px; font-weight: 500; color: var(--kt-gray-700); }
.form-control {
  border: 1px solid var(--kt-gray-300); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; color: var(--kt-gray-800);
  font-family: inherit; outline: none; transition: border-color .15s; background: #fff;
}
.form-control:focus { border-color: var(--kt-primary); box-shadow: 0 0 0 3px rgba(27,132,255,.08); }
.form-control::placeholder { color: var(--kt-gray-400); }
select.form-control { cursor: pointer; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--kt-gray-200); margin-top: 8px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 580px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: modalIn .2s ease;
}
.modal-box.modal-lg { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--kt-gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 15px; font-weight: 700; color: var(--kt-gray-900); }
.modal-close { background: var(--kt-gray-100); border: none; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--kt-gray-600); }
.modal-close:hover { background: var(--kt-gray-200); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--kt-gray-200); display: flex; justify-content: flex-end; gap: 8px; }

/* ===== PAYMENT ORDER STEPS ===== */
.steps { display: flex; gap: 0; margin-bottom: 24px; }
.step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; padding-bottom: 12px;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 14px; left: 50%; right: -50%;
  height: 2px; background: var(--kt-gray-200);
}
.step.done:not(:last-child)::after { background: var(--kt-primary); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; background: var(--kt-gray-200);
  color: var(--kt-gray-500); position: relative; z-index: 1; transition: all .3s;
}
.step.done .step-num { background: var(--kt-primary); color: #fff; }
.step.active .step-num { background: var(--kt-primary); color: #fff; box-shadow: 0 0 0 4px var(--kt-primary-light); }
.step-label { font-size: 11px; color: var(--kt-gray-500); margin-top: 6px; font-weight: 500; text-align: center; }
.step.active .step-label, .step.done .step-label { color: var(--kt-primary); font-weight: 600; }

/* ===== AVATAR ===== */
.avatar {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state i { font-size: 40px; color: var(--kt-gray-300); margin-bottom: 14px; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--kt-gray-700); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--kt-gray-500); margin-bottom: 16px; }

@media (max-width: 1200px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .project-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .quick-actions { grid-template-columns: 1fr; }
  .workspace-banner { padding: 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .wb-right { width: 100%; flex-wrap: wrap; }
}

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: 8px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-info { background: var(--kt-primary-light); border: 1px solid rgba(27,132,255,.2); }
.alert-info i { color: var(--kt-primary); margin-top: 1px; font-size: 14px; }
.alert-info p { font-size: 13px; color: var(--kt-gray-700); }

/* ===== PROGRESS ===== */
.progress { height: 6px; background: var(--kt-gray-200); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; background: var(--kt-primary); transition: width .5s ease; }
.progress-bar.success { background: var(--kt-success); }
.progress-bar.warning { background: var(--kt-warning); }

/* ===== SEPARATOR ===== */
.sep { border: none; border-top: 1px solid var(--kt-gray-200); margin: 16px 0; }

/* ===== SCROLLBAR on main content ===== */
.content-area::-webkit-scrollbar { width: 5px; }

/* ===== TRANSITIONS ===== */
.view { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== CHECKBOX ===== */
.check-wrap { display: flex; align-items: center; gap: 8px; }
.check-wrap input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--kt-primary); cursor: pointer; }

/* ===== INLINE STAT ===== */
.inline-stats { display: flex; gap: 20px; }
.inline-stat .is-val { font-size: 18px; font-weight: 700; color: var(--kt-gray-900); }
.inline-stat .is-label { font-size: 11px; color: var(--kt-gray-500); }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed var(--kt-gray-300); border-radius: 10px;
  padding: 28px; text-align: center; cursor: pointer; transition: all .15s;
}
.upload-zone:hover { border-color: var(--kt-primary); background: var(--kt-primary-light); }
.upload-zone i { font-size: 28px; color: var(--kt-gray-400); margin-bottom: 8px; }
.upload-zone p { font-size: 13px; color: var(--kt-gray-500); }
.upload-zone span { color: var(--kt-primary); font-weight: 500; }

/* Tooltip */
[title]:hover::after {
  content: attr(title); position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--kt-gray-900); color: #fff; font-size: 11px;
  padding: 4px 8px; border-radius: 5px; white-space: nowrap; pointer-events: none;
  z-index: 10;
}
[title] { position: relative; }

.text-danger { color: var(--kt-danger); font-size: 12px; }

.settings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.settings-card {
  margin-bottom: 0;
}

.settings-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.settings-card__text {
  color: var(--kt-gray-600);
  line-height: 1.6;
}

.table-column-chooser {
  position: relative;
}

.table-column-chooser__trigger {
  min-width: 110px;
  justify-content: center;
}

.table-column-chooser__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  z-index: 50;
  backdrop-filter: blur(10px);
}

.table-column-chooser__menu[hidden] {
  display: none;
}

.table-column-chooser__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.table-column-chooser__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--kt-gray-900);
}

.table-column-chooser__subtitle {
  font-size: 11px;
  color: var(--kt-gray-500);
  margin-top: 3px;
}

.table-column-chooser__options {
  display: grid;
  gap: 8px;
}

.table-column-chooser__options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--kt-gray-800);
  transition: all .15s ease;
  cursor: pointer;
}

.table-column-chooser__options label:hover {
  background: var(--kt-primary-light);
  border-color: rgba(27,132,255,.18);
}

.table-column-chooser__options input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--kt-primary);
  cursor: pointer;
}


