@charset "UTF-8";
/*! destyle.css v3.0.2 | MIT License | https://github.com/nicolas-cusan/destyle.css */
/* Reset box-model and set borders */
/* ============================================ */
*,
::before,
::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0; }

/* Document */
/* ============================================ */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 * 3. Remove gray overlay on links for iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -webkit-tap-highlight-color: transparent;
  /* 3 */ }

/* Sections */
/* ============================================ */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0; }

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block; }

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #212121;
  background-color: #f5f5f5;
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 0; }

a {
  text-decoration: none;
  color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px; }

.is-hidden {
  display: none !important; }

header {
  background-color: #1a237e;
  color: white;
  padding: 16px 0; }
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px; }
  header .logo {
    font-weight: bold;
    font-size: 1.2rem; }
    header .logo a {
      color: white;
      text-decoration: none; }
  header nav {
    display: flex;
    align-items: center; }

.user-menu {
  position: relative; }

.user-icon-btn {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.3s; }
  .user-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1); }
  .user-icon-btn:focus {
    outline: none;
    border: none; }
  .user-icon-btn svg {
    width: 24px;
    height: 24px; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000; }
  .user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); }

.dropdown-header {
  padding: 16px; }

.dropdown-user-name {
  color: #212121;
  font-weight: 600;
  font-size: 16px; }

.dropdown-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 0; }

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  color: #212121;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  font-weight: normal;
  line-height: 1.5;
  transition: background-color 0.2s; }
  .dropdown-item:hover:not(.disabled) {
    background-color: #f5f5f5; }
  .dropdown-item.disabled {
    color: #757575;
    cursor: not-allowed;
    opacity: 0.6; }

.dropdown-logout-form {
  margin: 0;
  padding: 0; }

main {
  padding: 32px 0; }

.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px; }

.centered-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh; }

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 16px; }

.confirmation-message {
  margin-bottom: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, opacity 0.3s;
  border: none;
  text-decoration: none;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.2; }
  .btn:hover {
    opacity: 0.9; }
  .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed; }

.btn-primary {
  background-color: #1a237e;
  color: white;
  padding: 12px 24px; }
  .btn-primary--full {
    width: 100%; }
  .btn-primary:hover {
    background-color: #534bae; }

.btn-accent {
  background-color: #ffd700;
  color: #212121;
  padding: 12px 28px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); }
  .btn-accent:hover {
    background-color: #ffff52; }

.btn-secondary {
  background-color: #ffd700;
  color: black; }
  .btn-secondary:hover {
    background-color: #ffff52; }

.btn-danger {
  background-color: #f44336;
  color: white;
  padding: 12px 24px; }

.btn-cancel {
  background-color: #e0e0e0;
  color: black;
  padding: 12px 24px; }

.form-group {
  margin-bottom: 16px; }
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold; }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="number"],
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    min-height: 48px; }
    .form-group input[type="text"]:focus,
    .form-group input[type="email"]:focus,
    .form-group input[type="password"]:focus,
    .form-group input[type="number"]:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: #1a237e; }
  .form-group small {
    color: #757575;
    display: block;
    margin-top: 4px;
    font-size: 14px; }
  .form-group .field-error,
  .form-group .form-error {
    color: #f44336;
    font-size: 0.9em;
    margin-top: 4px; }
  .form-group .form-help {
    color: #757575;
    font-size: 14px;
    display: block;
    margin-top: 4px; }

.form-section-title {
  font-size: 18px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 16px;
  margin-top: 32px; }
  .form-section-title:first-child {
    margin-top: 0; }

.form-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-direction: row !important; }
  .form-actions .btn {
    flex: 1;
    max-width: 180px;
    white-space: nowrap; }
    @media (max-width: 768px) {
      .form-actions .btn {
        flex: 1 1 0;
        max-width: none;
        width: auto !important;
        min-width: 0;
        padding: 12px 4px;
        font-size: 0.9rem; } }
