﻿@charset "utf-8";

:root {
    --primary: #155d8d;
    --primary-dark: #0d456d;
    --primary-light: #eaf4fb;
    --accent: #2f86b9;
    --sidebar: #1d2b34;
    --sidebar-hover: #2b424e;
    --page-bg: #edf2f7;
    --card-bg: #ffffff;
    --text: #243447;
    --muted: #64748b;
    --border: #d8e2eb;
    --danger: #9a3f54;
    --shadow: 0 8px 25px rgba(20, 54, 78, .09);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

.site-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background: var(--page-bg);
}

/* Header */
.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(15, 55, 80, .08);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) 190px;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 1500px;
    min-height: 132px;
    margin: 0 auto;
    padding: 18px 28px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.brand-logo img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 100px;
    object-fit: contain;
}

.brand-content {
    min-width: 0;
    text-align: center;
}

.brand-content h1 {
    margin: 0;
    color: #273f91;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.5px;
}

.brand-tagline {
    margin: 7px 0 0;
    color: #568033;
    font-size: 18px;
    font-weight: 600;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 13px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #36546c;
    font-size: 13px;
    font-weight: 600;
}

.contact-chip small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.contact-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
}

.system-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, #f4f9fc);
    box-shadow: 0 5px 14px rgba(27, 74, 105, .08);
}

.system-card-icon {
    display: inline-flex;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.system-card strong,
.system-card small {
    display: block;
}

.system-card strong {
    color: var(--primary-dark);
    font-size: 15px;
}

.system-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

/* Top navigation */
.top-navigation {
    width: 100%;
    background: var(--primary);
}

.top-menu-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-menu-list {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-menu-list > li {
    display: flex;
    margin: 0;
    padding: 0;
}

.top-menu-account {
    margin-left: auto !important;
}

.top-menu-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, .13) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease;
}

.top-menu-link:hover,
.top-menu-link:focus {
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
}

.home-menu-link::before {
    margin-right: 7px;
    content: "\2302";
    font-size: 17px;
}

.user-menu-link {
    max-width: 260px;
    overflow: hidden;
    background: rgba(0, 0, 0, .1) !important;
    text-overflow: ellipsis;
}

.user-menu-link::before {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #7ce39d;
    content: "";
}

.logout-form {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
}

.logout-menu-button {
    background: var(--danger) !important;
}

.logout-menu-button:hover,
.logout-menu-button:focus {
    background: #7e2e42 !important;
}

.mobile-menu-button {
    display: none;
}

/* Main page */
.page-area {
    flex: 1 0 auto;
    width: 100%;
    padding: 18px;
}

.page-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.sidebar {
    position: sticky;
    top: 14px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #263a45;
    border-radius: 10px;
    background: var(--sidebar);
    box-shadow: var(--shadow);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 49px;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background: #14232b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.sidebar-title-icon {
    color: #80c7ed;
    font-size: 17px;
}

.sidebar-menu,
.sidebar-menu ul {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sidebar-menu li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

.sidebar-menu a,
.sidebar > a {
    position: relative;
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 12px 31px 11px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .11) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #dce7ec !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    text-decoration: none !important;
    transition: background-color .18s ease, padding-left .18s ease;
}



.sidebar-menu a:hover,
.sidebar-menu a:focus,
.sidebar > a:hover,
.sidebar > a:focus {
    padding-left: 20px !important;
    background: var(--sidebar-hover) !important;
    color: #fff !important;
}

.sidebar-menu a.selected,
.sidebar > a.selected {
    padding-left: 16px !important;
    border-left: 4px solid #75c7ee !important;
    background: #176c9a !important;
    color: #fff !important;
}

.content-panel {
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #d8e2eb;
    border-radius: 10px;
    background: #fff;
}

.scroll-message {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #e1e8ee;
    background: #f8fbfd;
}


.page-content{
    width:100%;
    min-height:520px;
    padding:20px;
    overflow-x:auto;
    overflow-y:hidden;
}
.page-content::after {
    display: block;
    clear: both;
    content: "";
}

/* Forms and tables */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid #b9c8d4;
    border-radius: 5px;
    background: #fff;
    color: #1f2937;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #4798c5;
    box-shadow: 0 0 0 3px rgba(71, 152, 197, .14);
}

input[type="submit"],
input[type="button"],
button {
    min-height: 39px;
    padding: 8px 15px;
    border: 0;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.table-responsive,
.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 8px 10px;
    border: 1px solid #d9e3eb;
    vertical-align: top;
}

