/* styles.css — 経費精算ヒカリ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------------ */
/* CSS Custom Properties                                                */
/* ------------------------------------------------------------------ */
:root {
  --primary: #0EA5B8;
  --accent:  #00D4C8;
  --dark:    #0D2B3E;
  --dark-lighter: #1a3a52;
  --dark-hover:   #163244;
  --bg:      #F4FAFB;
  --white:   #ffffff;
  --amber:   #F59E0B;
  --amber-hover: #D97706;
  --amber-light: #FEF3C7;
  --text:    #1e293b;
  --text-secondary: #64748b;
  --border:  #e2e8f0;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius:  12px;
  --sidebar-width: 240px;
  --header-height: 60px;
}

/* ------------------------------------------------------------------ */
/* Reset & Base                                                         */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ------------------------------------------------------------------ */
/* Layout                                                               */
/* ------------------------------------------------------------------ */
#app { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  transition: transform .25s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.sidebar-logo-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: .02em;
}

.sidebar-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  font-weight: 400;
}

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 16px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  transition: background .15s, color .15s;
  cursor: pointer;
  position: relative;
}

.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active {
  background: rgba(14,165,184,.25);
  color: #fff;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 24px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  width: 18px; height: 18px;
  opacity: .7;
  flex-shrink: 0;
}
.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: rgba(255,255,255,.3);
}

/* Main area */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Header */
.header {
  height: var(--header-height);
  min-height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 100;
}

.header-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  color: var(--text-secondary);
}
.header-menu-btn:hover { background: var(--bg); }

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  flex: 1;
}

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

/* User switcher dropdown */
.user-switcher {
  position: relative;
}

.user-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s;
}
.user-switcher-btn:hover { border-color: var(--primary); }

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

.user-switcher-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 500;
  overflow: hidden;
}
.user-switcher-dropdown.open { display: block; }

.user-switcher-dropdown .dropdown-header {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}

.user-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .12s;
}
.user-switcher-item:hover { background: var(--bg); }
.user-switcher-item.current { background: #f0fafb; }

.user-switcher-item .item-info { flex: 1; min-width: 0; }
.user-switcher-item .item-name { font-size: 13px; font-weight: 500; }
.user-switcher-item .item-role {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Logout button */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all .15s;
}
.logout-btn:hover { border-color: #ef4444; color: #ef4444; background: #fff5f5; }

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px;
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }

/* ------------------------------------------------------------------ */
/* Login Page                                                           */
/* ------------------------------------------------------------------ */
.login-page {
  display: flex;
  height: 100vh;
  background: var(--bg);
}

.login-hero {
  flex: 1;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.login-hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.login-catchcopy {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.login-brand {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

.login-right {
  width: 440px;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  background: var(--white);
}

.login-right-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.login-logo-wrap img { width: 40px; height: 40px; object-fit: contain; }

.login-logo-wrap span {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

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

.login-cards-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.login-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all .18s;
  margin-bottom: 12px;
}
.login-user-card:last-child { margin-bottom: 0; }
.login-user-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,184,.12);
  background: #f0fafb;
}

.login-user-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}

.login-user-info { flex: 1; }
.login-user-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.login-user-role { font-size: 12px; color: var(--text-secondary); }

.login-arrow {
  color: var(--text-secondary);
  font-size: 18px;
}

.login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 24px;
}
.login-footer a { color: var(--primary); }
.login-footer a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Cards & Summaries                                                    */
/* ------------------------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.summary-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.summary-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.summary-card:nth-child(2)::after { background: var(--amber); }
.summary-card:nth-child(3)::after { background: #10b981; }
.summary-card:nth-child(4)::after { background: var(--accent); }

.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.summary-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------------ */
/* Graphs (SVG)                                                         */
/* ------------------------------------------------------------------ */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.chart-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.donut-svg { flex-shrink: 0; }

