/* Standard Document Style for Bo Cong Thuong Submissions */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --primary-color: #1e3a8a;
  --text-color: #1f2937;
  --bg-color: #f8fafc;
  --paper-bg: #ffffff;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 15px;
  padding: 20px;
}

.no-print-bar {
  max-width: 900px;
  margin: 0 auto 20px auto;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.no-print-bar .info {
  color: #1e40af;
  font-size: 14px;
  font-weight: 500;
}

.no-print-bar .actions {
  display: flex;
  gap: 10px;
}

.btn-print {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-print:hover {
  background-color: #1d4ed8;
}

.btn-back {
  background-color: #64748b;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-back:hover {
  background-color: #475569;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper-bg);
  padding: 40px 50px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.header-legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #334155;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.org-info {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: bold;
  color: #334155;
  line-height: 1.4;
}

.org-info span {
  display: block;
}

.national-motto {
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #0f172a;
}

.national-motto .title {
  text-transform: uppercase;
}

.national-motto .subtitle {
  font-size: 12px;
  font-weight: normal;
  margin-top: 4px;
}

.doc-title {
  text-align: center;
  margin: 25px 0 15px 0;
}

.doc-title h1 {
  font-size: 20px;
  text-transform: uppercase;
  color: #1e293b;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.doc-subtitle {
  text-align: center;
  font-style: italic;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 25px;
}

.meta-box {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 12px 16px;
  margin-bottom: 25px;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}

.meta-box p {
  margin-bottom: 4px;
}

.meta-box p:last-child {
  margin-bottom: 0;
}

h2.section-heading {
  font-size: 16px;
  color: var(--primary-color);
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 6px;
  margin-top: 25px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

h3.subsection-heading {
  font-size: 15px;
  color: #334155;
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: 600;
}

p {
  margin-bottom: 12px;
  text-align: justify;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

li {
  margin-bottom: 6px;
  text-align: justify;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
}

table, th, td {
  border: 1px solid #cbd5e1;
}

th {
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  padding: 10px;
  text-align: left;
}

td {
  padding: 10px;
  vertical-align: top;
}

.highlight-edit {
  background-color: #fef08a;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.signature-block {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  page-break-inside: avoid;
}

.signature-box {
  width: 45%;
  text-align: center;
  font-size: 14px;
}

.signature-box .role {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 60px;
}

.signature-box .name {
  font-weight: bold;
}

/* Print Optimization for PDF Export */
@media print {
  body {
    background-color: #ffffff;
    padding: 0;
    font-size: 13pt;
  }

  .no-print-bar {
    display: none !important;
  }

  .page {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 100%;
    margin: 0;
  }

  h2.section-heading {
    page-break-after: avoid;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  @page {
    size: A4;
    margin: 20mm 15mm 20mm 15mm;
  }
}