th {
    background: #eef5fa;
    color: #334c60;
    text-align: center;
}

td {
    color: #405a6f;
    overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 13px max(20px, calc((100% - 1460px) / 2));
    background: var(--primary-dark);
    color: #dce8f0;
    font-size: 12px;
}

/* Legacy compatibility */
.body,
.body_resize,
.middle,
.left,
.resize,
.container {
    max-width: 100%;
}

.clr,
.clear {
    clear: both;
    height: 0;
    margin: 0;
    padding: 0;
}

.disableClick {
    pointer-events: none;
}

.zoom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    overflow: auto;
    background: rgba(0, 0, 0, .94);
}

.zoom-content {
    min-width: 100%;
    padding-top: 58px;
    text-align: center;
}

.zoom-close {
    position: fixed;
    top: 8px;
    right: 18px;
    z-index: 100000;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    cursor: pointer;
}

.zoom-toolbar {
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 100000;
}

.zoom-btn {
    margin: 2px;
}

#zoomImage {
    width: 100%;
    max-width: none;
    height: auto;
}

@media screen and (max-width: 1050px) {
    .header-inner {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 18px;
    }

    .system-card {
        display: none;
    }

    .page-layout {
        grid-template-columns: 215px minmax(0, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .header-inner {
        display: block;
        min-height: 0;
        padding: 13px 12px 15px;
        text-align: center;
    }

    .brand-logo img {
        max-width: 170px;
        max-height: 75px;
    }

    .brand-content h1 {
        margin-top: 7px;
        font-size: 24px;
    }

    .brand-tagline {
        margin-top: 3px;
        font-size: 14px;
    }

    .contact-list {
        display: block;
        margin-top: 9px;
    }

    .contact-chip {
        justify-content: center;
        margin: 4px 7px;
        font-size: 12px;
    }

    .contact-icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .mobile-menu-button {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        min-height: 47px;
        padding: 0 15px;
        border-radius: 0;
        background: var(--primary);
        text-align: left;
    }

    .mobile-menu-button:hover,
    .mobile-menu-button:focus {
        background: var(--primary-dark);
    }

    .top-menu-wrapper {
        display: none;
        padding: 0;
    }

    .top-menu-wrapper.is-open {
        display: block;
    }

    .top-menu-list {
        display: block;
        min-height: 0;
    }

    .top-menu-list > li {
        display: block;
        width: 100%;
    }

    .top-menu-account {
        margin-left: 0 !important;
    }

    .top-menu-link,
    .logout-form {
        width: 100%;
    }

    .top-menu-link {
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 15px !important;
        border-top: 1px solid rgba(255, 255, 255, .12) !important;
        border-left: 0 !important;
        text-align: left;
    }

    .user-menu-link {
        max-width: none;
    }

    .page-area {
        padding: 9px;
    }

    .page-layout {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 10px;
    }

    .sidebar-title {
        min-height: 45px;
    }

    .sidebar-menu a,
    .sidebar > a {
        min-height: 42px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .page-content {
        min-height: 300px;
        padding: 12px 9px;
    }

    .form table,
    .form tbody,
    .form tr,
    .form th,
    .form td {
        display: block;
        width: 100%;
    }

    .site-footer {
        display: block;
        padding: 12px;
        text-align: center;
    }

    .site-footer span {
        display: block;
        margin: 2px 0;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .brand-logo img {
        max-width: 150px;
    }

    .brand-content h1 {
        font-size: 21px;
    }

    .contact-chip {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .page-area {
        padding: 6px;
    }

    .page-content {
        padding: 9px 6px;
    }

    input[type="submit"],
    input[type="button"],
    .page-content button {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media print {
    .dontprint,
    .site-header,
    .sidebar,
    .site-footer {
        display: none !important;
    }

    html,
    body,
    .site-shell,
    .page-area,
    .page-layout,
    .content-panel,
    .page-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }

    tr {
        page-break-inside: avoid;
    }
}

/* =========================================================
   LEFT APPLICATION MENU ACCORDION FIX
   ========================================================= */
.sidebar-title {
    width: 100%;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
}

.sidebar-title:hover,
.sidebar-title:focus {
    background: #1b303a;
}

.sidebar-title-arrow {
    margin-left: auto;
    transition: transform .2s ease;
}

.sidebar-title[aria-expanded="false"] .sidebar-title-arrow {
    transform: rotate(-90deg);
}

.sidebar-menu.is-collapsed {
    display: none;
}

.sidebar-menu .has-child-menu > .sidebar-folder-link,
.sidebar-menu .has-child-menu > .sidebar-folder-button {
    padding-right: 40px !important;
    cursor: pointer;
}

.sidebar-menu .has-child-menu > .sidebar-folder-link::after,
.sidebar-menu .has-child-menu > .sidebar-folder-button::after {
    content: "\25B8" !important;
    transition: transform .2s ease;
}

.sidebar-menu .has-child-menu.menu-open > .sidebar-folder-link::after,
.sidebar-menu .has-child-menu.menu-open > .sidebar-folder-button::after {
    transform: rotate(90deg);
}

.sidebar-folder-button {
    position: relative;
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 31px 11px 16px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.11);
    border-radius: 0;
    background: transparent;
    color: #dce7ec;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-align: left;
}


.sidebar-folder-button::after {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #78929f;
    font-size: 18px;
}

.sidebar-menu .child-menu {
    display: none;
    margin: 0 !important;
    padding: 4px 0 5px !important;
    background: #14272f;
    box-shadow: inset 0 1px 4px rgba(0,0,0,.2);
}

.sidebar-menu .child-menu a,
.sidebar-menu .child-menu .sidebar-folder-button {
    min-height: 39px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    padding-left: 31px !important;
    background: #14272f !important;
    color: #c9dbe4 !important;
    font-size: 12.5px !important;
}

.sidebar-menu .child-menu a::before,
.sidebar-menu .child-menu 
.sidebar-menu .child-menu a:hover,
.sidebar-menu .child-menu a:focus,
.sidebar-menu .child-menu .sidebar-folder-button:hover,
.sidebar-menu .child-menu .sidebar-folder-button:focus {
    padding-left: 35px !important;
    background: #20424f !important;
    color: #fff !important;
}

.sidebar-menu .child-menu .child-menu a,
.sidebar-menu .child-menu .child-menu .sidebar-folder-button {
    padding-left: 46px !important;
    background: #102128 !important;
}

@media screen and (max-width: 768px) {
    .sidebar-menu.is-collapsed {
        display: none;
    }
}

/* Remove bullets from left application menu */
.sidebar-menu,
.sidebar-menu ul,
.sidebar-menu li,
.treeview-menu,
.treeview-menu li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Remove left indentation */
.sidebar-menu ul,
.treeview-menu {
    margin: 0 !important;
    padding: 0 !important;
}

/* Proper submenu alignment */
.treeview-menu > li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Submenu link */
.treeview-menu > li > a {
    display: block;
    padding: 8px 15px 8px 35px;
    text-decoration: none;
}

/* Remove marker in all browsers */
.sidebar-menu li::marker,
.treeview-menu li::marker {
    content: "" !important;
}

/* =========================================================
   FINAL APPLICATION MENU OVERRIDES
   No bullets; arrows only for expandable groups
   ========================================================= */
#applicationMenuBody,
#applicationMenuBody ul,
#applicationMenuBody li,
#applicationMenuBody .sidebar-menu,
#applicationMenuBody .treeview-menu,
#applicationMenuBody .child-menu {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

#applicationMenuBody li::marker {
    content: "" !important;
    font-size: 0 !important;
}

/* Remove all left-side generated symbols */
#applicationMenuBody a::before,
#applicationMenuBody button::before,
#applicationMenuBody .child-menu a::before,
#applicationMenuBody .child-menu button::before,
#applicationMenuBody .treeview-menu a::before,
#applicationMenuBody .treeview-menu button::before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    content: none !important;
}

/* Base menu links */
#applicationMenuBody a,
#applicationMenuBody .sidebar-folder-button {
    position: relative;
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 12px 38px 11px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #dce7ec !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    text-align: left !important;
    text-decoration: none !important;
}

#applicationMenuBody a:hover,
#applicationMenuBody a:focus,
#applicationMenuBody .sidebar-folder-button:hover,
#applicationMenuBody .sidebar-folder-button:focus {
    padding-left: 22px !important;
    background: var(--sidebar-hover) !important;
    color: #fff !important;
}

/* First-level submenu */
#applicationMenuBody .child-menu > li > a,
#applicationMenuBody .child-menu > li > .sidebar-folder-button,
#applicationMenuBody .treeview-menu > li > a,
#applicationMenuBody .treeview-menu > li > .sidebar-folder-button {
    min-height: 39px !important;
    padding: 9px 38px 9px 38px !important;
    background: #14272f !important;
    color: #c9dbe4 !important;
    font-size: 12.5px !important;
}

