* {
  box-sizing: border-box;
}

:root {
  --yunige-navy: #27206f;
  --yunige-navy-dark: #1d1757;
  --yunige-blue: #2d7ed3;
  --yunige-blue-soft: #eaf3ff;
  --yunige-pink: #e97ab0;
  --yunige-orange: #d66522;
  --page-bg: #f3f4f6;
  --card-bg: #ffffff;
  --border: #d9e0ea;
  --text: #22304a;
  --muted: #6f7b8f;
  --shadow: 0 8px 24px rgba(39, 32, 111, 0.08);
  --radius: 14px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.top-header {
  background: #efefef;
  border-bottom: 1px solid #e4e4e4;
}

.top-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px 18px;
  text-align: center;
}

.logo-text {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--yunige-navy);
  line-height: 1;
}

.logo-text span {
  color: var(--yunige-pink);
}

.logo-subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: #6d6d6d;
  font-weight: 700;
}

.blue-line {
  height: 6px;
  background: var(--yunige-blue);
}

.notice-bar {
  background: var(--yunige-orange);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
}

.app {
  display: flex;
  min-height: calc(100vh - 96px);
}

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  box-shadow: var(--shadow);
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--yunige-navy);
  margin-bottom: 24px;
}

.menu-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 8px;
  font-weight: 700;
}

.menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.menu a:hover {
  background: #f4f8ff;
  color: var(--yunige-blue);
}

.menu a.active {
  background: var(--yunige-navy);
  color: #fff;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 32px;
  color: var(--yunige-navy);
}

.page-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--yunige-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-link:hover {
  background: var(--yunige-navy-dark);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 20px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: end;
}

.filter-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.filter-field input,
.filter-field select {
  width: 100%;
  height: 44px;
  border: 1px solid #d6dbe7;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
}

.table-card {
  padding-top: 14px;
}

.table-header {
  margin-bottom: 12px;
}

.table-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--yunige-navy);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid #e8edf4;
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  background: #fff;
}

thead {
  background: #f8fbff;
}

th {
  text-align: left;
  padding: 14px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yunige-navy);
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

td {
  padding: 14px 14px;
  font-size: 14px;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f9fbff;
}

.type-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.type-supplier {
  background: #eaf3ff;
  color: #2d7ed3;
}

.type-customer {
  background: #ecfdf3;
  color: #166534;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1000px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 20px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 42px;
  }
}