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

:root {
  --blue:   #3A86FF;
  --purple: #8b5cf6;
  --teal:   #06d6a0;
  --red:    #f87171;
  --green:  #34d399;
  --bg:     #0d0f1a;
  --surface:#13151f;
  --card:   #1a1d2e;
  --border: #2a2d3e;
  --text:   #e5e7eb;
  --muted:  #6b7280;
  --input:  #1e2130;
  --dur:    0.22s;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ══ ASSISTENTE FINANCEIRO ══ */
.chatbot-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(58, 134, 255, 0.35);
}

.chatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  height: 480px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.chatbot-panel.open { display: flex; }
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1d2b54, #241d45);
}
.chatbot-header strong { font-size: 14px; }
.chatbot-header span { display: block; margin-top: 3px; color: #aab4d0; font-size: 11px; }
.chatbot-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}
.chatbot-message {
  max-width: 88%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}
.chatbot-message.bot { background: var(--card); color: var(--text); }
.chatbot-message.user { margin-left: auto; background: var(--blue); color: white; }
.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.chatbot-input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--input);
  color: var(--text);
}
.chatbot-send {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

/* ══ LAYOUT ══ */
body {
  display: flex;
  min-height: 100vh;
}

/* ══ SIDEBAR ══ */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 24px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 10;
}

.sidebar-top { margin-bottom: 36px; padding: 0 8px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

/* nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background var(--dur), color var(--dur);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-item.active {
  background: rgba(58,134,255,.12);
  color: var(--blue);
  font-weight: 600;
}

/* sidebar bottom */
.sidebar-bottom { display: flex; flex-direction: column; gap: 12px; }

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role { font-size: 11px; color: var(--muted); }

.btn-sair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.18);
  color: var(--red);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background var(--dur), border-color var(--dur);
}
.btn-sair svg { width: 16px; height: 16px; }
.btn-sair:hover { background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.35); }

/* ══ MAIN ══ */
.main {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--teal));
  flex-shrink: 0;
}

/* ══ SECTIONS ══ */
.section {
  display: none;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px);
  flex-direction: column;
  gap: 24px;
  animation: fadeUp 0.3s var(--ease);
}
.section.active { display: flex; }

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

.section-header { display: flex; align-items: flex-start; justify-content: space-between; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.section-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ══ SUMMARY GRID ══ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--dur), box-shadow var(--dur);
}
.summary-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.summary-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.summary-icon svg { width: 20px; height: 20px; }

.summary-card.green .summary-icon { background: rgba(52,211,153,.12); color: var(--green); }
.summary-card.red   .summary-icon { background: rgba(248,113,113,.12); color: var(--red); }
.summary-card.blue  .summary-icon { background: rgba(58,134,255,.12);  color: var(--blue); }

.summary-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 4px;
}
.summary-value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  color: var(--text);
}
.summary-card.green .summary-value { color: var(--green); }
.summary-card.red   .summary-value { color: var(--red); }

/* ══ APP CARD ══ */
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title-text {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(58,134,255,.1);
  border: 1px solid rgba(58,134,255,.22);
  border-radius: 24px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.dot-b {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* chart */
.chart-wrap {
  max-width: 300px;
  margin: 0 auto;
}

/* ══ FORM CARD ══ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  height: 44px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
  appearance: none;
}
.field input::placeholder { color: #4b5563; }
.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,134,255,.15);
}
.field select { cursor: pointer; }

.form-error {
  font-size: 12px;
  color: var(--red);
  min-height: 18px;
  margin-bottom: 12px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-primary {
  height: 44px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--dur), transform var(--dur), box-shadow var(--dur);
  box-shadow: 0 4px 16px rgba(58,134,255,.25);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(109,90,255,.3); }
.btn-primary:active { transform: scale(.98); }

.btn-ghost {
  height: 44px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: #3a3d50; }

/* ══ MOVIMENTAÇÕES LIST ══ */
.mov-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mov-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--dur);
}
.mov-list li:hover { background: rgba(255,255,255,.03); }

.mov-list li span {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mov-list li button {
  width: 32px; height: 32px;
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), border-color var(--dur);
}
.mov-list li button:hover { background: rgba(248,113,113,.2); border-color: rgba(248,113,113,.4); }

.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 32px 0;
  display: none;
}
.empty-state.visible { display: block; }

/* fatura total */
.fatura-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.fatura-total strong {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    align-items: center;
    padding: 0 10px;
    bottom: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-top { margin-bottom: 0; margin-right: 8px; padding: 0; }
  .logo-text { display: none; }
  .sidebar-nav { flex-direction: row; gap: 2px; flex: 1; min-width: 0; }
  .nav-item span { display: none; }
  .nav-item { flex: 1; min-width: 0; padding: 8px 4px; justify-content: center; }
  .sidebar-bottom { flex-direction: row; gap: 4px; flex-shrink: 0; }
  .user-info, .user-role { display: none; }
  .user-card { padding: 6px; background: none; border: none; }
  .btn-sair { padding: 8px; width: auto; font-size: 0; }
  .status-bar { display: none; }

  .main { margin-left: 0; margin-top: 60px; }
  .section { gap: 18px; padding: 22px 14px; }
  .section-header { gap: 12px; }
  .app-card { padding: 16px; border-radius: 14px; }
  .summary-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .form-actions { justify-content: stretch; }
  .form-actions > button { flex: 1; min-width: 120px; }
  .filtros-card { padding: 16px; }
  .mov-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .mov-toolbar > div { flex-wrap: wrap; }
  .btn-danger { padding: 8px 10px; font-size: 11px; }
  .mov-list li { padding: 12px; }
  .mov-valor { margin-left: 4px; margin-right: 6px; }
  .fatura-mes-label { min-width: 0; font-size: 16px; }
  .chatbot-toggle { right: 14px; bottom: 14px; }
  .chatbot-panel {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    height: min(480px, calc(100dvh - 96px));
  }
  #toast-container { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
}