#applicationMenuBody .child-menu > li > a:hover,
#applicationMenuBody .child-menu > li > a:focus,
#applicationMenuBody .treeview-menu > li > a:hover,
#applicationMenuBody .treeview-menu > li > a:focus {
    padding-left: 42px !important;
    background: #20424f !important;
    color: #fff !important;
}

/* Second-level submenu */
#applicationMenuBody .child-menu .child-menu > li > a,
#applicationMenuBody .child-menu .child-menu > li > .sidebar-folder-button,
#applicationMenuBody .treeview-menu .treeview-menu > li > a,
#applicationMenuBody .treeview-menu .treeview-menu > li > .sidebar-folder-button {
    padding-left: 54px !important;
    background: #102128 !important;
}

/* No arrow for normal links */
#applicationMenuBody li:not(.has-child-menu) > a::after,
#applicationMenuBody li:not(.has-child-menu) > button::after {
    display: none !important;
    content: none !important;
}

/* Right arrow only for expandable groups */
#applicationMenuBody .has-child-menu > .sidebar-folder-link::after,
#applicationMenuBody .has-child-menu > .sidebar-folder-button::after {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #8fa8b4 !important;
    content: "\25B8" !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transform: translateY(-50%);
    transition: transform .2s ease;
}

#applicationMenuBody .has-child-menu.menu-open > .sidebar-folder-link::after,
#applicationMenuBody .has-child-menu.menu-open > .sidebar-folder-button::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Selected link */
#applicationMenuBody a.selected,
#applicationMenuBody a.active,
#applicationMenuBody li.active > a {
    padding-left: 18px !important;
    border-left: 4px solid #75c7ee !important;
    background: #176c9a !important;
    color: #fff !important;
}


