/* Theme adapted from archive 16.02 (Akkuyu Journal) */
:root{
  --ak-blue-900:#0a2a6b;   /* Rosatom deep blue */
  --ak-blue-700:#0f4da6;   /* Rosatom bright blue */
  --ak-bg:#f6f8fb;
  --ak-text:#0f2230;
  --ak-muted:#6b7a86;
  --ak-border:#d7e3ee;
}

body{
  background: var(--ak-bg);
  color: var(--ak-text);
  scroll-padding-top: 110px; /* keep anchors below sticky header */
}

/* Header */
.ak-header{
  background: linear-gradient(90deg, var(--ak-blue-900) 0%, var(--ak-blue-700) 55%, var(--ak-blue-900) 100%);
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.ak-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 18px;
}

.ak-title{
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 18px;
  white-space: nowrap;
}

.ak-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}
.ak-logo{
  display:inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
}

.ak-user{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}
.ak-username{
  opacity:.95;
  font-weight:600;
  white-space:nowrap;
}

.ak-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.22);
  color:#fff;
  background: rgba(255,255,255,.12);
}
.ak-btn:hover{ background: rgba(255,255,255,.20); color:#fff; }

/* Main tabs: ALWAYS right aligned (user requirement) */
.ak-tabs{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding: 0 18px 10px 18px;
  flex-wrap:wrap;
}
.ak-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,.18);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border: 1px solid rgba(255,255,255,.22);
  border-bottom: none;
}
.ak-tab:hover{ background: rgba(255,255,255,.28); color:#fff; }
.ak-tab.is-active{
  background: #fff;
  color: var(--ak-blue-900);
  border-color:#fff;
}

/* Subtabs row (second level), different shade */
.ak-subtabs-wrap{
  background: rgba(255,255,255,.14);
  border-top: 1px solid rgba(255,255,255,.18);
}
.ak-subtabs{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding: 8px 18px 12px 18px;
  flex-wrap:wrap;
}
.ak-subtab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border: 1px solid rgba(255,255,255,.20);
}
.ak-subtab:hover{ background: rgba(255,255,255,.24); color:#fff; }
.ak-subtab.is-active{
  background: rgba(255,255,255,.95);
  color: var(--ak-blue-900);
  border-color: rgba(255,255,255,.95);
}

/* Full width pages */
.container-fluid { max-width: none; }

/* Registry table widening + centered look (from 16.02 registry patch) */
.registry-table-wide th,
.registry-table-wide td{
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}
.registry-table-wide td:nth-child(1){
  white-space: normal; /* Name wraps */
}

/* Sticky table header */
.table-sticky thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  border-bottom: 1px solid #e6eef6;
}

/* wide tables keep readability */
.table-responsive{ overflow-x:auto; }
.ak-table{ min-width: 1200px; }

/* Toolbar above tables: sticky under header */
.ak-pagebar{
  position: sticky;
  top: 98px; /* header height */
  z-index: 3;
  background: rgba(246,248,251,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e6eef6;
}

@media (max-width: 768px){
  .ak-topline{ padding: 10px 12px; }
  .ak-tabs{ padding: 0 12px 10px 12px; }
  .ak-subtabs{ padding: 8px 12px 12px 12px; }
  .ak-title{ white-space: normal; }
  .ak-pagebar{ top: 124px; }
  /* keep right alignment even on mobile as requested */
  .ak-tabs, .ak-subtabs{ justify-content:flex-end; }
}
