/* ============================================
   LOGIN/REGISTER FORM STYLES
   ============================================ */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.login-form .invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.login-form .alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.login-form .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.login-form .alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.login-form .btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.login-form .btn-primary {
    background-color: #4CAF50;
    color: white;
}

.login-form .btn-primary:hover {
    background-color: #45a049;
}

.login-form .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.login-form .btn-secondary:hover {
    background-color: #5a6268;
}

.login-form a {
    color: #4CAF50;
    text-decoration: none;
}

.login-form a:hover {
    text-decoration: underline;
}

/* ============================================
   FONTS
   ============================================ */

/* Poppins Fonts */
@font-face {
    font-family: 'poppinsbold';
    src: url('fonts/poppins-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'poppinsmedium';
    src: url('fonts/poppins-medium-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'poppinsregular';
    src: url('fonts/poppins-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* FontAwesome 4.7.0 */
@font-face {
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0');
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
}

/* FontAwesome 5 Solid */
@font-face {
    font-family: 'FontAwesome5';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("webfonts/fa-solid-900.eot");
    src: url("webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"),
         url("webfonts/fa-solid-900.woff2") format("woff2"),
         url("webfonts/fa-solid-900.woff") format("woff"),
         url("webfonts/fa-solid-900.ttf") format("truetype"),
         url("webfonts/fa-solid-900.svg#fontawesome") format("svg");
}

/* FontAwesome 5 Brands */
@font-face {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url(webfonts/fa-brands-400.eot);
    src: url(webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),
         url(webfonts/fa-brands-400.woff2) format("woff2"),
         url(webfonts/fa-brands-400.woff) format("woff"),
         url(webfonts/fa-brands-400.ttf) format("truetype"),
         url(webfonts/fa-brands-400.svg#fontawesome) format("svg");
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --fontsize_navbar: 16px;
    --fontsize_header: 40px;
    --fontsize_medium: 26px;
    --fontsize_header_mobile: 8vw;
    --fontsize_medium_mobile: 6vw;
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
*, ::after, ::before {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
    height: auto;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    overflow-x: hidden;
    transition: background-color 1s;
}

html, body {
    height: auto;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: 'poppinsbold';
    margin-bottom: 1em;
    line-height: 1.25em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

body, p, h1, h2 {
    color: var(--primary_color);
    font-family: 'poppinsregular';
}

body, .center-wrap {
    background-color: var(--bg_color);
    font-size: 14px;
}

/* Global Reset */
* {
    border: none;
    outline: none;
}

*:focus {
    border: none;
    outline: none;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

a {
    color: var(--a_color);
    text-decoration: underline;
    z-index: 999999;
}

a:hover {
    color: var(--link_color);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 0.5em;
    background-color: #FDFEFF;
}

::-webkit-scrollbar-thumb {
    width: 0.2em;
    background-color: #e3e7ec;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-2, .col-3 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-2 {
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-3 {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
    color: #212529;
    text-decoration: none;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.btn-primary {
    color: var(--white_color);
    background-color: #3e67b1;
    border-color: #3e67b1;
}

.btn-primary:hover {
    color: var(--white_color);
    background-color: #205991;
    border-color: #205991;
}

.btn-primary.focus, .btn-primary:focus {
    color: var(--white_color);
    background-color: #0069d9;
    border-color: #0062cc;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.btn-primary.disabled, .btn-primary:disabled {
    color: var(--white_color);
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    color: var(--white_color);
    background-color: #0062cc;
    border-color: #005cbf;
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    cursor: pointer;
}

.btn-sm:disabled {
    opacity: 60%;
    cursor: auto;
}

.btn-unselected {
    color: #ffffff;
    margin: 1px;
    padding: 1px 5px;
    background-color: #666666;
    border-color: #666666;
}

.btn-selected {
    color: #000000;
    margin: 1px;
    padding: 1px 5px;
    background-color: #00ff00;
    border-color: #00ff00;
}

/* Form Submit Button */
input[type=submit] {
    background-color: var(--button_bgcolor);
    padding: 10px 15px;
    border-radius: 100em;
    color: var(--white_color);
    font-size: 1.2em;
    box-sizing: border-box;
    font-family: 'poppinsmedium';
}

.continueBtn {
    background-color: var(--button_bgcolor);
    padding: 10px 15px;
    border-radius: 100em;
    color: var(--white_color);
    font-size: 1.2em;
    box-sizing: border-box;
}

/* ============================================
   FORMS
   ============================================ */
label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

[type=button], [type=reset], [type=submit], button {
    appearance: button;
    -webkit-appearance: button;
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: var(--white_color);
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .form-control {
        transition: none;
    }
}

.form-control::-ms-expand {
    background-color: transparent;
    border: 0;
}

.form-control:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #495057;
}

.form-control:focus {
    color: #495057;
    background-color: var(--white_color);
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::-webkit-input-placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control::-moz-placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control::-ms-input-placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* ============================================
   UTILITIES
   ============================================ */
.ml-2 {
    margin-left: 0.5rem !important;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordionItem {
    background-color: transparent;
    color: var(--a_color);
    cursor: pointer;
    margin-bottom: 1em;
    width: auto;
    text-align: left;
    border: none;
    border-radius: 8px;
    outline: none;
    transition: 0.4s;
    font-family: 'poppinsmedium';
}

.accordionItem:hover {
    color: var(--link_color);
}

.panel_accordion {
    display: none;
    overflow: hidden;
    font-family: 'poppinsregular';
    font-size: 16px;
}

/* ============================================
   CMS SPECIFIC STYLES
   ============================================ */
/* General Table Styles */
table {
    display: table !important;
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    border-spacing: 0;
}

tr {
    display: table-row !important;
}

th, td {
    display: table-cell !important;
    vertical-align: top;
}

th {
    font-weight: bold;
    text-align: left;
}

/* Relate Table Styles */
.relate_td, .relate_td_b, .relate_td_c, .relate_td_bc {
    font-size: smaller;
    border: 1px solid #ddd;
    padding: 4px 8px;
    white-space: nowrap;
}

.relate_td {
    padding: 4px 8px;
}

.relate_td_b {
    padding: 4px 8px;
    font-weight: bold;
}

.relate_td_c {
    padding: 4px 8px;
    text-align: center;
}

.relate_td_bc {
    padding: 4px 8px;
    font-weight: bold;
    text-align: center;
}

/* Table header styling */
table th.relate_td,
table th.relate_td_b,
table th.relate_td_c,
table th.relate_td_bc {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Ensure tables with relate_td classes have proper structure */
table .relate_td,
table .relate_td_b,
table .relate_td_c,
table .relate_td_bc {
    display: table-cell !important;
}

/* ============================================
   TEXT ANSWERS PAGE STYLES
   ============================================ */
/* Limit table width and ensure it doesn't exceed page */
.table_section {
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.text-answers-table {
    max-width: 100%;
    width: 100%;
    table-layout: fixed;
    box-sizing: border-box;
}

/* Answer column (4th column) - allow wrapping and limit width */
.text-answers-answer-col {
    max-width: 800px !important;
    width: 800px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* Ensure other columns have reasonable widths */
.text-answers-table th:first-child,
.text-answers-table td:first-child {
    width: 60px;
    max-width: 60px;
}

.text-answers-table th:nth-child(2),
.text-answers-table td:nth-child(2) {
    width: 200px;
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

.text-answers-table th:nth-child(3),
.text-answers-table td:nth-child(3) {
    width: 120px;
    max-width: 120px;
}

/* Stats page layout - main container with top section and bottom table */
.stats-main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    margin: 20px 0;
}

/* Top section: stats and small table side by side */
.stats-top-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.stats-left-content {
    flex: 1 1 auto;
    min-width: 300px;
    max-width: none;
}

.stats-right-content {
    flex: 0 0 auto;
    min-width: 250px;
    max-width: 400px;
    margin-left: auto;
}

/* Bottom section: big table */
.stats-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* Ensure tables inside containers don't break layout */
.stats-table-container table {
    width: 100%;
    max-width: 100%;
}

/* Fix text overlap in stats tables - allow wrapping for certain columns */
.stats-table-container .relate_td {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 200px;
}

/* Stats table visibility */
.stats-data-table {
    display: table;
}

.stats-table-hidden {
    display: none !important;
}

/* Tab Navigation Styles */
.main-nav {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
    padding: 0;
    margin: 0;
    margin-top: 4vw;
    clear: both;
}

.nav-tab {
    position: relative;
    display: inline-block;
}

.tab-label {
    display: block;
    padding: 1vw 2vw;
    font-family: 'poppinsmedium';
    font-size: 1.2vw;
    color: #333;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover .tab-label {
    background-color: #e8e8e8;
    color: #2255bb;
    border-bottom-color: #2255bb;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.5vw 0;
    z-index: 1000;
    margin-top: 2px;
}

.nav-tab:hover .nav-dropdown {
    display: block;
}

.nav-sub-item {
    display: block;
    padding: 0.8vw 1.5vw;
    font-family: 'poppinsmedium';
    font-size: 0.95vw;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    border-radius: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.nav-sub-item:hover {
    background-color: #2255bb;
    color: white;
}

/* Legacy styles for backward compatibility */
.groupHeader {
    background-color: #ddd;
    border-top-right-radius: 1.4vw;
    border-top-left-radius: 1.4vw;
    font-family: 'poppinsmedium';
    width: 9vw;
    padding: 1vw 1.12vw;
    text-align: center;
    font-size: 1.4vw;
    cursor: pointer;
    float: left;
    margin-right: 0.2vw;
}

.groupContainer {
    display: none;
    position: relative;
    padding: 1vw;
    background-color: #0d6;
    width: 82.6vw;
    z-index: 100;
}

.groupContainer div {
    padding: 0.5vw 1vw;
    margin-bottom: 1vw;
    border: 0.2vw solid black;
    border-radius: 0.7vw;
    font-size: 1.2vw;
}

.divCloser {
    position: absolute;
    top: 2vw;
    right: 2vw;
    margin-right: 0;
    color: black;
    font-size: 2vw;
    cursor: pointer;
}

/* Header Button Styles */
.backButton, .logoutButton, .versionText {
    height: 3vw;
    top: 0;
    position: absolute;
}

.backButton, .logoutButton {
    color: white;
    font-size: 1.2vw;
    padding: 0.3vw 0.7vw;
}

.backButton {
    background-color: #2255bb;
    left: 0;
    border-bottom-right-radius: 0.5vw;
}

.logoutButton {
    background-color: #dd3333;
    right: 0;
    border-bottom-left-radius: 0.5vw;
}

.versionText {
    text-align: center;
    padding: 0.3vw;
    font-size: 1.1vw;
    width: 70vw;
    left: 15vw;
}

/* Work Area */
.workArea {
    position: absolute;
    left: 1%;
    top: 10vw;
    font-size: 1.2vw;
}

/* ============================================
   FONTAWESOME ICONS
   ============================================ */
.fa, .fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font: normal normal normal 14px/1 'FontAwesome';
    font-size: inherit;
}

.fas {
    font-family: 'FontAwesome5';
    font-weight: 900;
}

.fab {
    font-family: "Font Awesome 5 Brands";
}

/* FontAwesome Icons - Only icons actually used in the project */

/* Home icon - used in main/header.php */
.fa-home:before {
    content: "\f015";
}

/* Close icon - used in main/footer.php */
.fa-close:before {
    content: "\f00d";
}

/* Trash icon - used in journey_work/view_journeys.php */
.fa-trash-o:before {
    content: "\f014";
}

/* Edit icon - used in journey_work/view_journeys.php (FontAwesome 5) */
.fa-edit:before {
    content: "\f044";
}

/* ============================================
   ADDITIONAL STYLES
   ============================================ */
/* Top Button */
#topBtn {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 100;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 18px;
    opacity: 0.5;
}

#topBtn:hover {
    background-color: #4378FF;
    opacity: 1;
}

/* Div Link */
.div-link {
    cursor: pointer;
    color: var(--primary_color);
}

.div-link:hover {
    color: var(--link_color);
}

/* ============================================
   ALL DATA PAGE STYLES
   ============================================ */

.table-list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.table-list th, .table-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.table-list th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.table-list tr:hover {
    background-color: #f5f5f5;
}
.table-link {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid black;
    display: inline-block;
    margin: 2px;
}
.table-link:hover {
    background-color: #dddddd;
}
.data-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
    min-width: 100%;
    white-space: nowrap;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
}
.data-table th {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    user-select: none;
}
.data-table th:hover {
    background-color: #45a049;
}
.data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.data-table tr:hover {
    background-color: #e8f5e9;
}
.editable-cell {
    cursor: pointer;
    position: relative;
}
.editable-cell:hover {
    background-color: #fff9c4 !important;
}
.editable-cell input {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.delete-row-icon:hover {
    color: #b71c1c !important;
    font-size: 18px !important;
}
.editable-page-number:focus {
    outline: 2px solid #4CAF50;
    background-color: #fff9c4;
    padding: 2px 4px;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.pagination a:hover {
    background-color: #4CAF50;
    color: white;
}
.pagination .current {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

/* ============================================
   PREMIUM INFO / DEV INFO STYLES
   ============================================ */
.nomobile {
    display: block;
}

.mobile {
    display: block;
    margin-bottom: 10px;
    line-height: 1.6;
}

.premium-info-summary {
    margin-bottom: 15px;
    padding: 10px 0;
    line-height: 1.8;
}

.premium-info-badges {
    min-height: 1.8em;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.8em;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.premium-info-badges span {
    margin-right: 10px;
    padding: 0 5px;
    border-radius: 5px;
}

.premium-info-badges div {
    height: 1.8em;
}

.badge-yearly { background-color: #00dddd44; }
.badge-6monthly { background-color: #dd00dd44; }
.badge-special { background-color: #00dd0044; }
.badge-gift { background-color: #dddd0044; }
.badge-qnb { background-color: #99dd6666; }
.badge-discount { background-color: #88880044; }
.badge-pending { background-color: #dd000044; }
.badge-sandbox { background-color: #0000dd44; }

@media only screen and (max-width: 1024px) {
    .nomobile {
        display: none;
    }
    
    .mobile {
        font-size: large;
        margin-bottom: 10px;
        line-height: 1.6;
    }
}

/* ============================================
   USER NUMBERS STYLES
   ============================================ */
.centered {
    text-align: center;
}

.stronger {
    font-weight: bold;
}

.user-numbers-table,
.user-numbers-table td,
.user-numbers-table tr {
    border: 1px solid black;
    border-collapse: collapse;
}

/* User numbers table container - scrollable with max height */
.user-numbers-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    margin-top: 20px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* Mood answers table styles - similar to text answers */
.mood-answers-table {
    max-width: 100%;
    width: 100%;
    table-layout: fixed;
    box-sizing: border-box;
}

/* Answer column (5th column) - allow wrapping and limit width */
.mood-answers-answer-col {
    max-width: 800px !important;
    width: 800px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* Ensure other columns have reasonable widths */
.mood-answers-table th:first-child,
.mood-answers-table td:first-child {
    width: 80px;
    max-width: 80px;
}

.mood-answers-table th:nth-child(2),
.mood-answers-table td:nth-child(2) {
    width: 150px;
    max-width: 150px;
}

.mood-answers-table th:nth-child(3),
.mood-answers-table td:nth-child(3) {
    width: 100px;
    max-width: 100px;
}

.mood-answers-table th:nth-child(4),
.mood-answers-table td:nth-child(4) {
    width: 200px;
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

/* ============================================
   CONTENT EDITOR STYLES (webwriting, helpinfo, wellbeing, direction, affirmation, notification)
   ============================================ */
.highlight {
    border: 2px solid black;
    border-radius: 5px;
}

.highlight:focus {
    border: 3px solid lightblue;
    border-radius: 10px;
}

.spacer {
    height: 10px;
}

.content-editor-table th,
.content-editor-table td,
.content-editor-table input {
    font-size: smaller;
}

.content-editor-table th,
.content-editor-table td {
    text-align: center;
}

.content-editor-table input {
    padding-left: 3px;
}

/* Help Info specific - hidden columns */
.helpinfo-summary,
.helpinfo-content,
.helpinfo-type,
.helpinfo-time,
.helpinfo-done,
.helpinfo-gone,
.helpinfo-lang {
    display: none;
}

/* ============================================
   JOURNEY WORK STYLES
   ============================================ */
.input_field {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1vw;
}

.input_field input {
    width: 50%;
}

.content_holder {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.content_input {
    width: 80%;
    font-size: x-small;
}

/* View Journeys specific */
tbody.journey-step {
    display: none !important;
}
tr.journey-task {
    display: none !important;
}

/* ============================================
   NOTIFICATION EDITOR STYLES
   ============================================ */
.j_popup {
    display: none;
    background-color: #fff;
    border: 1px solid black;
    border-radius: 10px;
    padding: 5px 10px;
    position: absolute;
    font-size: 10px;
    left: 60px;
}

.journey_row:hover ~ .j_popup {
    display: flex;
}


