* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef2f6;
  color: #1f2937;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: #102a43;
  color: white;
  padding: 22px 18px;
}

.sidebar h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

.sidebar .subtitle {
  color: #bcccdc;
  font-size: 13px;
  margin-bottom: 24px;
}

.sidebar a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.sidebar a:hover,
.sidebar a.active {
  background: #243b53;
}

.sidebar .section-title {
  color: #9fb3c8;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
  margin: 22px 0 8px;
}

.main {
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.topbar h2 {
  margin: 0;
  font-size: 26px;
}

.container {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
}

.grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.card h3,
.card h4 {
  margin-top: 0;
}

.policy-tree {
  border-right: 1px solid #d9e2ec;
  padding-right: 16px;
}

.policy-tree h3 {
  margin-top: 0;
}

.policy-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #102a43;
  text-decoration: none;
}

.policy-list a:hover {
  background: #f0f4f8;
}

.badge {
  display: inline-block;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-right: 5px;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px;
  margin: 6px 0 16px;
  border: 1px solid #bcccdc;
  border-radius: 8px;
  font-size: 15px;
}

button,
.button {
  display: inline-block;
  background: #0f4c81;
  color: white;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}

.button.secondary,
button.secondary {
  background: #64748b;
}

.button.danger,
button.danger {
  background: #b91c1c;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.policy-document {
  max-width: 900px;
  margin: 0 auto;
}

.policy-body {
  line-height: 1.65;
  font-size: 16px;
}

.policy-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
}

.policy-body table,
.policy-body th,
.policy-body td {
  border: 1px solid #94a3b8;
}

.policy-body th,
.policy-body td {
  padding: 8px;
}

.ck-editor__editable_inline {
  min-height: 600px;
  font-size: 16px;
  line-height: 1.6;
}

.login-box {
  max-width: 430px;
  margin: 8vh auto;
}

.public-header {
  background: #102a43;
  color: white;
  padding: 20px 30px;
}

.public-header h1 {
  margin: 0;
}

@media print {
  .sidebar,
  .topbar,
  .actions,
  .no-print {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .main {
    padding: 0;
  }

  .container {
    box-shadow: none;
    border-radius: 0;
  }

  body {
    background: white;
  }
}


/* CKEditor Classic fix */
.ck.ck-editor {
  width: 100%;
}

.ck-editor__editable {
  min-height: 600px;
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
  border-color: #cbd5e1;
}
