/* ===== 통합업무시스템 — 카카오워크 스타일 ===== */
:root {
  --kakao-yellow: #C4DF8C;  /* Vasco brand green */
  --kakao-dark: #191919;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #222;
  --text-sub: #6b7280;
  --primary: #191919;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea8a00;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --topbar-h: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--kakao-yellow); border-color: transparent; }
textarea { resize: vertical; min-height: 90px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--text);
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--kakao-yellow); border-color: var(--kakao-yellow); color: var(--kakao-dark); }
.btn-dark { background: var(--kakao-dark); border-color: var(--kakao-dark); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 로그인 ===== */
#login-screen, #invite-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--kakao-yellow) 0%, #B2D472 45%, #f7f7f7 45.1%);
  padding: 16px;
}
.login-card {
  background: #fff; border-radius: 20px; padding: 40px 32px; width: 100%; max-width: 380px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12); text-align: center;
}
.login-logo {
  display: block; width: min(250px, 82vw); height: auto; max-height: 72px;
  object-fit: contain; margin: 0 auto 18px;
  filter: brightness(0) saturate(100%) invert(74%) sepia(20%) saturate(900%)
    hue-rotate(42deg) brightness(94%) contrast(88%);
}
.login-card h1 { font-size: 24px; margin-bottom: 4px; }
.login-sub { color: var(--text-sub); margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.login-card input { margin-bottom: 10px; }
.login-remember { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--text-sub); font-size: 13px; cursor: pointer; }
.login-remember input { width: auto; margin: 0; }
.login-error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ===== 탑바 ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 50;
  background: var(--kakao-dark); color: #fff; display: flex; align-items: center;
  padding: 0 12px; gap: 10px;
}
.brand { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.brand-mark {
  background: var(--kakao-yellow); color: var(--kakao-dark); width: 28px; height: 28px;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.system-title { font-size: 15px; font-weight: 700; white-space: nowrap; }
.icon-btn {
  background: none; border: none; color: inherit; font-size: 19px; position: relative;
  width: 40px; height: 40px; border-radius: 10px;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.user-chip { font-size: 13px; color: #ddd; white-space: nowrap; }
.badge {
  position: absolute; top: 3px; right: 2px; background: var(--red); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; line-height: 16px;
  padding: 0 4px; text-align: center; font-weight: 700;
}
.nav-item .badge { position: static; margin-left: auto; }

/* ===== 레이아웃 ===== */
.layout { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }
.sidebar {
  width: 220px; background: #fff; border-right: 1px solid var(--border);
  padding: 14px 10px; position: fixed; top: var(--topbar-h); bottom: 0; overflow-y: auto; z-index: 40;
}
.nav-section {
  font-size: 11px; color: var(--text-sub); font-weight: 700; letter-spacing: .06em;
  margin: 16px 8px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; margin-bottom: 2px; color: #333;
}
.nav-item:hover { background: #f3f4f6; }
.nav-item.active { background: var(--kakao-yellow); color: var(--kakao-dark); font-weight: 700; }
.nav-new { border: 1px dashed #d1d5db; }
.main { flex: 1; margin-left: 220px; padding: 22px; max-width: 1100px; }

#sidebar-overlay {
  position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0,0,0,.4); z-index: 39;
}

/* ===== 하단 네비 (모바일) ===== */
.bottom-nav { display: none; }

/* ===== 페이지 공통 ===== */
.page-title { font-size: 21px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title .spacer { flex: 1; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card-pad { padding: 18px; }
.muted { color: var(--text-sub); font-size: 13px; }
.readonly-code { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.notice { padding: 11px 12px; border-radius: 8px; font-size: 13px; line-height: 1.55; }
.notice-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.notice-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ===== 대시보드 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s;
}
.stat:hover { transform: translateY(-2px); }
.stat .num { font-size: 26px; font-weight: 800; }
.stat .lbl { font-size: 13px; color: var(--text-sub); margin-top: 2px; }
.stat.hl { background: var(--kakao-yellow); border-color: var(--kakao-yellow); }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.list-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; }

/* ===== 문서 리스트 ===== */
.doc-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid #f0f1f3; cursor: pointer;
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: #fafafa; }
.doc-main { flex: 1; min-width: 0; }
.doc-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { font-size: 12.5px; color: var(--text-sub); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { padding: 36px 18px; text-align: center; color: var(--text-sub); font-size: 14px; }

/* ===== 상태 뱃지 ===== */
.status {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.st-draft { background: #f3f4f6; color: #555; }
.st-in_progress { background: #dbeafe; color: var(--blue); }
.st-approved { background: #dcfce7; color: var(--green); }
.st-rejected { background: #fee2e2; color: var(--red); }
.st-canceled { background: #f3f4f6; color: #777; }
.st-pending { background: #fef3c7; color: var(--orange); }
.st-waiting { background: #f3f4f6; color: #888; }
.st-agreed { background: #e0e7ff; color: #4338ca; }
.st-skipped { background: #f3f4f6; color: #aaa; }

/* ===== 검색바 ===== */
.searchbar { display: flex; gap: 8px; margin-bottom: 12px; }
.searchbar input { max-width: 320px; }
.box-filterbar { display:grid; grid-template-columns:1.25fr minmax(150px,.7fr) minmax(170px,.8fr) minmax(220px,1fr) auto auto; gap:8px; margin-bottom:8px; align-items:center; }
.box-date-filters { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; }
.box-filter-summary { display:flex; justify-content:space-between; gap:12px; margin:0 2px 9px; color:var(--text-sub); font-size:12px; }

/* ===== 폼 ===== */
.form-grid { display: grid; gap: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #444; }
.form-row .req { color: var(--red); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== 결재선 ===== */
.line-list { display: flex; flex-direction: column; gap: 8px; }
.line-item {
  display: flex; align-items: center; gap: 10px; background: #fafafa;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 14px;
}
.line-item .ord {
  background: var(--kakao-dark); color: #fff; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.line-item .who { flex: 1; min-width: 0; }
.line-item .type-tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.tt-approval { background: #dbeafe; color: var(--blue); }
.tt-agreement { background: #e0e7ff; color: #4338ca; }
.line-item .x { border: none; background: none; color: #999; font-size: 16px; }
.line-item .x:hover { color: var(--red); }

/* ===== 결재 진행 타임라인 ===== */
.steps-flow { display: flex; gap: 8px; flex-wrap: wrap; }
.step-box {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 128px;
  background: #fff; position: relative; flex: 0 1 auto;
}
.step-box.cur { border-color: var(--orange); background: #fffbeb; }
.step-box.ok { border-color: var(--green); }
.step-box.no { border-color: var(--red); }
.step-box .s-name { font-weight: 700; font-size: 14px; }
.step-box .s-sub { font-size: 12px; color: var(--text-sub); }
.step-box .s-comment { font-size: 12.5px; margin-top: 6px; background: #f7f7f8; padding: 6px 8px; border-radius: 6px; white-space: pre-wrap; }
.step-arrow { align-self: center; color: #bbb; font-size: 16px; }

/* ===== 문서 상세 ===== */
.doc-view-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.doc-view-title { font-size: 20px; font-weight: 800; flex: 1; min-width: 200px; }
.kv-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.kv-table th, .kv-table td { border: 1px solid var(--border); padding: 9px 12px; font-size: 14px; text-align: left; vertical-align: top; }
.kv-table th { background: #fafafa; width: 140px; font-weight: 700; white-space: nowrap; }
.doc-body { white-space: pre-wrap; line-height: 1.7; font-size: 15px; padding: 4px 2px; }
.action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.attach-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; }
.attach-item a { color: var(--blue); }

/* ===== 테이블 (관리자) ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #f0f1f3; font-size: 14px; text-align: left; }
.table th { color: var(--text-sub); font-size: 12.5px; font-weight: 700; background: #fafafa; }
.table tr:hover td { background: #fafafa; }

/* ===== 알림 패널 ===== */
.noti-panel {
  position: fixed; top: calc(var(--topbar-h) + 6px); right: 10px; width: 340px; max-width: calc(100vw - 20px);
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  z-index: 60; overflow: hidden;
}
.noti-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.noti-list { max-height: 380px; overflow-y: auto; }
.noti-item { padding: 11px 14px; border-bottom: 1px solid #f4f4f5; font-size: 13.5px; cursor: pointer; }
.noti-item:hover { background: #fafafa; }
.noti-item.unread { background: #fffbe6; }
.noti-item .t { color: var(--text-sub); font-size: 11.5px; margin-top: 3px; }

/* ===== 모달 ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 86vh;
  overflow-y: auto; padding: 22px;
}
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.modal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ===== 토스트 ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--kakao-dark); color: #fff; padding: 11px 20px; border-radius: 24px;
  font-size: 14px; z-index: 90; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 90vw;
}

/* ===== 사용자 선택 리스트 ===== */
.user-pick-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.user-pick {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid #f4f4f5; font-size: 14px;
}
.user-pick:hover { background: #fafafa; }
.user-pick .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--kakao-yellow);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}

/* ===== 캘린더 ===== */
.cal-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-month { font-size: 18px; font-weight: 800; min-width: 130px; text-align: center; }
.cal-toolbar select { width: auto; padding: 8px 10px; font-size: 13.5px; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.cal-dow {
  padding: 9px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-sub);
  background: #fafafa; border-bottom: 1px solid var(--border);
}
.cal-dow.sun { color: var(--red); }
.cal-dow.sat { color: var(--blue); }
.cal-cell {
  min-height: 96px; border-bottom: 1px solid #f0f1f3; border-right: 1px solid #f0f1f3;
  padding: 5px; cursor: pointer; position: relative; overflow: hidden;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: #fafafa; }
.cal-cell.other { background: #fbfbfc; }
.cal-cell.other .cal-date { color: #c3c6cc; }
.cal-date { font-size: 12.5px; font-weight: 700; margin-bottom: 3px; }
.cal-cell.today .cal-date {
  background: var(--kakao-dark); color: var(--kakao-yellow); width: 22px; height: 22px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.cal-date.sun { color: var(--red); }
.cal-date.sat { color: var(--blue); }
.ev-chip {
  font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}
.ev-more { font-size: 11px; color: var(--text-sub); padding-left: 2px; }
.ev-연차 { background: #16a34a; }
.ev-반차 { background: #0d9488; }
.ev-출장 { background: #2563eb; }
.ev-외근 { background: #7c3aed; }
.ev-재택 { background: #ea8a00; }
.ev-기타 { background: #6b7280; }
.cal-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--text-sub); }
.cal-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 4px; vertical-align: -1px; }
.cal-day-list { margin-top: 12px; }
.ev-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f0f1f3; font-size: 14px; }
.ev-row:last-child { border-bottom: none; }
.ev-row .bar { width: 4px; height: 30px; border-radius: 2px; flex-shrink: 0; }
.ev-row .grow { flex: 1; min-width: 0; }

/* ============ 반응형 (모바일) ============ */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; width: 250px; box-shadow: 4px 0 20px rgba(0,0,0,.1); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 14px 12px 84px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .box-filterbar { grid-template-columns:1fr 1fr; }
  .box-date-filters, .box-filterbar #box-q { grid-column:1 / -1; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 0 9px; font-size: 11px; color: #777;
  }
  .bottom-nav a span { font-size: 19px; }
  .bottom-nav a.active { color: var(--kakao-dark); font-weight: 700; }
  .bn-new span {
    background: var(--kakao-yellow); width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; margin-top: -14px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
  }
  .kv-table th { width: 100px; }
  .user-chip { display: none; }
  .cal-cell { min-height: 66px; padding: 3px; }
  .ev-chip { font-size: 0; padding: 0; height: 5px; border-radius: 3px; }
  .cal-cell .cal-date { font-size: 11.5px; }
}
@media (min-width: 861px) {
  #menu-toggle { display: none; }
  #sidebar-overlay { display: none !important; }
}


/* ===== Vasco 로고 (상단 중앙) ===== */
.brand { position: absolute; left: 50%; transform: translateX(-50%); height: 100%; display: flex; align-items: center; gap: 0; padding: 0; }
.brand-logo { height: 28px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 22px; } }


/* ===== 라디오 선택 + 필드 툴팁 ===== */
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-opt { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: #fff; font-size: 14px; }
.radio-opt input { width: auto; margin: 0; }
.radio-opt:has(input:checked) { border-color: var(--kakao-yellow); background: #f6faef; font-weight: 600; }
.radio-opt.disabled { opacity: .42; cursor: not-allowed; background: #f3f4f6; }
.fhelp { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--text-sub); color: #fff; font-size: 11px; font-weight: 700; cursor: help; position: relative; vertical-align: middle; }
.fhelp:hover::after, .fhelp:focus::after { content: attr(data-tip); position: absolute; left: 0; top: 135%; z-index: 40; width: 270px; max-width: 70vw; background: #191919; color: #fff; padding: 9px 11px; border-radius: 8px; font-size: 12px; font-weight: 400; line-height: 1.55; white-space: pre-line; box-shadow: var(--shadow); }

/* ===== 지출결의서 상세 입력 ===== */
.expense-editor { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.expense-head, .expense-row { display: grid; grid-template-columns: minmax(130px,2fr) minmax(105px,1fr) minmax(105px,1fr) 90px 110px 36px; gap: 7px; align-items: center; padding: 8px; }
.expense-head { background: #f6f7f8; font-size: 12px; font-weight: 700; color: var(--text-sub); }
.expense-row { border-top: 1px solid var(--border); }
.expense-row input, .expense-row select { padding: 8px; font-size: 13px; }
.expense-money { text-align: right; font-size: 13px; }
.amount-input, .expense-row [data-exp="supply"], .foreign-expense-row [data-fx="usd"], #p-transfer-amount {
  text-align: right; font-variant-numeric: tabular-nums;
}
.expense-summary { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; padding: 11px; background: #f6faef; border-top: 1px solid var(--border); font-size: 14px; }
.expense-actions { padding: 8px; border-top: 1px solid var(--border); }
.foreign-expense-head, .foreign-expense-row { display: grid; grid-template-columns: minmax(150px,2fr) minmax(110px,1fr) 120px 145px 145px 36px; gap: 7px; align-items: center; padding: 8px; }
.foreign-expense-head { background:#f6f7f8; font-size:12px; font-weight:700; color:var(--text-sub); }
.foreign-expense-row { border-top:1px solid var(--border); }
.foreign-expense-row input, .foreign-expense-row select { padding:8px; font-size:13px; }
.exchange-rate { font-size:12px; text-align:right; }
.exchange-meta { padding:9px 11px; background:#eef6ff; color:#315477; font-size:12px; border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:8px; align-items:center; }
.payment-panel { margin-top: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fafafa; }
.payment-panel .form-2col { margin-top: 10px; }
.saved-card-note { font-size: 12px; color: var(--text-sub); margin-top: 6px; }
.default-grid { display: grid; gap: 14px; max-height: 65vh; overflow-y: auto; padding-right: 4px; }
.default-template { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.default-template h4 { margin-bottom: 9px; }
.multi-select { min-height: 100px; }
.content-expense-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.content-expense-table th, .content-expense-table td { border: 1px solid var(--border); padding: 7px; }
.content-expense-table td.num { text-align: right; }
@media (max-width: 700px) {
  .system-title { font-size: 12px; }
  .expense-head { display: none; }
  .expense-row { grid-template-columns: 1fr 1fr; }
  .expense-row [data-exp="description"] { grid-column: 1 / -1; }
  .expense-row .x { justify-self: end; }
  .foreign-expense-head { display:none; }
  .foreign-expense-row { grid-template-columns:1fr 1fr; }
  .foreign-expense-row [data-fx="description"] { grid-column:1 / -1; }
  .user-chip { display: none; }
}
