
* {
  box-sizing: border-box;
}

.erp-container {
  display: flex;
  background: #f5f7fa;
  height: 100vh;
  font-family: Arial, sans-serif;
}


.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #1e293b;
  padding: 20px;
  overflow: hidden;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
}

.sidebar ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  margin-bottom: 4px;
  cursor: pointer;
  border-radius: 6px;
  color: #e9eef6;
}

.sidebar ul li:hover,
.sidebar ul li.active {
  background: rgba(255, 255, 255, 0.1);
}


.main {
  margin-left: 240px;
  flex: 1;
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 18px;
  margin-bottom: 25px;

  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px #00000010;

  position: sticky;
  top: 0;
  z-index: 10;
}

.search {
  width: 220px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
}

.customer-select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}


.content-area {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}


.left-box-column {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 18px 22px;
  background: white;
  border-radius: 40px;

  box-shadow: 0 4px 12px #00000014;
}

.info-box h3 {
  font-size: 26px;
  margin: 0;
  color: #2196f3;
}

.info-box p {
  margin: 0;
  font-size: 14px;
  color: #555;
}


.brown  { border-left: 6px solid #c08457; }
.orange { border-left: 6px solid #ff9800; }
.green  { border-left: 6px solid #4caf50; }
.blue   { border-left: 6px solid #2196f3; }
.red    { border-left: 6px solid #f44336; }

.chart-section {
  flex: 1;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 14px #00000010;
  height: 460px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-section h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #444;
}


@media (max-width: 992px) {
  .content-area {
    flex-direction: column;
  }

  .left-box-column {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-box {
    width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
  }

  .info-box {
    width: 100%;
  }
}







@media (max-width: 1024px) {
  .content-area {
    flex-direction: column;
  }

  .left-box-column {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-box {
    width: calc(50% - 12px);
  }

  .chart-section {
    width: 100%;
  }
}


@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .search,
  .customer-select {
    width: 100%;
  }

  .info-box {
    width: 100%;
  }
}


@media (max-width: 600px) {
  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 15px;
  }
}

.has-submenu {
  cursor: pointer;
}

.menu-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-title svg:last-child {
  margin-left: auto;
  transition: 0.3s;
}

.rotate {
  transform: rotate(180deg);
}


.submenu {
  list-style: none;
  padding-left: 35px;
  margin-top: 5px;
}

.submenu li {
  padding: 8px 10px;
  font-size: 13px;
  color: #e5e7eb;
  cursor: pointer;
  border-radius: 6px;
}

.submenu li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.has-submenu {
  cursor: pointer;
}

.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submenu {
  padding-left: 35px;
  margin-bottom: 8px;
}

.submenu li {
  padding: 6px 0;
  font-size: 13px;
  color: #cbd5f5;
  cursor: pointer;
}

.submenu li:hover,
.submenu li.active {
  color: #fff;
}

.rotate {
  transform: rotate(180deg);
  transition: 0.3s;
}

.page-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 15px;
}

.count-badge {
  background: #1e90ff;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.data-table th {
  background: #f8f9fb;
  font-weight: 600;
}