/* =========================================================
   FINAL REPORT LEFT ALIGNMENT FIX
   ========================================================= */

.content-panel,
.page-content {
    min-width: 0 !important;
    text-align: left !important;
}

.page-content {
    width: 100% !important;
    padding: 20px !important;
}

/* Remove centered report containers */
.page-content center,
.page-content .form,
.page-content .report,
.page-content .report-container,
.page-content .grid-container {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

/* Move report tables to the left */
.page-content table,
.page-content .form table,
.page-content center table,
.page-content table[align="center"] {
    float: none !important;
    width: auto;
    max-width: 100% !important;
    margin-top: 12px !important;
    margin-right: 0 !important;
    margin-bottom: 12px !important;
    margin-left: 0 !important;
}

/* Responsive wrapper */
.page-content .table-responsive,
.page-content .responsive-table {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    text-align: left !important;
    -webkit-overflow-scrolling: touch;
}

/* Do not allow an old parent style to center the table */
.page-content div[align="center"],
.page-content td[align="center"] {
    text-align: left !important;
}

/* Keep cell contents according to report formatting */
.page-content table th {
    text-align: center;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .page-content {
        padding: 10px !important;
    }

    .page-content table {
        min-width: 700px;
    }
}


/* =========================================================
   APPLICATION MENU SCROLLBAR
   ========================================================= */

.sidebar {
    overflow: hidden;
}

#applicationMenuBody {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Chrome / Edge / Safari */
#applicationMenuBody::-webkit-scrollbar {
    width: 8px;
}

#applicationMenuBody::-webkit-scrollbar-track {
    background: #14232b;
}

#applicationMenuBody::-webkit-scrollbar-thumb {
    background: #607d8b;
    border-radius: 8px;
}

#applicationMenuBody::-webkit-scrollbar-thumb:hover {
    background: #83a5b5;
}

/* Mobile */
@media screen and (max-width: 768px) {
    #applicationMenuBody {
        max-height: 420px;
    }
}


/* Customer-wise monthly report */
.report-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0 0 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.report-table {
    width: 2300px !important;
    min-width: 2300px !important;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    background: #ffffff;
}

.report-table th,
.report-table td {
    padding: 7px 8px;
    border: 1px solid #c8d1d9;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    vertical-align: middle;
}

.report-table thead th {
    background: #333333;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.report-table tfoot th {
    background: #425563;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.report-table tbody td {
    background: #ffffff;
    color: #253746;
}

.report-table tbody tr:nth-child(even) td {
    background: #f2f2f2;
}

