:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --blue-light: #e8effe;
  --border: #d9dee6;
  --bg: #f5f6f8;
  --text: #1f2430;
  --muted: #6b7280;
  --red: #dc2626;
  --green: #16a34a;
  --amber: #d97706;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.hidden { display: none !important; }

/* ---------- ランディングページ ---------- */

.landing-screen {
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.landing-brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: #fff;
}

.landing-nav-links {
  display: flex;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.landing-nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.landing-nav-links a:hover { color: #fff; }

.landing-header-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .landing-nav-links { display: none; }
}

.landing-btn-outline,
.landing-btn-solid {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  border: none;
}

.landing-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}
.landing-btn-outline:hover { background: rgba(255,255,255,0.12); }

.landing-btn-solid {
  background: #fff;
  color: var(--blue-dark);
}
.landing-btn-solid:hover { background: #e5ecff; }

.landing-btn-large {
  padding: 0.8rem 1.8rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

.landing-hero {
  width: 100%;
  padding: 0 0 3.5rem;
  background: radial-gradient(1100px 480px at 85% -10%, var(--blue-light) 0%, rgba(244,247,254,0) 60%);
}

.landing-hero-image {
  width: 100%;
  line-height: 0;
}

.landing-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.landing-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.landing-hero-text {
  text-align: center;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.landing-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.landing-hero h1 {
  font-size: 2.1rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
}

.landing-hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 2rem;
}

.landing-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.landing-hero-actions .landing-btn-solid {
  background: var(--blue);
  color: #fff;
}
.landing-hero-actions .landing-btn-solid:hover { background: var(--blue-dark); }

.landing-hero-actions .landing-btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
}
.landing-hero-actions .landing-btn-outline:hover { background: rgba(37,99,235,0.08); }

.landing-trust-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.landing-trust-row span { display: flex; align-items: center; gap: 0.4rem; }

.landing-check-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4f6ec;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .landing-hero h1 { font-size: 1.7rem; }
}