.card {
  padding: 24px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
  .card__title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 24px; }
    .card__title--danger {
      color: #f44336; }
  .card--narrow {
    width: 100%;
    max-width: 400px; }
  .card--medium {
    max-width: 600px;
    margin: 40px auto; }
  .card--wide {
    max-width: 800px;
    margin: 0 auto; }
  .card--centered {
    text-align: center; }
  .card--staff {
    border-top: 4px solid #ffd700; }
  .card--overflow {
    overflow-x: auto; }

.info-box {
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 32px;
  text-align: left; }
  .info-box p {
    margin: 8px 0; }
    .info-box p strong {
      display: inline-block;
      min-width: 80px; }

.alert {
  padding: 1rem;
  margin-bottom: 16px;
  border-radius: 4px;
  transition: opacity 0.3s ease; }
  .alert-danger, .alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb; }
  .alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb; }
  .alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffc107; }
  .alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb; }
  .alert-dismissible {
    position: relative;
    padding-right: 3rem; }
  .alert-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s; }
    .alert-close:hover {
      opacity: 1; }

.data-table {
  width: 100%;
  border-collapse: collapse; }
  .data-table thead tr {
    background-color: #f5f5f5;
    text-align: left; }
  .data-table thead th {
    padding: 12px;
    border-bottom: 2px solid #ddd;
    font-weight: bold; }
  .data-table tbody tr {
    border-bottom: 1px solid #eee; }
    .data-table tbody tr:hover {
      background-color: #fafafa; }
  .data-table tbody td {
    padding: 12px; }
    .data-table tbody td.actions a {
      margin-right: 8px;
      text-decoration: none; }
      .data-table tbody td.actions a.edit-link {
        color: #1a237e; }
      .data-table tbody td.actions a.delete-link {
        color: #f44336; }
    .data-table tbody td.status--active {
      color: #4caf50; }
    .data-table tbody td.status--inactive {
      color: #f44336; }
    .data-table tbody td.empty {
      padding: 24px;
      text-align: center;
      color: #757575; }

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999; }

.toast {
  min-width: 250px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease; }
  .toast.success {
    background-color: #4caf50;
    color: white; }
  .toast.error {
    background-color: #f44336;
    color: white; }

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0; }
  to {
    transform: translateX(0);
    opacity: 1; } }

.dashboard__balance {
  margin-top: 16px; }
  .dashboard__balance .balance-amount {
    font-size: 24px;
    font-weight: bold; }

.dashboard__actions {
  margin-top: 24px;
  display: flex;
  gap: 16px; }

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px; }

.balance-section {
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem; }

.balance-info {
  margin-bottom: 0;
  flex: 1; }

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; }

.balance-amount {
  font-size: 2.5rem;
  font-weight: bold;
  color: #212121;
  margin: 0;
  transition: opacity 1.2s ease; }

.balance-details {
  margin-top: 0.5rem;
  color: #757575;
  font-size: 0.9rem; }
  .balance-details p {
    margin: 0.25rem 0; }

.buy-limit {
  font-weight: 500; }

.last-synced {
  font-size: 0.85rem; }

.current_balance {
  margin-top: 0px;
  color: #757575;
  font-weight: 700; }

.sync-icon-btn {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  color: #1a237e;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; }
  .sync-icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.3s ease; }
  .sync-icon-btn:hover:not(.syncing):not(:disabled) {
    background: #e8e8e8; }
  .sync-icon-btn.syncing svg {
    animation: spin 1s linear infinite; }
  .sync-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed; }

@keyframes spin {
  from {
    transform: rotate(0deg); }
  to {
    transform: rotate(360deg); } }

.period-section {
  margin-top: 24px; }

.period-title {
  font-size: 16px;
  color: #757575;
  margin-bottom: 16px;
  font-weight: 600; }

.period-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap; }

.period-btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #212121;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease; }
  .period-btn:hover:not(.active) {
    background: #f5f5f5;
    border-color: #534bae; }
  .period-btn.active {
    background: #1a237e;
    color: #ffffff;
    border-color: #1a237e;
    font-weight: 500; }

.period-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px; }
  .period-stats .stat-card {
    flex: 1;
    padding: 16px;
    padding-top: 10px;
    padding-bottom: 10px; }

.stat-label {
  font-size: 14px;
  color: #757575;
  margin: 0;
  font-weight: 700; }

.stat-value {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  font-family: Roboto, Lato, sans-serif; }
  .stat-value.positive {
    color: #4caf50; }
  .stat-value.negative {
    color: #f44336; }

.staff-body {
  background: #f1f1f1;
  min-height: 100vh; }

.staff-header {
  height: 64px;
  background: #1a237e;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16); }
  .staff-header__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px; }
  .staff-header .icon-button {
    padding: 6px;
    border-radius: 10%;
    border: 1px solid #534BAE;
    background: #534BAE;
    display: flex;
    align-items: center;
    justify-content: center; }
    .staff-header .icon-button:hover {
      background: rgba(83, 75, 174, 0.8);
      cursor: pointer; }
  .staff-header .staff-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px; }
  .staff-header .header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #534BAE;
    color: whitesmoke;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }

.staff-shell {
  display: flex;
  gap: 16px;
  min-height: calc(100vh - 68px); }

.staff-sidebar {
  width: 240px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
  overflow: hidden;
  transition: width 0.28s ease, box-shadow 0.24s ease; }
  .staff-sidebar.is-collapsed {
    width: 80px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
    .staff-sidebar.is-collapsed .sidebar__label,
    .staff-sidebar.is-collapsed .collapse__label {
      opacity: 0;
      pointer-events: none;
      width: 0;
      transition: opacity 0.18s ease, width 0.18s ease; }
    .staff-sidebar.is-collapsed .sidebar__tab,
    .staff-sidebar.is-collapsed .sidebar__collapse {
      padding: 10px;
      width: 48px; }

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

.sidebar__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #999;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap; }
  .sidebar__tab:hover {
    background: #eef1ff; }
  .sidebar__tab.is-active {
    background: #eef1ff;
    border-color: #d7dbf4;
    color: #1a237e;
    font-weight: 700;
    transform: translateX(2px);
    font-family: "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; }
    .sidebar__tab.is-active svg {
      stroke: #1a237e; }
  .sidebar__tab svg {
    width: 20px;
    height: 20px;
    stroke: #999; }

.sidebar__collapse {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f7f7;
  border: none;
  cursor: pointer;
  color: #757575;
  transition: background 0.2s ease;
  white-space: nowrap; }
  .sidebar__collapse:hover {
    background: #ededed; }

.staff-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 1rem; }

.staff-content {
  flex: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto; }

@media (max-width: 960px) {
  .staff-shell {
    flex-direction: column; }
  .staff-sidebar {
    width: 100%;
    position: relative;
    top: 0; }
  .staff-main {
    padding: 0 16px 32px; } }

.vote-page {
  padding: 16px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px; }

.vote-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px; }

.vote-page__titles {
  display: flex;
  flex-direction: column;
  gap: 2px; }

.vote-page__eyebrow {
  margin: 0;
  font-size: 14px;
  color: #757575; }

.vote-card {
  background: #ffffff;
  border: 1px solid #ebedf5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 16px; }

.vote-card--users {
  background: #f7f9fc; }

.vote-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px; }

.vote-card__title-group {
  display: flex;
  flex-direction: column; }

.label-eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #212121; }

.btn--user-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a237e;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(26, 35, 126, 0.18);
  cursor: pointer; }
  .btn--user-select:hover {
    background: #534bae; }

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffd700;
  color: #000;
  border: 1px solid #e6c200;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  min-width: 140px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease; }
  .btn--primary:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px); }
  .btn--primary.is-ready {
    opacity: 1; }

.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #212121;
  cursor: pointer; }
  .btn--ghost:hover {
    background: #f5f6fb; }

.btn--link {
  background: transparent;
  border: none;
  color: #757575;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0; }
  .btn--link:hover {
    color: #1a237e;
    text-decoration: underline; }

.btn__icon {
  font-size: 16px; }

.btn__label {
  font-weight: 700; }

.user-select-area {
  background: #f1f3f9;
  border: 1px dashed #d6d9e5;
  border-radius: 10px;
  padding: 24px;
  min-height: 130px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center; }

.user-select-placeholder {
  width: 100%;
  text-align: center;
  color: #757575;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; }

.user-select-placeholder__icon {
  font-size: 32px; }

.user-select-placeholder__text {
  margin: 0;
  font-weight: 700; }

.user-select-placeholder__hint {
  margin: 0;
  font-size: 14px; }

.user-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #e8f1ff;
  border: 1px solid #c9d9ff;
  border-radius: 9999px;
  color: #000051;
  font-weight: 700; }

.user-chip__remove {
  background: transparent;
  border: none;
  color: #757575;
  cursor: pointer;
  font-size: 14px;
  line-height: 1; }
  .user-chip__remove:hover {
    color: #f44336; }

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; }

.vote-grid--single {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.vote-field {
  display: flex;
  flex-direction: column;
  gap: 6px; }

.vote-field__label {
  font-weight: 800;
  color: #212121;
  margin: 0; }

.vote-input {
  position: relative; }

.vote-input__control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.03);
  height: 48px; }
  .vote-input__control:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.12); }

.vote-fixed-display {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 16px;
  color: #212121;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02); }

.vote-input--icon .vote-input__control {
  padding-right: 40px; }

.vote-input__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #757575; }

.vote-field__note {
  margin: 0;
  font-size: 14px;
  color: #757575; }

.vote-field__error {
  color: #f44336;
  font-size: 14px; }

.required {
  color: #f44336; }

.vote-summary {
  background: #fff8e1;
  border: 1px solid #f2e1a4;
  border-radius: 12px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02); }

.vote-summary__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  align-items: center; }

.vote-summary__label {
  margin: 0;
  color: #757575;
  font-size: 14px; }

.vote-summary__value {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 18px; }

.vote-summary__total {
  text-align: right; }

.vote-summary__total-value {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 900;
  color: #cc9a00; }

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

.vote-messages {
  display: flex;
  flex-direction: column;
  gap: 8px; }

.vote-alert {
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent; }

.vote-alert--success {
  background: #e8f7e9;
  border-color: #b6e2b8;
  color: #1e7a26; }

.vote-alert--error {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #b3261e; }

.vote-alert--info {
  background: #e8f0fe;
  border-color: #c6d1ff;
  color: #1a237e; }

.vote-alert--warning {
  background: #fff4e5;
  border-color: #ffd59f;
  color: #b36b00; }

.user-select-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 40, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1200; }

.user-select-modal.is-open {
  display: flex; }

.user-select-modal__dialog {
  width: 94vw;
  max-width: 880px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  overflow: hidden; }

.user-select-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a237e;
  padding: 18px 20px;
  color: #fff; }

.user-select-modal__breadcrumb {
  margin: 0;
  opacity: 0.8;
  font-size: 14px; }

.user-select-modal__title {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800; }

.user-select-modal__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer; }

.user-select-modal__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px; }

.user-select-modal__search {
  position: relative; }

.user-select-modal__search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid #d6d9e5;
  border-radius: 4px;
  font-size: 16px; }

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #757575; }

.user-select-modal__selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f3fb;
  border: 1px solid #e1e5f2;
  border-radius: 4px;
  padding: 10px 12px; }

.selected-count {
  font-weight: 700; }

.user-select-modal__list {
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px; }

.user-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7f1;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: #fff; }

.user-row.is-selected {
  background: #e7f9e8;
  border-color: #b5e0b7; }

.user-row__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #c8d0e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px; }

.user-row.is-selected .user-row__check {
  background: #4caf50;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18); }

.user-row.is-selected .user-row__check::after {
  content: "✔"; }

.user-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px; }

.user-row__name {
  margin: 0;
  font-weight: 800; }

.user-row__meta {
  margin: 0;
  color: #757575;
  font-size: 14px; }

.user-row__balance {
  font-weight: 800;
  color: #212121;
  text-align: right; }

.user-select-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  background: #f7f8fc;
  border-top: 1px solid #e6e8f2; }

@media (max-width: 768px) {
  .vote-page__header {
    flex-direction: column;
    align-items: flex-start; }
  .vote-actions {
    flex-direction: column-reverse;
    align-items: stretch; }
  .btn--primary,
  .btn--ghost,
  .btn--user-select {
    width: 100%;
    justify-content: center; }
  .user-row {
    grid-template-columns: auto 1fr auto; } }

.tab-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 16px; }

.page-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

.card--elevated {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  background: #fff; }

.data-table {
  width: 100%;
  border-collapse: collapse; }
  .data-table thead th {
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #666; }
  .data-table tbody tr {
    border-bottom: 1px solid #ededed; }
  .data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    vertical-align: middle; }
  .data-table tbody tr:last-child {
    border-bottom: none; }
  .data-table .numeric {
    font-weight: 800;
    font-family: Roboto, Lato, sans-serif; }
  .data-table .actions {
    display: flex;
    gap: 8px;
    align-items: center; }
    .data-table .actions .icon-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      border: 1px solid #e0e0e0;
      background: #f8f8fb;
      cursor: pointer;
      transition: background 0.2s ease, box-shadow 0.2s ease; }
      .data-table .actions .icon-button:hover {
        background: #eef1ff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); }
      .data-table .actions .icon-button svg {
        width: 16px;
        height: 16px;
        fill: #1a237e;
        stroke: #1a237e; }
    .data-table .actions .js-edit-user svg {
      fill: none; }
    .data-table .actions .inline-action {
      margin: 0; }

.status--active,
.status--inactive {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px; }

.status--active {
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50; }

.status--inactive {
  background: rgba(244, 67, 54, 0.12);
  color: #f44336; }

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

.user-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  flex-direction: column;
  background: rgba(12, 18, 44, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1100;
  overflow-y: auto; }
  .user-modal.is-open {
    display: flex; }

.user-modal__content {
  width: 85vw;
  max-width: 650px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 0;
  margin: 30px 0; }

.user-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #121f76;
  border-radius: 12px 12px 0 0; }

.user-modal__title-block {
  display: flex;
  flex-direction: column;
  gap: 2px; }

.user-modal__breadcrumb {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.02em; }

.modal__title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700; }

.modal__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer; }
  .modal__close:hover {
    opacity: 0.85; }

.user-modal__form {
  display: flex;
  flex-direction: column; }

.user-modal__alert {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.08);
  color: #f44336;
  font-weight: 700; }
  .user-modal__alert.is-hidden {
    display: none; }

.user-modal__section {
  padding: 25px 25px 0px;
  display: flex;
  flex-direction: column;
  gap: 10px; }

.user-modal .section__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px; }

.user-modal .section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1b1c33; }

.user-modal .section__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff5d7;
  border: 1px solid #ffd966;
  border-radius: 4px;
  color: #9c6a00;
  font-size: 13px;
  width: 100%; }

.user-modal .note__icon {
  font-weight: 800; }

.user-modal .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px; }