.report-table tbody tr:hover td {
    background: #eaf4fb;
}

.report-table .numeric-cell {
    text-align: right;
}

.report-table .total-cell {
    background: #f3f7fa;
    font-weight: bold;
}

/* Visible horizontal scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 13px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #dfe7ec;
}

.table-responsive::-webkit-scrollbar-thumb {
    border: 2px solid #dfe7ec;
    border-radius: 8px;
    background: #607d8b;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #3f5e6d;
}

@media screen and (max-width: 768px) {
    .report-table th,
    .report-table td {
        padding: 6px;
        font-size: 11px;
    }
}

@media print {
    .table-responsive {
        overflow: visible !important;
    }

    .report-table {
        width: 100% !important;
        min-width: 0 !important;
    }

    .report-table th,
    .report-table td {
        padding: 2px;
        font-size: 7px;
        white-space: normal;
    }
}


/* =========================================================
   SURVEY STATUS FILTER FORM
   ========================================================= */

.report-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.report-heading {
    margin: 0 0 15px 0;
    color: #263746;
    font-size: 15px;
    font-weight: bold;
    text-decoration: underline;
}

.filter-card {
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 18px;
    border: 1px solid #d8e2eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(20, 54, 78, 0.08);
}

.filter-row {
    display: table;
    width: 100%;
    margin-bottom: 12px;
}

.filter-row label {
    display: table-cell;
    width: 130px;
    padding-right: 12px;
    color: #334c60;
    font-weight: bold;
    vertical-align: middle;
}

.filter-row .date-input {
    display: table-cell;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #b9c8d4;
    border-radius: 5px;
    background: #ffffff;
    color: #1f2937;
}

.filter-actions {
    margin-top: 14px;
    padding-left: 142px;
}

.filter-actions .abc {
    min-width: 90px;
    min-height: 38px;
    padding: 8px 18px;
    border: 0;
    border-radius: 5px;
    background: #155d8d;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.filter-actions .abc:hover {
    background: #0d456d;
}

.validation-summary-errors {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #e6b8b8;
    border-radius: 5px;
    background: #fff1f1;
    color: #a12626;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

@media screen and (max-width: 600px) {
    .filter-card {
        max-width: none;
        padding: 14px;
    }

    .filter-row,
    .filter-row label,
    .filter-row .date-input {
        display: block;
        width: 100%;
    }

    .filter-row label {
        margin-bottom: 5px;
        padding-right: 0;
    }

    .filter-actions {
        padding-left: 0;
    }

.filter-actions .abc {
        display: inline-block !important;
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
}

/* =========================================================
   FINAL MOBILE OVERRIDE
   This wins against the old global submit rule.
   ========================================================= */

@media screen and (max-width: 480px) {

    input[type="submit"].abc {
        display: inline-block !important;
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .filter-actions input[type="submit"].abc {
        display: inline-block !important;
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   PRESCRIPTION SURVEY REPORT - COMPACT FORM CONTROLS
   ========================================================= */

#mydiv input[type="text"],
#mydiv select {
    width: 100% !important;
    max-width: 280px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 5px 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

/* MPO dropdown */
#mydiv #Mpolist {
    height: 34px !important;
    min-height: 34px !important;
    padding: 5px 8px !important;
    font-size: 13px !important;
}

/* OK button */
#mydiv input[type="submit"].abc {
    display: inline-block !important;
    width: 65px !important;
    min-width: 65px !important;
    max-width: 65px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Mobile */
@media screen and (max-width: 600px) {

    #mydiv input[type="text"],
    #mydiv select,
    #mydiv #Mpolist {
        width: 100% !important;
        max-width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 5px 8px !important;
        font-size: 13px !important;
    }

    #mydiv input[type="submit"].abc {
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    margin: 0 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}


.site-footer {
    text-align: center;
    padding: 20px 10px;
    background-color: #f5f7fa;
    border-top: 1px solid #dce3eb;
}

.site-footer p {
    margin: 6px 0;
    color: #555;
}

.privacy-policy-link {
    display: inline-block;
    margin: 8px 0;
    color: #0756a5 !important;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s ease;
}

.privacy-policy-link:hover {
    color: #d62828 !important;
    text-decoration: underline;
}

.privacy-policy-link:focus {
    outline: 2px solid #0756a5;
    outline-offset: 4px;
}

.powered-by {
    font-size: 13px;
    color: #777;
}