.landing-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.landing-section-tag {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.landing-section-head h2 {
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  font-weight: 800;
}

.landing-section-head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.landing-steps {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.landing-step {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--blue-light);
}

.landing-step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.landing-step h3 { font-size: 1rem; margin: 0 0 0.4rem; font-weight: 800; }
.landing-step p { margin: 0; color: var(--text); font-size: 0.85rem; opacity: 0.85; }

@media (max-width: 780px) {
  .landing-steps-grid { grid-template-columns: 1fr; }
}

.landing-features {
  flex: 1;
  background: #f8f9fb;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.landing-features > .landing-feature-claude,
.landing-feature-grid {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.landing-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.landing-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.landing-feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.landing-feature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.landing-feature-claude {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: #fff;
  border: 1.5px solid var(--blue);
}

.landing-feature-claude .landing-feature-icon {
  width: 64px;
  height: 64px;
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
  margin-bottom: 0;
}

.landing-feature-claude-text {
  text-align: left;
}

.landing-feature-claude h3 {
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.landing-feature-claude p {
  font-size: 1.05rem;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 780px) {
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-feature-claude { flex-direction: column; text-align: center; }
  .landing-feature-claude-text { text-align: center; }
}

.landing-pricing {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.pricing-card {
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-featured {
  background: #fff;
  color: var(--text);
  border-color: var(--blue);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.pricing-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.pro-only-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.pricing-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  margin-bottom: 0.25rem;
}

.pricing-amount {
  font-size: 1.8rem;
  font-weight: 800;
}

.pricing-period {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 0.2rem;
}

.pricing-limit {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.88rem;
  line-height: 1.9;
  padding-left: 1.3rem;
  position: relative;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--green);
}

.pricing-cta-btn {
  padding: 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
}

.landing-btn-outline-dark {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.landing-btn-outline-dark:hover { background: rgba(37,99,235,0.08); }

.pricing-card-featured .pricing-cta-btn {
  background: var(--blue);
  color: #fff;
}
.pricing-card-featured .pricing-cta-btn:hover { background: var(--blue-dark); }

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.landing-faq {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.landing-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.landing-faq-item h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.landing-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.landing-cta-band-wrap {
  padding: 0 1.5rem 4rem;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.landing-cta-band {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
}

.landing-cta-band h2 {
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  font-weight: 800;
}

.landing-cta-band p {
  margin: 0 0 1.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

.landing-cta-band .landing-btn-solid {
  background: #fff;
  color: var(--blue-dark);
}
.landing-cta-band .landing-btn-solid:hover { background: #e5ecff; }

.landing-footer {
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.landing-footer-grid {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}

.landing-footer-brand {
  color: var(--text);
}

.landing-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.landing-footer-brand p {
  margin: 0;
  font-size: 0.82rem;
  max-width: 260px;
  line-height: 1.7;
}

.landing-footer-col h5 {
  color: var(--text);
  font-size: 0.82rem;
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.landing-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.landing-footer-col a { color: var(--muted); text-decoration: none; }
.landing-footer-col a:hover { color: var(--blue); }

.landing-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .landing-footer-grid { grid-template-columns: 1fr; }
}

.link-back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}
.link-back-btn:hover { color: var(--text); }

/* ---------- ログイン画面 ---------- */

.login-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.login-box {
  background: #fff;
  padding: 2.5rem 2.5rem 2rem;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-box h1 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.login-box label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.login-box input {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.login-box button {
  margin-top: 0.5rem;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

.login-box button:hover { background: var(--blue-dark); }

.error { color: var(--red); font-size: 0.85rem; min-height: 1.2em; margin: 0; }

/* ---------- アプリ全体 ---------- */

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 56px;
  flex-shrink: 0;
  background: var(--header-color, #111827);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1.5rem;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.brand-logo { flex-shrink: 0; }

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.topbar-docname {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.25);
}

.doc-name-input,
#document-select {
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: none;
  min-width: 8rem;
}

.doc-name-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
}
.doc-name-btn:hover { background: rgba(255,255,255,0.15); }

.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.topbar-search input {
  width: 100%;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: none;
  font-size: 0.85rem;
}

.search-results {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  max-height: 320px;
  overflow-y: auto;
  z-index: 20;
}

.search-results .result-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.search-results .result-item:hover { background: #f1f5f9; }
.search-results .empty { padding: 0.6rem 0.75rem; font-size: 0.8rem; color: var(--muted); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.topbar-user button {
  background: transparent;
  border: 1px solid #4b5563;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.topbar-user button:hover { background: #1f2937; }

/* ---------- ユーザー管理モーダル ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  width: 480px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-box-wide {
  width: 960px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.modal-header h2 { font-size: 1.05rem; margin: 0; }

.modal-close {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
}
.modal-close:hover { color: var(--text); }

.user-register-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.user-register-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.user-register-form input {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  min-width: 0;
}

.user-register-form select {
  flex: 0 0 auto;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
}

.user-register-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}
.user-register-form button:hover { background: var(--blue-dark); }

.structure-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.structure-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.structure-form input[type="text"],
.structure-form input[type="number"] {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.structure-checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem !important;
  color: var(--red) !important;
  font-weight: 600;
}

.structure-form button {
  margin-top: 0.25rem;
  padding: 0.55rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}
.structure-form button:hover { background: var(--blue-dark); }

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.user-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid var(--border);
}

.user-table td {
  padding: 0.5rem 0.3rem;
  border-bottom: 1px solid #f1f5f9;
}

.role-badge {
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}
.role-badge.admin { background: #fee2e2; color: var(--red); }

.user-table .delete-btn {
  background: transparent;
  border: 1px solid #fca5a5;
  color: var(--red);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
}
.user-table .delete-btn:hover { background: #fee2e2; }
.user-table .delete-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.header-color-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef0f3;
}

.header-color-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header-color-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-color-row input[type="color"] {
  width: 2.5rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.header-color-row input[type="password"],
.header-color-row input[type="text"],
.header-color-row select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
}

/* ---------- 文書メンバー管理（既存ユーザーの追加ピッカー） ---------- */

.member-picker-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.75rem 0 0.5rem;
}

.member-picker-row select {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  min-width: 0;
}

.member-picker-row button {
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}
.member-picker-row button:hover { background: var(--blue-dark); }

.user-table .member-remove-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}
.user-table .member-remove-btn:hover { background: #f1f5f9; }

.user-table .account-delete-btn {
  background: transparent;
  border: none;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0;
}
.user-table .account-delete-btn:hover { color: #991b1b; }

.user-table td.empty {
  text-align: center;
  color: var(--muted);
  padding: 1rem 0.3rem;
}

/* ---------- 文書一覧画面 ---------- */

.document-list-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
  color: var(--text);
}

.document-list-main {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  box-sizing: border-box;
}

.document-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.document-list-header h1 {
  font-size: 1.3rem;
  margin: 0;
}

.document-list-header button {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.document-list-header button:hover { background: var(--blue-dark); }

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

.document-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.1rem;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.document-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.document-card-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.document-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.document-list-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
}

.header-color-row input[type="password"],
.header-color-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

.header-color-row button {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 0.8rem;
}
.header-color-row button:hover { background: #eff6ff; }

.header-color-status {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.ai-settings-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

/* ---------- AIアシスト（Claude） ---------- */

.ai-assist-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  background: #f8faff;
  border-radius: 10px;
}

.ai-assist-locked {
  background: #f9fafb;
  border-color: var(--border);
}

.ai-assist-locked-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.ai-assist-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.ai-assist-mode-row {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.ai-assist-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.ai-assist-input-row textarea {
  flex: 1;
  min-height: 4.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
}

.ai-assist-mic-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 1.1rem;
  cursor: pointer;
}
.ai-assist-mic-btn:hover { background: #eff6ff; }
.ai-assist-mic-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  animation: ai-mic-pulse 1.2s infinite;
}
@keyframes ai-mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

.ai-assist-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.ai-assist-action-row button {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}
.ai-assist-action-row button:hover { background: var(--blue-dark); }
.ai-assist-action-row button:disabled { background: #9ca3af; cursor: default; }

.ai-assist-status {
  font-size: 0.8rem;
  color: var(--muted);
}

.ai-assist-result-box {
  margin-top: 0.9rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ai-assist-result-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ai-assist-result-text {
  font-family: inherit;
  font-size: 0.85rem;
  white-space: pre-wrap;
  margin: 0 0 0.75rem;
  max-height: 16rem;
  overflow-y: auto;
}

.ai-assist-result-actions {
  display: flex;
  gap: 0.6rem;
}

.ai-assist-result-actions button {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}

#ai-assist-apply-btn {
  border: none;
  background: var(--green);
  color: #fff;
}
#ai-assist-apply-btn:hover { background: #15803d; }

#ai-assist-discard-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
#ai-assist-discard-btn:hover { background: #f3f4f6; }

/* ---------- コメント ---------- */

.comments-box {
  margin-top: 1.5rem;
  border-top: 1px solid #eef0f3;
  padding-top: 1rem;
}

.comments-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.comment-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f6f7f9;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.comment-text {
  font-size: 0.85rem;
  white-space: pre-wrap;
  margin-top: 0.2rem;
}

.comment-delete {
  background: transparent;
  border: 1px solid #fca5a5;
  color: var(--red);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
}
.comment-delete:hover { background: #fee2e2; }

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.comment-input-row input[type="text"] {
  flex: 1;
  padding: 0.35rem 0.6rem;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  font-size: 0.85rem;
}

.comment-input-row button {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}
.comment-input-row button:hover { background: var(--blue-dark); }
.comment-input-row button:disabled { background: #9ca3af; cursor: default; }

/* ---------- 作成が必要な文書 ---------- */

.reqdocs-box {
  margin-top: 1.5rem;
  border-top: 1px solid #eef0f3;
  padding-top: 1rem;
}

.reqdocs-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.reqdoc-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f6f7f9;
}

.reqdoc-name-row {
  flex: 0 0 auto;
  min-width: 12rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reqdoc-name {
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.reqdoc-name-edit-btn,
.reqdoc-name-remove-btn,
.reqdoc-name-save-btn,
.reqdoc-name-cancel-btn {
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  white-space: nowrap;
}

.reqdoc-name-edit-btn,
.reqdoc-name-save-btn {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.reqdoc-name-edit-btn:hover,
.reqdoc-name-save-btn:hover { background: #eff6ff; }

.reqdoc-name-remove-btn {
  background: transparent;
  border: 1px solid #fca5a5;
  color: var(--red);
}
.reqdoc-name-remove-btn:hover { background: #fee2e2; }

.reqdoc-name-cancel-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: var(--muted);
}
.reqdoc-name-cancel-btn:hover { background: #f3f4f6; }

.reqdoc-name-input {
  font-size: 0.85rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-width: 10rem;
}

.reqdoc-add-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e5e7eb;
}

.reqdoc-add-row input[type="text"] {
  flex: 0 1 16rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.reqdoc-add-row button {
  padding: 0.3rem 0.8rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}
.reqdoc-add-row button:hover { background: var(--blue-dark); }

.reqdoc-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.reqdoc-file {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.reqdoc-file-name {
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
}
.reqdoc-file-name:hover { text-decoration: underline; }

.reqdoc-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.reqdoc-file-delete {
  background: transparent;
  border: 1px solid #fca5a5;
  color: var(--red);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.7rem;
}
.reqdoc-file-delete:hover { background: #fee2e2; }

.reqdoc-upload {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.reqdoc-upload input[type="file"] {
  font-size: 0.75rem;
  max-width: 11rem;
}

.reqdoc-upload button {
  padding: 0.25rem 0.7rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
}
.reqdoc-upload button:hover { background: var(--blue-dark); }
.reqdoc-upload button:disabled { background: #9ca3af; cursor: default; }

/* ---------- 添付PDF ---------- */

.attachments-box {
  margin-top: 1.5rem;
  border-top: 1px solid #eef0f3;
  padding-top: 1rem;
}

.attachments-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #f6f7f9;
}

.attachment-name {
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.attachment-name:hover { text-decoration: underline; }

.attachment-meta {
  color: var(--muted);
  font-size: 0.75rem;
  flex: 1;
}

.attachment-delete {
  background: transparent;
  border: 1px solid #fca5a5;
  color: var(--red);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
}
.attachment-delete:hover { background: #fee2e2; }

.attachment-upload-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.attachment-upload-row input[type="file"] {
  font-size: 0.8rem;
  flex: 1;
}

.attachment-upload-row button {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}
.attachment-upload-row button:hover { background: var(--blue-dark); }
.attachment-upload-row button:disabled { background: #9ca3af; cursor: default; }

.attachment-upload-status {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ---------- PDFプレビューモーダル ---------- */

.pdf-modal-box {
  width: 90vw;
  height: 88vh;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
}

.pdf-modal-box .modal-header { flex-shrink: 0; }
.pdf-modal-box h2 { font-size: 0.9rem; word-break: break-all; padding-right: 1rem; }

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.pdf-modal-actions a {
  font-size: 0.8rem;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.pdf-modal-actions a:hover { text-decoration: underline; }

.pdf-frame {
  flex: 1;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* ---------- 左ツリーメニュー ---------- */

.tree-pane {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-right: 1px solid var(--border);
}

.tree-toolbar {
  flex-shrink: 0;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.tree-toolbar button {
  width: 100%;
  padding: 0.4rem;
  border: 1px dashed var(--blue);
  border-radius: 6px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-size: 0.82rem;
  cursor: pointer;
}
.tree-toolbar button:hover { background: #dbeafe; }

.tree {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.chapter-block { border-bottom: 1px solid #eef0f3; }

.chapter-header {
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: #f8fafc;
}
.chapter-header:hover { background: #eef2f7; }
.chapter-header .caret { font-size: 0.7rem; color: var(--muted); transition: transform 0.15s; flex-shrink: 0; }
.chapter-header.open .caret { transform: rotate(90deg); }

.section-block { display: none; }
.section-block.open { display: block; }

.section-header {
  padding: 0.45rem 0.9rem 0.45rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.section-header:hover { background: #f8fafc; }
.section-header .caret { font-size: 0.65rem; color: var(--muted); transition: transform 0.15s; flex-shrink: 0; }
.section-header.open .caret { transform: rotate(90deg); }

.header-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-actions {
  display: none;
  gap: 0.2rem;
  flex-shrink: 0;
}
.chapter-header:hover .header-actions,
.section-header:hover .header-actions {
  display: flex;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  line-height: 1.6;
}
.icon-btn:hover { background: #e5e7eb; color: var(--text); }

.article-list { display: none; }
.article-list.open { display: block; }

.add-article-row {
  padding: 0.35rem 0.9rem 0.5rem 2.4rem;
  font-size: 0.78rem;
  color: var(--blue);
  cursor: pointer;
}
.add-article-row:hover { text-decoration: underline; }

.article-item {
  padding: 0.35rem 0.9rem 0.35rem 2.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #4b5563;
}
.article-item:hover { background: #f1f5f9; }
.article-item.active { background: #dbeafe; color: var(--blue-dark); font-weight: 600; }

.badge-important { color: var(--red); font-weight: 700; }

.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #cbd5e1;
}
.status-dot.review { background: var(--amber); }
.status-dot.approved { background: var(--green); }

/* ---------- 右側コンテンツ ---------- */

.content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem 3rem;
}

.placeholder { color: var(--muted); font-size: 0.9rem; padding: 2rem 0; text-align: center; }

.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }

.article-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.article-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-title-row input[type="text"] {
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  min-width: 300px;
}
.article-title-row input[type="text"]:hover,
.article-title-row input[type="text"]:focus {
  border-color: var(--border);
  outline: none;
}

.article-number-input {
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  width: 4.5rem;
  text-align: right;
}
.article-number-input:hover,
.article-number-input:focus {
  border-color: var(--border);
  outline: none;
}

.important-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
}

.status-select {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.note-line {
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.refs-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.refs-box .refs-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.refs-box .ref-item {
  font-size: 0.82rem;
  padding: 0.15rem 0;
  display: flex;
  gap: 0.5rem;
}

.refs-box .ref-code {
  font-family: "SFMono-Regular", Consolas, monospace;
  color: var(--blue-dark);
  min-width: 70px;
}

.refs-box .empty {
  font-size: 0.8rem;
  color: var(--muted);
}

.body-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

textarea#article-body {
  width: 100%;
  min-height: 220px;
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
}

.save-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.save-row button {
  padding: 0.5rem 1.4rem;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
}
.save-row button:hover { background: var(--blue-dark); }
.save-row button:disabled { background: #9ca3af; cursor: default; }

.save-status { font-size: 0.8rem; color: var(--muted); }

.meta-line { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

.history-box { margin-top: 2rem; }

.history-box summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.history-item {
  border-top: 1px solid #eef0f3;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}
.history-item .history-meta { color: var(--muted); margin-bottom: 0.2rem; }
.history-item pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  padding: 0.5rem;
  border-radius: 6px;
  margin: 0;
}

/* ---------- 作成が必要な文書 一覧レポート ---------- */

.reqdocs-report {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.reqdocs-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.reqdocs-report-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.reqdocs-report-actions {
  display: flex;
  gap: 0.5rem;
}

.reqdocs-report-actions button {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 0.8rem;
}
.reqdocs-report-actions button:hover { background: #eff6ff; }

.reqdocs-report-summary {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.reqdocs-report-summary span {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: #f3f4f6;
}

.reqdocs-report-chapter {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--text);
}
.reqdocs-report-chapter:first-of-type { margin-top: 0; }

.reqdocs-report-section {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
}

.reqdocs-report-article-block {
  margin: 0.75rem 0 1.3rem;
  padding-left: 0.2rem;
}

.reqdocs-report-article-heading {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 0.3rem;
}
.reqdocs-report-article-heading:hover { text-decoration: underline; }

.reqdocs-report-article-body {
  font-family: inherit;
  font-size: 0.82rem;
  white-space: pre-wrap;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.reqdocs-report-attachments-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.reqdocs-report-attachments-list {
  margin: 0 0 0 1.2em;
  padding: 0;
  font-size: 0.8rem;
}

.reqdocs-report-attachments-list li.doc-done { color: #065f46; }
.reqdocs-report-attachments-list li.doc-missing { color: #991b1b; }

.reqdocs-report-status-done {
  color: #065f46;
  background: #ecfdf5;
}

.reqdocs-report-status-missing {
  color: #991b1b;
  background: #fef2f2;
}
