@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";
/* [project]/styles/design.css [app-client] (css) */
:root {
  --bg-main: #131313;
  --bg-sidebar: #1a1a1a;
  --bg-card: #131313;
  --bg-input: #1c1c1c;
  --text-primary: #fff;
  --text-secondary: #8e8e8e;
  --border-color: #2e2e2e;
}

.main-app {
  background-color: var(--bg-main);
  color: var(--text-primary);
  width: 100%;
  height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  overflow: hidden;
}

.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  flex-direction: column;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  width: 68px;
  padding: 24px 0;
  display: flex;
}

.sidebar-top, .sidebar-bottom {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  display: flex;
}

.logo {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  background-color: #0000;
  border-radius: 0;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  font-size: 26px;
  display: flex;
}

.nav-icons {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.nav-btn {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 8px;
  font-size: 22px;
  text-decoration: none;
  transition: all .2s;
  display: flex;
  position: relative;
}

.nav-btn:hover {
  color: var(--text-primary);
  background-color: #ffffff0d;
}

.avatar {
  color: #000;
  letter-spacing: -.3px;
  cursor: pointer;
  background-color: #8e8e8e;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s;
  display: flex;
}

.avatar:hover {
  transform: scale(1.05);
}

.avatar:focus {
  outline: none;
}

.avatar:focus-visible {
  outline: 2px solid var(--text-secondary);
  outline-offset: 2px;
}

.user-menu {
  position: relative;
}

.user-menu-popover {
  border: 1px solid var(--border-color);
  z-index: 1000;
  background-color: #1c1c1c;
  border-radius: 10px;
  flex-direction: column;
  min-width: 180px;
  margin-left: 14px;
  padding: 6px;
  display: flex;
  position: absolute;
  bottom: 0;
  left: 100%;
  box-shadow: 0 4px 12px #00000073;
}

.user-menu-email {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  padding: 8px 10px;
  font-size: 12px;
  overflow: hidden;
}

.user-menu-item {
  width: 100%;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .15s;
  display: flex;
}

.user-menu-item:hover {
  background-color: #ffffff14;
}

.main-content {
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.chat-scroll-area {
  flex: 1;
  padding: 0 40px;
  overflow-y: auto;
}

.chat-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.chat-container.top-content {
  padding-top: clamp(50px, 10vh, 110px);
  padding-bottom: clamp(10px, 2vh, 20px);
}

.input-container {
  flex-shrink: 0;
  padding: 0 40px clamp(20px, 4vh, 40px);
}

.chat-scroll-area::-webkit-scrollbar {
  width: 8px;
}

.chat-scroll-area::-webkit-scrollbar-track {
  background: none;
}

.chat-scroll-area::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.greeting {
  margin-bottom: clamp(24px, 5vh, 40px);
}

.greeting h1 {
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: clamp(24px, 3.5vh, 32px);
  font-weight: 500;
}

.greeting h2 {
  margin-bottom: clamp(12px, 2.5vh, 24px);
  font-size: clamp(24px, 3.75vh, 32px);
  font-weight: 600;
}

.greeting p {
  color: var(--text-secondary);
  font-size: clamp(14px, 1.8vh, 16px);
  line-height: 1.5;
}

.prompts-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  display: grid;
}

.prompt-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 12px;
  flex-direction: column;
  justify-content: space-between;
  height: clamp(130px, 16vh, 150px);
  padding: clamp(14px, 2vh, 20px);
  transition: all .2s;
  display: flex;
}

.prompt-card:hover {
  background-color: #ffffff08;
  border-color: #444;
}

.prompt-card p {
  color: #ccc;
  font-size: clamp(13px, 1.7vh, 15px);
  line-height: 1.4;
}

.prompt-card svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.input-area {
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(10px, 2vh, 20px);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
  display: flex;
  background-color: #212121 !important;
  border: 1px solid #ffffff0d !important;
  border-radius: 9999px !important;
  min-height: 52px !important;
  padding: 8px 10px 8px 16px !important;
}

.input-area:focus-within {
  background-color: #242424 !important;
  border-color: #ffffff1f !important;
}

.input-top {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center !important;
  gap: 12px !important;
}

.input-top textarea {
  color: #fff;
  resize: none;
  background: none;
  border: none;
  outline: none;
  flex: 1;
  height: 22px;
  min-height: 22px;
  max-height: 96px;
  font-family: inherit;
  overflow-y: auto;
  vertical-align: middle !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 22px !important;
}

