html {
  font-size: 16px;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.tanis-banner-smaller {
    width: 100%;
    max-width: 715px; /* match image width */
    aspect-ratio: 715 / 289; /* preserves exact proportions */
    margin: 18px auto;
    background-image: url('/docs/TanisAtWorkSmaller.jpg');
    background-size: contain; /* no cropping */
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.tanis-banner-flat {
    width: 100%;
    max-width: 1104px; /* match image width */
    aspect-ratio: 1104 / 290; /* preserves exact proportions */
    margin: 18px auto;
    background-image: url('/docs/TanisAtWorkFlat.jpg');
    background-size: contain; /* no cropping */
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* --- Guided entry (manual typing UI) --- */
.entry-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.entry-tab{padding:8px 14px;border:1px solid #ccc;background:#b7f7c3; /* greener */cursor:pointer;border-radius:6px}
.entry-tab.active{background:#258cfb;color:#fff;border-color:#258cfb}
.tab-panel{display:none}
.tab-panel.active{display:block}
.entry-card{padding:16px;border:1px solid #ddd;border-radius:10px;margin:12px 0;background:#fff}
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px 16px}
.form-grid label{display:grid;gap:6px;font-weight:600}
.form-grid input,.form-grid select{padding:8px;border:1px solid #ccc;border-radius:6px;font-weight:400}
.hint{color:#666;font-size:.9em}
.req{color:#b00020}
.table-wrap{overflow-x:auto}
.data-grid{width:100%;border-collapse:collapse}
.data-grid th,.data-grid td{border-bottom:1px solid #eee;padding:8px;vertical-align:top}
.data-grid input{width:100%;padding:6px 8px;border:1px solid #ccc;border-radius:6px}
.data-grid input.invalid{border-color:#b00020;outline-color:#b00020}
.row-del{background:none;border:none;cursor:pointer;font-size:18px}
.grid-actions{display:flex;gap:8px;margin:10px 0;align-items:center;flex-wrap:wrap}
.grid-actions .grid-actions .errors{margin-top:10px;padding:10px;border:1px solid #b00020;border-radius:8px;color:#b00020;background:#fff5f6}
.submit-row{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}

/* Sex checkboxes */
.sex-field
{
    display: grid;
    gap: 6px;
    margin-bottom: 18px; /* Adjust this value as needed */
}
.sex-label{font-weight:600}
.sex-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 0px 0;
}

.sex-option {
    font-size: 1.25em;
    font-weight: bold;
    padding: 8px 8px;
    border-radius: 8px;
    border: 2px solid #2563EB;
    background: #e6f7ff;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .sex-option input[type="radio"] {
        width: 1.5em;
        height: 1.5em;
        accent-color: #2563EB;
        margin-right: 10px;
        box-shadow: 0 0 0 2px #2563EB33;
        vertical-align: middle;
    }

    .sex-option:hover,
    .sex-option:focus-within {
        background: #c7e0fa;
        border-color: #1D4ED8;
    }


    .sex-option.female {
        border: 2px solid #e11d48;
        background: #ffe4ec;
    }

        .sex-option.female:hover,
        .sex-option.female:focus-within {
            background: #fda4af;
            border-color: #be123c;
        }

 


/* Paste/drop zone inside Type Data */
.csv-dropzone{
  min-height:60px;
  max-height:90px;
  width:50%;
  max-width:50%;
  border:1px solid #888;
  background:#fafcff;
  padding:12px;
  outline:none;
  cursor:pointer;
  overflow:auto;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px){
  .csv-dropzone{ width:100%; max-width:100%; }
}

/* Dropzone success state */
.csv-dropzone.parsed{
  background:#d1fae5; /* light green */
  border-color:#16a34a;
}


/* Custom button color */
.btn-orange {
  background-color: #f97316;
  border-color: #f97316;
  color: #fff;
}
.btn-orange:hover {
  background-color: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.hint-tight { display:block; font-size: 0.8em; color:#666; font-weight: normal; }


/* Manual actions bar under Measurements */
.manual-actions{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}
.manual-actions-left{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.manual-actions-center{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.manual-actions-right{
  margin-left:auto;
}
.btn-go{
  font-size: 1.8rem;
  padding: 14px 28px;
  border-radius: 12px;
}
.ga-hint-inline{
  font-weight: 400;
  color: #666;
  margin-left: 6px;
  font-size: 0.9em;
}

input.invalid
{
    border: 2px solid #dc2626 !important;
    background: #ffeaea !important;
}

.return-to-plotter-btn {
    height: 40px;
    border-radius: 10px;
    background: #F00;
    color: #FFF;
    padding: 8px 10px;
    margin-top: 8px;
    margin-left: 24px;
    min-width: 150px;
    font-weight: 600;
    border: 1px solid #991B1B;
}
.return-to-plotter-btn:hover {
    color: #FFF;
    background: #ad0622;
}


    /* Bulk Processing Button Styles */
.goto-bulk-processing-btn {
    height: 56px;
    border-radius: 10px;
    background: #e6f7ff;
    color: #000;
    min-width: 120px;
    font-weight: 600;
    border: 1px solid #1E40AF;
    white-space: nowrap;
    text-align: center; /* Center the text horizontally */
}}

@media (max-width: 600px) {
    .goto-bulk-processing-btn {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 1em;
    }
}

.goto-bulk-processing-btn:hover {
    color: #000;
    background: #73cbfe;
}


.bottom-box {
    margin: 8px auto 0 auto;
    text-align: center;
    color: #888;
    font-size: 0.8em;
    background: rgba(255,255,255,0.95);
    padding: 6px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 400px;
}
.version-display {
    color: #444;
    font-size: 1em;
}

.debug-label {
    margin-left: 16px;
    vertical-align: middle;
    color: #444;
    font-size: 1em;
    /* Hide/Show the debug checkbox and label and checkbox: */
    /*   Set display: block;   to show it. */
    /*   Set display: none;   to hide it. */
     display: none;
   // display: block;
}
.preview pre {
    background: #f7f7f7;
    padding: 10px;
    border-radius: 8px;
    overflow: auto;
}
.preview {
    display: none; /* : none; Hides the preview : block; to show it */
//    display: block; /* : none; Hides the preview : block; to show it */
}
.btn-warning {
    background-color: #ffe066;
    color: #222;
    border: 1px solid #e6c200;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #ffd23b;
    color: #222;
    border: 1px solid #e6c200;
}


.ga-helper-pop {
    position: absolute;
    z-index: 2000;
    min-width: 260px;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid #cfd6e4;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-size: 0.92rem;
    line-height: 1.35;
    color: #1f2937;
}

    .ga-helper-pop[hidden] {
        display: none !important;
    }

.ga-helper-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.ga-helper-main {
    margin-bottom: 4px;
}

.ga-helper-note {
    font-size: 0.85rem;
    color: #5b6472;
}

.ga-helper-good {
    color: #0f766e;
}

.ga-helper-warn {
    color: #b45309;
}

.ga-helper-bad {
    color: #b91c1c;
}
.helper-good {
    color: #0f766e;
}

.helper-warn {
    color: #b45309;
}

.helper-bad {
    color: #b91c1c;
}