@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f5f5;
  color: #24282a;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", ヒラギノ角ゴシック,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  font-size: 14px;
  line-height: 1.57;
}

a {
  color: #1294ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

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

.page-companies .main-content > .container {
  max-width: none;
}

.page-companies .card {
  max-width: none;
}

:root {
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 72px;
}

html.sidebar-collapsed {
  --sidebar-width: var(--sidebar-width-collapsed);
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 50;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.25s ease;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  min-height: 100%;
  width: var(--sidebar-width);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
  min-height: 36px;
}

.sidebar-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.56);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(33, 189, 219, 0.15);
  color: #1294ad;
}

.toggle-icon-collapsed {
  display: none;
}

html.sidebar-collapsed .toggle-icon-expanded {
  display: none;
}

html.sidebar-collapsed .toggle-icon-collapsed {
  display: block;
}

html.sidebar-collapsed .sidebar-header {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

html.sidebar-collapsed .sidebar-toggle {
  order: -1;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-user {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.84);
}

.sidebar-role {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  width: 100%;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f5f5;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}

.login-card {
  margin-bottom: 0;
}

.login-title {
  margin: 0 0 8px;
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #21bddb;
  text-align: center;
}

.login-subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.56);
  font-size: 14px;
}

.login-form .form-group:last-of-type {
  margin-bottom: 24px;
}

.logo {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 0 4px;
  font-family: Poppins, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #21bddb;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}

.logo-short {
  display: none;
}

html.sidebar-collapsed .logo-full {
  display: none;
}

html.sidebar-collapsed .logo {
  flex: none;
  text-align: center;
  padding: 0;
}

html.sidebar-collapsed .logo-short {
  display: block;
  font-size: 16px;
}

.logo:hover {
  text-decoration: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 16px;
  border-radius: 100px;
  color: rgba(0, 0, 0, 0.74);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
}

.nav-short {
  display: none;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  font-family: Poppins, sans-serif;
}

html.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 12px 8px;
}

html.sidebar-collapsed .nav-text {
  display: none;
}

html.sidebar-collapsed .nav-short {
  display: block;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
}

html.sidebar-collapsed .sidebar-logout .nav-text {
  display: none;
}

html.sidebar-collapsed .sidebar-logout .nav-short {
  display: block;
}

html.sidebar-collapsed .sidebar-user,
html.sidebar-collapsed .sidebar-role {
  display: none;
}

html.sidebar-collapsed .sidebar-footer {
  padding-top: 12px;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(33, 189, 219, 0.1);
  color: #1294ad;
  text-decoration: none;
}

.app-body {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
}

.main-content {
  flex: 1;
  padding: 48px 0 48px;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  margin: 0 0 8px;
  font-family: Poppins, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.84);
}

.page-description {
  margin: 0;
  color: rgba(0, 0, 0, 0.56);
  font-size: 14px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  margin: 0 0 16px;
  font-family: Poppins, "Helvetica Neue", "Hiragino Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.84);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.84);
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.radio-label.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.radio-label input[type="radio"] {
  margin: 0;
}

.source-memo-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.form-hint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.form-input,
.form-select {
  width: 100%;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.84);
  font-family: Lato, "Helvetica Neue", "Hiragino Sans", メイリオ, sans-serif;
  font-size: 16px;
  line-height: 1.71;
  min-height: 39px;
}

.form-textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.84);
  font-family: Lato, "Helvetica Neue", "Hiragino Sans", メイリオ, sans-serif;
  font-size: 14px;
  line-height: 1.57;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 100px;
  font-family: Poppins, "Helvetica Neue", "Hiragino Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #21bddb;
  color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 2px 6px 0;
}

.btn-secondary {
  background: #ffffff;
  color: rgba(0, 0, 0, 0.56);
  box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 0 0 1px;
}

.btn-success {
  background: #43a047;
  color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 2px 6px 0;
}

.btn-danger {
  background: #e53935;
  color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 2px 6px 0;
}

.btn-warning {
  background: #fb8c00;
  color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 2px 6px 0;
}