.input-top textarea::placeholder {
  font-weight: 400;
  color: #9e9e9e !important;
  line-height: 22px !important;
}

.icon-btn {
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s;
  border-radius: 50% !important;
  justify-content: center !important;
  align-items: center !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
}

.icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.attach-icon-btn {
  color: #e3e3e3 !important;
  background: none !important;
  border: none !important;
}

.attach-icon-btn:hover:not(:disabled) {
  color: #fff !important;
  background-color: #ffffff14 !important;
}

.submit-btn {
  color: #fff !important;
  background-color: #0000 !important;
  border: 1px solid #4169e1 !important;
}

.submit-btn:hover:not(:disabled) {
  color: #fff !important;
  background-color: #0000 !important;
  border-color: #4169e1 !important;
  box-shadow: inset 0 0 0 1px #4169e1 !important;
}

@media (max-width: 900px) {
  .chat-scroll-area {
    padding: 0 24px;
  }

  .input-container {
    padding: 0 24px 24px;
  }

  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .sidebar {
    width: 60px;
    padding: 16px 0;
  }

  .logo {
    margin-bottom: 4px;
  }

  .nav-icons {
    gap: 8px;
  }

  .nav-btn {
    padding: 6px;
    font-size: 20px;
  }

  .chat-scroll-area {
    padding: 0 16px;
  }

  .input-container {
    padding: 0 16px 16px;
  }

  .greeting h1 {
    font-size: 24px;
  }

  .greeting h2 {
    font-size: 30px;
  }

  .prompts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .prompt-card {
    height: auto;
    min-height: 100px;
    padding: 16px;
  }
}

.tooltip {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  background-color: #1c1c1c;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity .15s, transform .15s, visibility .15s;
  display: flex;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%)translateX(-8px);
  box-shadow: 0 4px 12px #00000073;
}

.nav-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%)translateX(0);
}

.nav-btn.active {
  color: var(--text-primary);
  background-color: #ffffff14;
}

.view-panel {
  flex-direction: column;
  flex: 1;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.table-wrapper {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px #0003;
}

.customs-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 14px;
}

.customs-table th {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  background-color: #ffffff05;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 500;
}

.customs-table td {
  border-bottom: 1px solid var(--border-color);
  color: #e0e0e0;
  vertical-align: middle;
  padding: 16px 20px;
}

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

.customs-table tr {
  transition: background-color .15s;
}

.customs-table tr:hover {
  background-color: #ffffff04;
}

.forms-templates-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  display: grid;
}

.form-template-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 12px;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(130px, 16vh, 150px);
  padding: 14px 16px;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
  box-shadow: 0 4px 12px #00000026;
}

.form-template-card:hover {
  background-color: #ffffff0a;
  border-color: #ffffff26;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px #00000059;
}

.form-template-card.alert-rose {
  background-color: #ff174405;
  border-color: #ff17442e;
}

.form-template-card.alert-rose:hover {
  background-color: #ff17440d;
  border-color: #ff174459;
}

.form-template-card.alert-gold {
  background-color: #ffd60005;
  border-color: #ffd6002e;
}

.form-template-card.alert-gold:hover {
  background-color: #ffd6000d;
  border-color: #ffd60059;
}

.card-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.card-title span {
  color: var(--text-secondary);
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  display: block;
}

.card-arrow-btn {
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  background-color: #ffffff0d;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  display: flex;
}

.form-template-card:hover .card-arrow-btn {
  color: #000;
  background-color: #fff;
  transform: scale(1.05);
}

.card-update-meta {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 11px;
}

.card-tags-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  display: flex;
}

.card-tag {
  letter-spacing: .1px;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
}

.card-tag.tag-pdf {
  color: #ff5722;
  background-color: #ff572214;
  border: 1px solid #ff57222e;
}

.card-tag.tag-excel {
  color: #4caf50;
  background-color: #4caf5014;
  border: 1px solid #4caf502e;
}

.card-tag.tag-word {
  color: #2196f3;
  background-color: #2196f314;
  border: 1px solid #2196f32e;
}

.card-tag.tag-category {
  color: #ccc;
  background-color: #ffffff0d;
  border: 1px solid #ffffff14;
}

.card-footer-row {
  border-top: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
}