.donut-legend {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-icon {
  width: 18px; height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.legend-name { flex: 1; color: var(--text); }
.legend-amount { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.bar-chart-wrap { width: 100%; overflow-x: auto; }
.bar-chart-svg { display: block; }

/* ------------------------------------------------------------------ */
/* Tables                                                               */
/* ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr.clickable:hover td { background: #f8fbfc; cursor: pointer; }

.amount-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Status Badges                                                        */
/* ------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-draft    { background: #f1f5f9; color: #64748b; }
.badge-pending  { background: var(--amber-light); color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* ------------------------------------------------------------------ */
/* Buttons                                                              */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: all .15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover { background: var(--amber-hover); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #e8f4f5; border-color: var(--primary); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: rgba(14,165,184,.08); }

.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: none;
}
.btn-danger:hover { background: #fecaca; }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-icon { padding: 7px; border-radius: 7px; }

/* ------------------------------------------------------------------ */
/* Forms                                                                */
/* ------------------------------------------------------------------ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,184,.12);
}

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

textarea.form-control { min-height: 80px; resize: vertical; }

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

/* Category selector */
.cat-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cat-select-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  font-size: 11px;
  text-align: center;
  color: var(--text-secondary);
}
.cat-select-item:hover { border-color: var(--primary); color: var(--primary); background: #f0fafb; }
.cat-select-item.selected {
  border-color: var(--amber);
  background: var(--amber-light);
  color: #92400e;
}
.cat-select-item img { width: 28px; height: 28px; object-fit: contain; }

/* Receipt upload */
.receipt-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.receipt-upload-area:hover { border-color: var(--primary); background: #f0fafb; }
.receipt-upload-area.has-file { border-color: var(--primary); background: #f0fafb; }
.receipt-upload-area input[type=file] { display: none; }

.receipt-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
  margin-top: 12px;
}

.upload-hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* ------------------------------------------------------------------ */
/* Modals                                                               */
/* ------------------------------------------------------------------ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--dark); }

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all .12s;
}
.modal-close:hover { background: #f1f5f9; color: var(--text); }

.modal-body { padding: 24px; flex: 1; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--white);
}

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item.full { grid-column: 1 / -1; }
.detail-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.detail-value { font-size: 14px; color: var(--text); }
.detail-value.amount { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--dark); }

/* ------------------------------------------------------------------ */
/* Filters & Search                                                     */
/* ------------------------------------------------------------------ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
  border: none;
  background: none;
}
.filter-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-input-wrap svg {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}
.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: var(--white);
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--primary); }

/* ------------------------------------------------------------------ */
/* Empty State                                                          */
/* ------------------------------------------------------------------ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
  text-align: center;
}
.empty-state img { width: 120px; height: 120px; object-fit: contain; opacity: .85; }
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.empty-state-sub { font-size: 13px; color: var(--text-secondary); }

/* ------------------------------------------------------------------ */
/* Toast                                                                */
/* ------------------------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .25s ease;
  max-width: 300px;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error   { border-left: 4px solid #ef4444; }
.toast.info    { border-left: 4px solid var(--primary); }

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

/* ------------------------------------------------------------------ */
/* Page-specific                                                        */
/* ------------------------------------------------------------------ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title { font-size: 22px; font-weight: 700; color: var(--dark); }
.page-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* Reports */
.report-month-select {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.report-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--dark);
  border-radius: 10px;
  color: #fff;
  margin-top: 16px;
}

.report-total-label { font-size: 14px; font-weight: 600; }
.report-total-amount { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Settings */
.settings-section { margin-bottom: 32px; }
.settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.settings-item:last-child { border-bottom: none; }
.settings-item-info { flex: 1; }
.settings-item-name { font-size: 14px; font-weight: 500; }
.settings-item-sub { font-size: 12px; color: var(--text-secondary); }

.cat-icon-sm { width: 24px; height: 24px; object-fit: contain; }

/* Approval comment box */
.comment-box {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  min-height: 70px;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.comment-box:focus { border-color: var(--primary); }

/* Section title inside card */
.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }

  .header-menu-btn { display: flex; }

  .content { padding: 20px 16px; }

  .login-hero { display: none; }
  .login-right { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .cat-select-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .cat-select-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; align-items: stretch; }
}