.btn-ghost {
  background: transparent;
  color: rgba(0, 0, 0, 0.56);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: rgba(67, 160, 71, 0.12);
  color: #2e7d32;
}

.alert-error {
  background: rgba(229, 57, 53, 0.12);
  color: #c62828;
}

.alert-info {
  background: rgba(33, 189, 219, 0.12);
  color: #006f8e;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
}

.stat-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.stat-value {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #21bddb;
  line-height: 1.2;
}

.table-wrap {
  overflow-x: auto;
}

.companies-filter-toggle-bar {
  margin-bottom: 12px;
}

.companies-filter-panel.hidden {
  display: none;
}

.companies-list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.companies-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.companies-list-count {
  margin: 0;
}

.companies-per-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.companies-per-page-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.56);
  white-space: nowrap;
}

.companies-per-page-form .form-select {
  width: auto;
  min-width: 100px;
}

.pagination {
  margin-top: 20px;
}

.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.74);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pagination-link:hover {
  background: rgba(0, 111, 142, 0.12);
  color: #006f8e;
}

.pagination-link.is-active {
  background: #006f8e;
  color: #ffffff;
}

.pagination-link.is-disabled,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: rgba(0, 0, 0, 0.3);
  font-size: 13px;
}

.companies-selected-count {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.56);
}

.data-table .col-select {
  display: none;
  width: 44px;
  padding-left: 12px;
  padding-right: 8px;
  text-align: center;
  vertical-align: middle;
}

.data-table.is-select-mode .col-select {
  display: table-cell;
}

.data-table .company-select,
.data-table .company-select-all {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-table th {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.56);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.th-sortable {
  padding: 0;
}

.th-sort-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  color: rgba(0, 0, 0, 0.56);
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.th-sort-link:hover {
  color: #1294ad;
  text-decoration: none;
}

.th-sort-link.is-active {
  color: #21bddb;
}

.sort-indicator {
  font-size: 10px;
  line-height: 1;
}

.data-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-cyan {
  background: rgba(33, 189, 219, 0.15);
  color: #006f8e;
}

.badge-gray {
  background: #eeeeee;
  color: rgba(0, 0, 0, 0.56);
}

.badge-success {
  background: rgba(67, 160, 71, 0.15);
  color: #2e7d32;
}

.badge-danger {
  background: rgba(229, 57, 53, 0.15);
  color: #c62828;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.active-filters-label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.active-filter-clear {
  font-size: 12px;
  color: #1294ad;
  text-decoration: none;
}

.active-filter-clear:hover {
  text-decoration: underline;
}

.template-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.template-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
}

.template-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.template-item-name {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.84);
}

.template-item-meta {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.template-item-body {
  white-space: pre-wrap;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.74);
  background: #ffffff;
  padding: 12px;
  border-radius: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.template-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.memo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.memo-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
}

.memo-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.memo-item-title {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.84);
}

.memo-item-date {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.memo-item-meta {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.memo-item-detail {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.74);
  background: #ffffff;
  padding: 12px;
  border-radius: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.sales-page {
  max-width: 900px;
  margin: 0 auto;
}

.sales-progress {
  text-align: center;
  margin-bottom: 32px;
}

.sales-timer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 8px;
}

.sales-session-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.template-select-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.template-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
}

.template-select-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 6px;
}

.template-select-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.template-select-check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.template-select-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.template-select-name {
  flex: 1;
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #21bddb;
  text-align: left;
  cursor: pointer;
}

.template-select-name:hover {
  text-decoration: underline;
}

.template-select-name[aria-expanded="true"] {
  color: rgba(0, 0, 0, 0.84);
}

.template-select-preview {
  padding-left: 26px;
}

.template-select-preview .template-item-body {
  max-height: 200px;
}

.sales-resume-card {
  margin-bottom: 24px;
  border: 1px solid rgba(33, 189, 219, 0.25);
}

.sales-timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sales-timer-label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.sales-timer-value {
  font-family: Poppins, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #21bddb;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sales-progress-text {
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #21bddb;
}