.card-footer-stats {
  color: var(--text-primary);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.card-footer-alerts {
  align-items: center;
  gap: 8px;
  display: flex;
}

.badge-alert-red {
  color: #ff1744;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.badge-alert-orange {
  color: #ff9100;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.back-link-btn {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  display: inline-flex;
}

.back-link-btn:hover {
  color: var(--text-primary);
}

.form-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: clamp(24px, 4vh, 36px);
  box-shadow: 0 4px 20px #0003;
}

.customs-form {
  flex-direction: column;
  gap: clamp(24px, 4vh, 36px);
  display: flex;
}

.form-section {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.form-section h3 {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
}

.form-row {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid;
}

.form-group {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.form-group label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.form-group input {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background-color: #ffffff05;
  border-radius: 8px;
  outline: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  transition: all .2s;
}

.form-group input:focus {
  background-color: #ffffff03;
  border-color: #ffffff40;
}

.form-group input[readonly] {
  color: var(--text-secondary);
  cursor: not-allowed;
  background-color: #ffffff03;
  border-color: #ffffff0a;
}

.form-group input::placeholder {
  color: #555;
}

.form-footer-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  display: flex;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.btn-secondary:hover {
  background-color: #ffffff0d;
  border-color: #fff3;
}

.btn-primary {
  color: #fff;
  cursor: pointer;
  background-color: #0000;
  border: 1px solid #4169e1;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.btn-primary:hover {
  box-shadow: inset 0 0 0 1px #4169e1;
}

.premium-header-container {
  flex-direction: column;
  gap: 0;
  width: 100%;
  display: flex;
}

.header-top-row {
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 14px;
  display: flex;
}

.header-breadcrumbs {
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: flex;
}

.crumb-active {
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 600;
  display: inline-flex;
}

.header-global-actions {
  align-items: center;
  gap: 12px;
  display: flex;
}

.accent-new-btn {
  color: #fff;
  cursor: pointer;
  background-color: #0000;
  border: 1px solid #4169e1;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s;
  display: flex;
}

.accent-new-btn:hover {
  box-shadow: inset 0 0 0 1px #4169e1;
}

.header-toolbar-row {
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  padding-top: 14px;
  padding-bottom: 0;
  display: flex;
}

.toolbar-left {
  align-items: center;
  gap: 12px;
  display: flex;
}

.toolbar-right {
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  display: flex;
}

.toolbar-search-wrapper {
  width: 240px;
  position: relative;
}

.toolbar-search-wrapper input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  width: 100%;
  color: var(--text-primary);
  border-radius: 20px;
  outline: none;
  padding: 8px 14px 8px 38px;
  font-family: inherit;
  font-size: 13px;
  transition: all .2s;
}

.toolbar-search-wrapper input:focus {
  background-color: #ffffff05;
  border-color: #ffffff40;
}

.toolbar-search-wrapper input::placeholder {
  color: #555;
}

.toolbar-search-wrapper svg {
  color: var(--text-secondary);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.header-tabs {
  gap: 20px;
  height: 100%;
  display: flex;
}

.header-tab {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
  display: flex;
  position: relative;
}

.header-tab:hover {
  color: var(--text-primary);
}

.header-tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.header-tab.active:after {
  content: "";
  background-color: #5a1dfc;
  border-radius: 2px;
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.tab-count {
  color: var(--text-secondary);
  background-color: #ffffff0d;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 400;
}

#tab-all .tab-count {
  color: #a382ff;
  background-color: #5a1dfc14;
}

#tab-declarations .tab-count {
  color: #4a9eff;
  background-color: #4a9eff14;
}

#tab-permits .tab-count {
  color: #34d399;
  background-color: #34d39914;
}

#tab-licenses .tab-count {
  color: #fb923c;
  background-color: #fb923c14;
}

#tab-valuation .tab-count {
  color: #2979ff;
  background-color: #2979ff14;
}

#tab-authorization .tab-count {
  color: #00e676;
  background-color: #00e67614;
}

#tab-pending .tab-count {
  color: #fb923c;
  background-color: #fb923c14;
}

#tab-all.active .tab-count {
  box-shadow: 0 0 8px #5a1dfc33;
  color: #a382ff !important;
  background-color: #5a1dfc2e !important;
}

#tab-declarations.active .tab-count {
  box-shadow: 0 0 8px #4a9eff40;
  color: #4a9eff !important;
  background-color: #4a9eff2e !important;
}

#tab-permits.active .tab-count {
  box-shadow: 0 0 8px #34d39940;
  color: #34d399 !important;
  background-color: #34d3992e !important;
}

