/* FILE: /public_html/public/assets/css/pages.css
   New page layout (CENTERED): white background, single column, cleaner sections
   Uses tokens: --muted, --line, --radius, --shadow, --ink, --card
*/

/* Page shell */
.page{
  padding: 18px 0 34px;
  background: #fff;
  min-height: 100vh;
}

/* Center width (change if you want wider/narrower) */
:root{
  --page-max: 1520px;
}

/* Optional: boxed inner shell */
.page--boxed .page-shell{
  background:#fff;
  border:1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 16px;
}

/* Top row: breadcrumbs + title (CENTERED) */
.page-head{
  max-width: var(--page-max);
  margin: 8px auto 14px;      /* center */
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.page-title{
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;  /* was space-between */
  gap: 12px;
  flex-wrap:wrap;
}

.page-title h1{
  margin:0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.25px;
}

.sub{
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}

/* Breadcrumbs (pill style) */
.breadcrumbs{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.breadcrumbs a,
.breadcrumbs span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.breadcrumbs a:hover{
  color: var(--ink);
  border-color: rgba(14,25,45,.18);
}
.breadcrumbs .sep{
  border: none;
  background: transparent;
  padding: 0;
  color: rgba(11,18,32,.35);
  font-weight: 900;
}

/* Main layout: CENTERED (single column) */
.page-shell{
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;              /* center */
  display:grid;
  grid-template-columns: 1fr;  /* single column */
  gap: 14px;
  align-items:start;
}

/* If your markup still has <aside class="sidebar-sticky">, hide it */
.sidebar-sticky{display:none}

/* Sections */
.section{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-h{
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.section-h .title{
  margin:0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.15px;
}

.section-h .actions{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}

.section-b{
  padding: 14px;
}

/* Hero (now becomes a section) */
.hero{padding: 0; margin: 0 0 14px}
.hero-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  padding: 16px;
}
@media (max-width: 860px){
  .hero-inner{grid-template-columns:1fr}
}

/* Info rows */
.info{
  display:grid;
  gap: 10px;
}
.info .row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246,247,251,.55);
}
.info .k{font-weight:900}
.info .v{color: var(--muted); font-weight:800}

/* Tables (clean) */
.table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.table th,
.table td{
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  font-size: 14px;
  vertical-align: top;
}

.table th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f7fb;
  font-weight: 950;
  letter-spacing: -.1px;
}

.table tr:hover td{
  background: rgba(14,165,233,.06);
}

.table tr:last-child td{border-bottom:none}

/* Small screens: allow smaller min width */
@media (max-width: 740px){
  .table{min-width: 640px}
}

/* Page footer area (optional) */
.page-foot{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Optional: a bit more breathing room on large screens */
@media (min-width: 980px){
  .page{padding: 26px 0 46px}
  .section-b{padding: 18px}
}