.sales-company-name {
  font-family: Poppins, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.84);
  margin: 0 0 16px;
  line-height: 1.4;
}

.sales-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.sales-meta-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.sales-meta-label {
  color: rgba(0, 0, 0, 0.4);
  min-width: 120px;
}

.sales-meta-value {
  color: rgba(0, 0, 0, 0.84);
  word-break: break-all;
}

.sales-message {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  white-space: pre-wrap;
  font-family: Lato, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.71;
  color: rgba(0, 0, 0, 0.84);
  max-height: 160px;
  overflow-y: auto;
}

.sales-template-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.sales-template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sales-template-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.sales-template-name {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #21bddb;
}

.sales-message-char-count {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}

.sales-message-switch {
  margin-top: 16px;
}

.sales-message-switch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-copy-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 700;
}

.sales-history-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.sales-history-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.56);
}

.sales-history-list,
.template-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sales-history-list li,
.template-history-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

.sales-history-list li:last-child,
.template-history-list li:last-child {
  border-bottom: none;
}

.sales-history-date,
.template-history-date {
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  min-width: 110px;
}

.sales-history-method,
.template-history-method {
  color: rgba(0, 0, 0, 0.56);
  font-size: 12px;
}

.template-history-cell {
  min-width: 220px;
  max-width: 320px;
}

.source-memo-cell {
  min-width: 160px;
  max-width: 280px;
}

.source-memo-text {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.75);
  word-break: break-word;
}

.template-history-list li {
  padding: 4px 0;
}

.parameter-code {
  display: inline-block;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 4px;
  font-family: Lato, "Helvetica Neue", monospace;
  font-size: 13px;
  color: #006f8e;
}

.sales-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sales-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sales-actions-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sales-actions-group--success .sales-actions-label {
  color: #2e7d32;
}

.sales-actions-group--failed .sales-actions-label {
  color: #e65100;
}

.sales-actions-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sales-actions-group--nav {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sales-actions .btn {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
}

.sales-complete {
  text-align: center;
  padding: 72px 24px;
}

.sales-continue-box {
  margin: 32px auto 0;
  padding: 24px;
  max-width: 480px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
}

.sales-continue-box .card-title {
  margin-bottom: 8px;
}

.sales-complete-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.sales-complete-title {
  font-family: Poppins, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.84);
  margin: 0 0 16px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.source-memo-text {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.75);
  word-break: break-word;
}

.company-name-link {
  color: #006f8e;
  font-weight: 600;
  text-decoration: none;
}

.page-companies .data-table .col-company-name {
  min-width: 320px;
  width: 320px;
  word-break: break-word;
}

.company-name-link:hover {
  text-decoration: underline;
}

.company-detail-header {
  margin-bottom: 8px;
}

.company-detail-back {
  margin: 0 0 8px;
  font-size: 13px;
}

.company-detail-back a {
  color: #006f8e;
  text-decoration: none;
}

.company-detail-back a:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.detail-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.detail-dl dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
}

.detail-dl dd {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.84);
  word-break: break-word;
}

.detail-empty {
  margin: 0;
  color: rgba(0, 0, 0, 0.4);
}

.detail-message-cell {
  min-width: 200px;
  max-width: 360px;
}

.detail-message-body {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.74);
  background: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.detail-truncate-cell {
  max-width: 220px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-dl dt {
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .page-title {
    font-size: 28px;
  }

  :root {
    --sidebar-width: 200px;
    --sidebar-width-collapsed: 64px;
  }

  .sidebar-inner {
    padding: 12px 8px;
  }

  .logo {
    font-size: 16px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 13px;
  }

  html.sidebar-collapsed .nav-link {
    padding: 10px 6px;
  }

  .sales-timer-bar {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .sales-session-controls {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .sales-timer-value {
    font-size: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .sales-actions-row {
    grid-template-columns: 1fr;
  }

  .sales-company-name {
    font-size: 22px;
  }

  .sales-message {
    padding: 24px;
  }
}
