/* public/css/style.css
   Main site styles (non-layout): fonts, forms, tables, utilities.
   Keep layout in layout.css.
*/

/* Theme basics */
:root {
  --navbar-height: 56px;
  --menubar-height: 48px;
  --gap: 8px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display:block;
        width:100%;
    }
    .navbar-menu a {
        display:block;
        padding:12px;
        border-bottom:1px solid #ddd;
    }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #212529;
}

/* Ensure bootstrap navbar shows above everything */
.navbar {
  z-index: 1200;
}

/* Basic menubar look (color/fonts) — positioning is in layout.css */
.menubar {
  background: #000; /* visual style only */
  color: #fff;
}
.menubar .container-fluid { display:flex; gap:12px; align-items:center; }
.menubar a { color: #fff; text-decoration:none; padding:6px 8px; border-radius:4px; font-weight:500; }
.menubar a:hover { color: #0d6efd; background: rgba(255,255,255,0.04); }

/* Content wrapper — visual, spacing base (final offset from menubar is in layout.css) */
.content-wrapper {
  padding-bottom: 24px;
  min-height: calc(100vh - (var(--navbar-height) + var(--menubar-height) + 120px));
  margin-top: calc(var(--navbar-height) + var(--menubar-height));
}

/* Ensure first inner .container doesn't get double top margin from bootstrap */
.content-wrapper > .container:first-child { margin-top: 0 !important; }

/* UI pieces */
.page-actions { display:flex; gap:10px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
a.btn-back { background:#222; color:#fff; padding:6px 12px; border-radius:4px; text-decoration:none; font-weight:600; display:inline-block; }
a.btn-back::before { content: "← "; }
.btn-primary { min-height:38px; padding:8px 14px; }

.table th.amount-head, .table td.amount-cell, .amount-field { text-align:right; font-family:"Courier New", monospace; }

/* Utilities */
.hidden { display:none !important; }

/* Responsive */
@media (max-width:700px) {
  .menubar .container-fluid { flex-wrap:wrap; }
  .page-actions { gap:6px; }
}
th.mc-column, td.mc-column {
    text-align: center !important;
    vertical-align: middle !important;
}
.not-allowed { opacity: .6; }

