* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #f7f7f7;
  color: #222;
}

/* HEADER */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company {
  text-align: center;
}

.company .label {
  font-size: 12px;
  color: #777;
}

/* BUTTONS */
.btn {
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
}

.btn.primary {
  background: #222;
  color: #fff;
}

.btn.secondary {
  background: #eee;
}

/* MAIN */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

/* CARD */
.card {
  background: #fff;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.card.muted {
  opacity: 0.6;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  font-size: 12px;
  color: #666;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
}

.hidden {
  display: none;
}

/* HEADER */
.top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* ============================= */
/* HEADER */
/* ============================= */

.top-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================= */
/* ACCOUNT BUTTON */
/* ============================= */

.account-wrapper {
  position: relative;
}

.account-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6b4eff;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================= */
/* DROPDOWN MENU */
/* ============================= */

.account-menu {
  position: absolute;
  top: 55px;
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: none;
  overflow: hidden;
  z-index: 1000;
}

.account-identity {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.avatar.big {
  width: 46px;
  height: 46px;
}

.identity-text .name {
  font-weight: 600;
}

.identity-text .email {
  font-size: 12px;
  color: #666;
}

.divider {
  height: 1px;
  background: #eee;
}

.menu-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
}

.menu-item:hover {
  background: #f5f5f5;
}

.menu-item.danger {
  color: #c00;
}
