/* Mobile shell: fixed navigation bar + menu for the legacy theme pages
   and the member area, plus scrollable data tables. */

.ww-mobilebar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 80;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #14432e;
    color: #f3efe6;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
.ww-mobilebar .ww-mb-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #f3efe6;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
}
.ww-mobilebar .ww-mb-mark {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: #f3efe6;
    color: #14432e;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
}
.ww-mb-toggle {
    width: 42px;
    height: 38px;
    border: 1px solid rgba(243, 239, 230, .45);
    border-radius: 6px;
    background: transparent;
    display: grid;
    place-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}
.ww-mb-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #f3efe6;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.ww-mb-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ww-mb-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ww-mb-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ww-mobilemenu {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    z-index: 79;
    background: #14432e;
    border-top: 1px solid rgba(243, 239, 230, .18);
    padding: 6px 0 14px;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .6);
}
.ww-mobilemenu.open { display: block; }
.ww-mobilemenu a {
    display: block;
    padding: 13px 20px;
    color: #f3efe6;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 15px;
    border-bottom: 1px solid rgba(243, 239, 230, .10);
    text-decoration: none;
}
.ww-mobilemenu a:last-child { border-bottom: 0; }
.ww-mobilemenu a:active,
.ww-mobilemenu a:hover { background: rgba(255, 255, 255, .07); }

/* horizontal scrolling for data tables */
.ww-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ww-table-scroll table { margin-bottom: 0; }

@media (max-width: 900px) {
    .ww-mobilebar { display: flex; }

    /* the legacy Bootstrap navbar is replaced by the bar above */
    #menu, .navbar.yamm { display: none !important; }

    #layout { padding-top: 0 !important; }

    .ww-table-scroll table { min-width: 620px; }
    .ww-table-scroll table.ww-narrow { min-width: 0; }

    /* forms and panels */
    .form-theme input,
    .form-theme select,
    .form-theme textarea { font-size: 16px; }
    .paddings,
    .content_info .container,
    .content-central .container { padding-left: 14px; padding-right: 14px; }
    .title-vertical-line h2 { font-size: 26px; }
    .nav-tabs > li { float: none; display: block; margin-bottom: 4px; }
    .nav-tabs > li > a { border-radius: 4px; }
}

@media (max-width: 640px) {
    #footer .contact-footer li,
    #footer .list-styles li { font-size: 14px; }
    .footer-down .col-md-5,
    .footer-down .col-md-7 { text-align: left; }
}

/* The theme preloader is decorative; never let it block a phone screen. */
@media (max-width: 900px){
    .preloader { display: none !important; }
}