#tab-licenses.active .tab-count {
  box-shadow: 0 0 8px #fb923c40;
  color: #fb923c !important;
  background-color: #fb923c2e !important;
}

#tab-valuation.active .tab-count {
  box-shadow: 0 0 8px #2979ff40;
  color: #2979ff !important;
  background-color: #2979ff2e !important;
}

#tab-authorization.active .tab-count {
  box-shadow: 0 0 8px #00e67640;
  color: #00e676 !important;
  background-color: #00e6762e !important;
}

#tab-pending.active .tab-count {
  box-shadow: 0 0 8px #fb923c40;
  color: #fb923c !important;
  background-color: #fb923c2e !important;
}

.mpa-cards-grid-wrapper {
  width: 100%;
  margin-top: 20px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
  display: grid;
}

.declaration-card {
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  cursor: pointer;
  border-radius: 12px;
  flex-direction: column;
  justify-content: space-between;
  min-height: 165px;
  padding: 15px 16px;
  text-decoration: none;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px #00000026;
}

.card-header-row {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  display: flex;
}

.card-header-left {
  align-items: center;
  gap: 10px;
  display: flex;
}

.card-icon-box {
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  transition: background-color .2s;
  display: flex;
}

.icon-box-green {
  color: #34d399;
  background-color: #34d3991f;
}

.icon-box-yellow {
  color: #ffd600;
  background-color: #ffd6001f;
}

.icon-box-red {
  color: #ff1744;
  background-color: #ff17441f;
}

.icon-box-orange {
  color: #fb923c;
  background-color: #fb923c1f;
}

.icon-box-purple {
  color: #a382ff;
  background-color: #703eff1f;
}

.icon-box-blue {
  color: #4a9eff;
  background-color: #4a9eff1f;
}

.card-category-label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}

.card-body-content {
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-bottom: 12px;
  display: flex;
}

.card-main-title {
  color: var(--text-primary);
  letter-spacing: -.2px;
  font-size: 16px;
  font-weight: 700;
  transition: color .2s;
  text-decoration: none !important;
}

.card-subtitle-desc {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  transition: color .2s;
}

.card-footer-row {
  color: var(--text-secondary);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 12px;
  display: flex;
}

.card-footer-item {
  align-items: center;
  gap: 6px;
  display: flex;
}

.declaration-card[data-type="declarations"]:hover {
  border-color: #4a9eff;
  box-shadow: 0 8px 24px #4a9eff26;
}

.declaration-card[data-type="declarations"]:hover .card-main-title {
  color: #4a9eff;
}

.declaration-card[data-type="permits"]:hover {
  border-color: #34d399;
  box-shadow: 0 8px 24px #34d39926;
}

.declaration-card[data-type="permits"]:hover .card-main-title {
  color: #34d399;
}

.declaration-card[data-type="licenses"]:hover {
  border-color: #fb923c;
  box-shadow: 0 8px 24px #fb923c26;
}

.declaration-card[data-type="licenses"]:hover .card-main-title {
  color: #fb923c;
}

.declaration-card[data-type="Commercial"]:hover {
  border-color: #a382ff;
  box-shadow: 0 8px 24px #a382ff26;
}

.declaration-card[data-type="Commercial"]:hover .card-main-title {
  color: #a382ff;
}

.declaration-card[data-type="Industrial"]:hover {
  border-color: #2979ff;
  box-shadow: 0 8px 24px #2979ff26;
}

.declaration-card[data-type="Industrial"]:hover .card-main-title {
  color: #2979ff;
}

.declaration-card[data-type="Agricultural"]:hover {
  border-color: #00e676;
  box-shadow: 0 8px 24px #00e67626;
}

.declaration-card[data-type="Agricultural"]:hover .card-main-title {
  color: #00e676;
}

.declaration-card[data-type="Wholesale"]:hover {
  border-color: #ff9100;
  box-shadow: 0 8px 24px #ff910026;
}

.declaration-card[data-type="Wholesale"]:hover .card-main-title {
  color: #ff9100;
}

.status-dot {
  vertical-align: middle;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  display: inline-block;
}

.status-dot.dot-green {
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399cc;
}

.status-dot.dot-yellow {
  background-color: #ffd600;
  box-shadow: 0 0 8px #ffd600cc;
}

.status-dot.dot-red {
  background-color: #ff1744;
  box-shadow: 0 0 8px #ff1744cc;
}