.user-modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #212121; }

.user-modal .form-group label {
  font-weight: 700;
  font-size: 14px; }

.user-modal .required {
  color: #f44336; }

.user-modal .input,
.user-modal .input-with-addon input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d6d9e5;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
  resize: none; }
  .user-modal .input:focus,
  .user-modal .input-with-addon input:focus {
    outline: none;
    border-color: #4555c3;
    box-shadow: 0 0 0 3px rgba(69, 85, 195, 0.18); }

.user-modal .input-with-addon {
  position: relative;
  display: flex;
  align-items: center; }

.user-modal .input-addon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px; }
  .user-modal .input-addon.is-active {
    color: #1a237e; }

.user-modal .field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #f44336; }

.user-modal .field-error:empty {
  display: none; }

.user-modal .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 0 0 12px 12px; }

.user-modal .btn-ghost {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid #d6d9e5;
  background: #fff;
  font-weight: 700;
  cursor: pointer; }
  .user-modal .btn-ghost:hover {
    background: #f3f5ff; }

.user-modal .btn-primary {
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 4px;
  border: none;
  background: #1a237e;
  color: #fff;
  font-weight: 800;
  cursor: pointer; }
  .user-modal .btn-primary:hover {
    background: #101859; }
  .user-modal .btn-primary .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    animation: spin 0.9s linear infinite; }

.user-modal .spinner.is-hidden {
  display: none; }

@keyframes spin {
  to {
    transform: rotate(360deg); } }

body.modal-open {
  overflow: hidden; }

@media (max-width: 767px) {
  .user-modal__form {
    padding: 20px; }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch; }
  .btn-primary,
  .btn-ghost {
    width: 100%; } }

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