/* ══ TOOLBAR DE SELEÇÃO ══ */
.mov-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(248,113,113,.07);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 10px;
  animation: fadeUp 0.2s ease;
}
.mov-toolbar span {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.btn-danger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.3);
  border-radius: 8px;
  color: var(--red);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur);
}
.btn-danger svg { width: 15px; height: 15px; }
.btn-danger:hover { background: rgba(248,113,113,.22); border-color: rgba(248,113,113,.5); }

/* ══ CHECKBOX CUSTOMIZADO ══ */
.mov-check {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 4px;
}
.mov-check input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--input);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), border-color var(--dur);
  flex-shrink: 0;
}
.mov-check input:checked ~ .checkmark {
  background: var(--red);
  border-color: var(--red);
}
.mov-check input:checked ~ .checkmark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

/* item selecionado */
.mov-list li.selected {
  background: rgba(248,113,113,.06);
  border-color: rgba(248,113,113,.25);
}

/* valor na lista */
.mov-valor {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 10px 0 auto;
}
.mov-valor.verde   { color: var(--green); }
.mov-valor.vermelho { color: var(--red); }

/* botão X individual */
.btn-del {
  width: 30px !important;
  height: 30px !important;
  background: rgba(248,113,113,.08) !important;
  border: 1px solid rgba(248,113,113,.18) !important;
  border-radius: 7px !important;
  color: var(--red) !important;
  font-size: 13px !important;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), border-color var(--dur);
}
.btn-del:hover { background: rgba(248,113,113,.2) !important; border-color: rgba(248,113,113,.4) !important; }

/* ══ STATUS BAR ══ */
.status-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s;
}
.status-dot.online  { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,.5); animation: pulse-green 2s infinite; }
.status-dot.offline { background: var(--red);   box-shadow: 0 0 6px rgba(248,113,113,.5); animation: pulse-red 1s infinite; }
@keyframes pulse-green {
  0%, 100% { opacity: 1; } 50% { opacity: .5; }
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; } 50% { opacity: .3; }
}
.status-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .3px;
}

.btn-danger-all {
  background: rgba(248,113,113,.22) !important;
  border-color: rgba(248,113,113,.5) !important;
}
.btn-danger-all:hover {
  background: rgba(248,113,113,.35) !important;
  border-color: var(--red) !important;
}

/* ══ TOAST ══ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: linear-gradient(135deg, #059669, #34d399); }
.toast-error   { background: linear-gradient(135deg, #dc2626, #f87171); }

/* ══ BOTÃO EXPORTAR ══ */
.btn-export {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: rgba(58,134,255,.1);
  border: 1px solid rgba(58,134,255,.25);
  border-radius: 10px;
  color: var(--blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur);
  white-space: nowrap;
}
.btn-export svg { width: 15px; height: 15px; }
.btn-export:hover { background: rgba(58,134,255,.18); border-color: var(--blue); }

/* ══ CHARTS ROW ══ */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chart-wrap-bar { max-width: 100%; min-height: 200px; }

/* ══ FILTROS ══ */
.filtros-card { padding: 20px 24px; }
.filtros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
}

/* ══ BOTÃO EDITAR ══ */
.btn-edit {
  width: 30px !important;
  height: 30px !important;
  background: rgba(58,134,255,.08) !important;
  border: 1px solid rgba(58,134,255,.2) !important;
  border-radius: 7px !important;
  color: var(--blue) !important;
  font-size: 15px !important;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-right: 4px;
  transition: background var(--dur), border-color var(--dur);
}
.btn-edit:hover { background: rgba(58,134,255,.18) !important; border-color: var(--blue) !important; }

/* ══ FATURA NAVEGÁVEL ══ */
.fatura-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.fatura-mes-label {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  min-width: 160px;
  text-align: center;
}
.btn-mes {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), color var(--dur);
}
.btn-mes svg { width: 18px; height: 18px; }
.btn-mes:hover { background: rgba(58,134,255,.1); color: var(--blue); border-color: rgba(58,134,255,.3); }

/* ══ RESPONSIVE NOVOS ══ */
@media (max-width: 1024px) {
  .charts-row { grid-template-columns: 1fr; }
  .filtros-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .charts-row { grid-template-columns: 1fr; }
  .filtros-grid { grid-template-columns: 1fr; }
  .btn-export { padding: 9px 12px; font-size: 12px; }
}

@media (max-width: 380px) {
  .sidebar { padding: 0 6px; }
  .sidebar-top { margin-right: 4px; }
  .logo-mark { width: 34px; height: 34px; }
  .nav-item { padding-left: 2px; padding-right: 2px; }
  .nav-item svg { width: 17px; height: 17px; }
  .section-title { font-size: 21px; }
  .section-sub { font-size: 12px; }
  .btn-export { padding: 8px; font-size: 11px; }
  .btn-danger { padding-left: 8px; padding-right: 8px; }
  .btn-danger svg { display: none; }
}