.status-dot.dot-orange {
  background-color: #fb923c;
  box-shadow: 0 0 8px #fb923ccc;
}

.status-dot.dot-blue {
  background-color: #4a9eff;
  box-shadow: 0 0 8px #4a9effcc;
}

.status-dot.dot-purple {
  background-color: #a382ff;
  box-shadow: 0 0 8px #a382ffcc;
}

.status-text-val {
  color: var(--text-secondary);
  vertical-align: middle;
  font-size: 13px;
  font-weight: 400;
}

.mpa-table-wrapper {
  margin-top: 0;
  overflow-x: auto;
  box-shadow: none !important;
  background-color: #0000 !important;
  border: none !important;
  border-radius: 0 !important;
}

.mpa-customs-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.mpa-customs-table th {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background-color: #0000 !important;
  padding: 14px 12px !important;
}

.mpa-customs-table td {
  color: var(--text-primary);
  font-size: 13px;
  border-bottom: 1px solid #ffffff0d !important;
  padding: 18px 12px !important;
}

.mpa-customs-table tr:hover {
  background-color: #ffffff05 !important;
}

.ref-num-bold {
  color: var(--text-primary);
  vertical-align: middle;
  font-weight: 500;
}

.icon-pdf {
  vertical-align: middle;
  margin-right: 8px;
  font-size: 18px;
  color: #ff334b !important;
}

.icon-excel {
  vertical-align: middle;
  margin-right: 8px;
  font-size: 18px;
  color: #00e676 !important;
}

.icon-word {
  vertical-align: middle;
  margin-right: 8px;
  font-size: 18px;
  color: #2979ff !important;
}

.icon-text {
  vertical-align: middle;
  margin-right: 8px;
  font-size: 18px;
  color: #8e8e8e !important;
}

