/* 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; }

.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; }

/* for log viewers. app/views/logs/index.php **/
/* Log modal */
#log-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

#log-modal {
    background: #fff;
    width: 80%;
    max-width: 900px;
    margin: 5% auto;
    padding: 20px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}
#log-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
}


/* Wrap long values like table_key */
#log-modal pre {
    white-space: pre-wrap;
    word-break: break-all;
}
.report-filter fieldset {
    border: 1px solid #ccc;
    padding: 12px;
    max-width: 900px;
}

.report-filter .row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.report-filter label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.report-filter select,
.report-filter input {
    padding: 5px;
    font-weight: normal;
}

.report-filter .checkbox {
    flex-direction: row;
    align-items: center;
    margin-top: 22px;
}

.btn-filter {
    background: #2e8b57;
    color: #fff;
    border: none;
    padding: 8px 18px;
    cursor: pointer;
}

.btn-filter:hover {
    background: #256f47;
}