.modal-overlay {
  z-index: 9999;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #000000b3;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}

.modal-container {
  background: #1a1a1a;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  flex-direction: column;
  width: 500px;
  max-width: 90%;
  max-height: 85vh;
  animation: .25s cubic-bezier(.16, 1, .3, 1) modal-scale;
  display: flex;
  overflow: hidden;
  box-shadow: 0 16px 48px #0006;
}

@keyframes modal-scale {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  display: flex;
}

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

.modal-close-btn {
  color: #8e8e8e;
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 4px;
  font-size: 20px;
  transition: color .15s;
  display: flex;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  display: flex;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #ffffff1a;
  border-radius: 4px;
}

.form-label {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.modal-input-text, .modal-input-select {
  color: #fff;
  background: #121212;
  border: 1px solid #adb5bd;
  border-radius: 8px;
  outline: none;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s;
}

.modal-input-text:focus, .modal-input-select:focus {
  border-color: #4169e1;
}

.modal-select-wrapper {
  position: relative;
}

.modal-input-select {
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

.modal-select-chevron {
  color: #8e8e8e;
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.modal-upload-zone {
  background: #ffffff05;
  border: 1px dashed #ffffff26;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  display: flex;
}

.upload-left {
  align-items: center;
  gap: 12px;
  display: flex;
}

.upload-icon-circle {
  color: #8e8e8e;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  display: flex;
}

.upload-text-content {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.upload-main-text {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.upload-sub-text {
  color: #8e8e8e;
  font-size: 11px;
}

.modal-browse-btn {
  color: #121212;
  cursor: pointer;
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: opacity .15s;
}

.modal-browse-btn:hover {
  opacity: .9;
}

.modal-footer {
  background: #1a1a1a;
  border-top: 1px solid #ffffff14;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  display: flex;
}

.modal-btn-cancel {
  color: #fff;
  cursor: pointer;
  background: none;
  border: 1px solid #adb5bd;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, background-color .15s;
}

.modal-btn-cancel:hover {
  background: #ffffff0a;
  border-color: #fff;
}

.modal-btn-save {
  color: #fff;
  cursor: pointer;
  background: #703eff;
  border: 1px solid #703eff;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .15s, border-color .15s;
}

.modal-btn-save:hover {
  background: #5a1dfc;
  border-color: #5a1dfc;
}

@media (max-width: 768px) {
  .header-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .toolbar-left, .toolbar-right {
    justify-content: space-between;
    width: 100%;
  }

  .toolbar-search-wrapper {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-footer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-footer-actions button {
    text-align: center;
    width: 100%;
  }

  .forms-templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .forms-templates-grid {
    grid-template-columns: 1fr;
  }
}

.chat-thread {
  flex-direction: column;
  gap: 28px;
  padding-top: clamp(32px, 6vh, 56px);
  padding-bottom: 16px;
  display: flex;
}

.chat-msg-row {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.chat-msg-row.user {
  align-items: flex-end;
}

.chat-msg-row.assistant {
  align-items: flex-start;
}

.chat-bubble-user {
  max-width: 75%;
  color: var(--text-primary);
  word-break: break-word;
  background: #ffffff12;
  border: 1px solid #ffffff1a;
  border-radius: 18px 18px 4px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-bubble-assistant {
  max-width: 85%;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.7;
}

.chat-bubble-assistant p {
  margin-bottom: 10px;
}

.chat-bubble-assistant p:last-child {
  margin-bottom: 0;
}

.chat-bubble-assistant ul, .chat-bubble-assistant ol {
  margin-bottom: 10px;
  padding-left: 20px;
}

.chat-bubble-assistant li {
  margin-bottom: 4px;
}

.chat-bubble-assistant strong {
  color: #fff;
  font-weight: 600;
}

.chat-bubble-assistant code {
  background: #ffffff14;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 13px;
}

.chat-bubble-assistant pre {
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px 14px;
  overflow-x: auto;
}

.chat-bubble-assistant pre code {
  background: none;
  padding: 0;
  font-size: 13px;
}

.chat-bubble-assistant h1, .chat-bubble-assistant h2, .chat-bubble-assistant h3 {
  color: #fff;
  margin-bottom: 6px;
  font-weight: 600;
}

.pending-files {
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 0;
  display: flex;
}

.pending-file-chip {
  color: #a3b8ff;
  background: #4169e11f;
  border: 1px solid #4169e140;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
}

.pending-file-chip span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.pending-file-chip button {
  color: #a3b8ff;
  cursor: pointer;
  opacity: .6;
  background: none;
  border: none;
  flex-shrink: 0;
  align-items: center;
  padding: 0;
  transition: opacity .15s;
  display: flex;
}

.pending-file-chip button:hover {
  opacity: 1;
}

.processing-row {
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  display: flex;
}

.processing-dot {
  background: #4169e1;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  animation: 1.2s ease-in-out infinite pulse-dot;
  box-shadow: 0 0 8px #4169e199;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

.processing-step-text {
  color: var(--text-secondary);
  font-size: 13px;
}

.thinking-row {
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  display: flex;
}

.thinking-dot {
  background: var(--text-secondary);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  animation: 1.2s ease-in-out infinite thinking-bounce;
}

.thinking-dot:nth-child(2) {
  animation-delay: .2s;
}

.thinking-dot:nth-child(3) {
  animation-delay: .4s;
}

@keyframes thinking-bounce {
  0%, 80%, 100% {
    opacity: .4;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.pipeline-card {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}

.pipeline-card-header {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .6px;
  background: #ffffff0a;
  border-bottom: 1px solid #ffffff0f;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}

.pipeline-card-header svg {
  color: #4169e1;
  flex-shrink: 0;
}

.pipeline-card-stats {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

.pipeline-stat {
  border-right: 1px solid #ffffff0f;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  display: flex;
}

.pipeline-stat:last-child {
  border-right: none;
}

.pipeline-stat-label {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
}

.pipeline-stat-value {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
}

.pipeline-stat-value.mono {
  font-family: monospace;
  font-size: 13px;
}

.pipeline-stat-value.green {
  color: #34d399;
}

.pipeline-stat-value.blue {
  color: #4a9eff;
}

.chat-bubble-assistant table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ffffff17;
  border-radius: 10px;
  width: 100%;
  margin: 14px 0 18px;
  font-size: 13.5px;
  overflow: hidden;
}

.chat-bubble-assistant thead {
  background: #ffffff0a;
}

.chat-bubble-assistant th {
  text-align: left;
  color: #909090;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  border-bottom: 1px solid #ffffff17;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 600;
}

.chat-bubble-assistant td {
  color: #d8d8d8;
  vertical-align: top;
  border-bottom: 1px solid #ffffff0d;
  padding: 14px 18px;
  line-height: 1.55;
}

.chat-bubble-assistant tr:last-child td {
  border-bottom: none;
}

.chat-bubble-assistant tbody tr:hover td {
  background: #ffffff06;
}

.chat-bubble-assistant td code {
  color: #4a9eff;
  white-space: nowrap;
  background: #4a9eff14;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

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