.pad{
    padding: 2px;
}
.marg{
    margin-top: 7px;
}
.btn-pad{
    padding: 10px;
    border-color: black;
    /*        background-color: white;*/
}
.dnone{
    display:none;
}
.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}
table td{
    font-size: 13px;
}
#preloader  {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fefefe;
    z-index: 99;
    height: 100%;
}

status  {
    width: 300px;
    height: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    background-image: url(../assets/img/main.gif);
    background-repeat: no-repeat;
    background-position: center;
    margin: -100px 0 0 -100px;
}
table th{
    color: white;
}
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2000px;
    z-index: 999;
    background-color: rgba(0,0,0,0.5); /*dim the background*/
}
#overlay_form{
    margin-top  : 50px;
    margin-left : 360px;
    position    : absolute;
    border      : 1px solid #428BCA;
    padding     : 10px;
    background  : white;
    max-height  : 400px;
    overflow    : auto;
}
#pop{
    display         : block;
    border          : 1px solid gray;
    width           : 65px;
    text-align      : center;
    padding         : 6px;
    border-radius   : 5px;
    text-decoration : none;
    margin          : 0 auto;
}
.numeric{
    text-align: right;
}
@media print{
    .goback{
        display: none !important;
    }
}

:root {
    --erp-bg: #f4f7fb;
    --erp-surface: #ffffff;
    --erp-surface-soft: #f8fafc;
    --erp-border: #dfe7f1;
    --erp-border-strong: #c9d5e4;
    --erp-text: #1f2a37;
    --erp-muted: #6b7280;
    --erp-primary: #0f766e;
    --erp-primary-dark: #115e59;
    --erp-primary-soft: #e0f2f1;
    --erp-danger: #dc2626;
    --erp-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
    --erp-shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
    --erp-radius: 8px;
}

body {
    background: var(--erp-bg);
    color: var(--erp-text);
}

.modern-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.22), transparent 34%),
        linear-gradient(120deg, #0f172a 0%, #164e63 48%, #0f766e 100%);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.26);
}

.login-brand {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px;
}

.login-logo-wrap {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
    background: var(--erp-surface-soft);
    border: 1px solid var(--erp-border);
    border-radius: 8px;
}

.login-logo-wrap img {
    max-width: 62px;
    max-height: 62px;
}

.login-logo-wrap .fa {
    color: var(--erp-primary);
    font-size: 36px;
}

.login-eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--erp-primary);
    text-transform: uppercase;
}

.login-brand h1 {
    margin: 0;
    color: var(--erp-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.login-form .login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--erp-text);
    font-size: 13px;
    font-weight: 700;
}

.login-input {
    position: relative;
}

.login-input > .fa {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: var(--erp-muted);
    transform: translateY(-50%);
}

.login-input .form-control {
    height: 46px;
    padding-left: 42px;
    padding-right: 46px;
    border: 1px solid var(--erp-border);
    border-radius: 8px;
    box-shadow: none;
}

.login-input .form-control:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    color: var(--erp-muted);
    background: transparent;
    border: 0;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--erp-primary);
}

.login-submit {
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--erp-primary);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.24);
}

.login-submit:hover,
.login-submit:focus {
    background: var(--erp-primary-dark);
}

.panel {
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow-sm);
    overflow: hidden;
}

.panel-default > .panel-heading,
.panel-primary > .panel-heading {
    color: var(--erp-text);
    background: linear-gradient(180deg, #ffffff, #f7fafc);
    border-color: var(--erp-border);
}

.panel-heading {
    padding: 12px 16px;
}

.panel-title {
    color: var(--erp-text);
    font-size: 17px;
    font-weight: 800;
}

.panel-body {
    background: var(--erp-surface);
}

.panel-footer {
    background: var(--erp-surface-soft);
    border-color: var(--erp-border);
}

.form-control {
    min-height: 34px;
    border-color: var(--erp-border-strong);
    border-radius: 6px;
    box-shadow: none;
    color: var(--erp-text);
}

.form-control:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: #eef3f8;
    color: #52606d;
    cursor: not-allowed;
}

.label-control,
label {
    color: #374151;
    font-weight: 700;
}

.select2-container--default .select2-selection--single {
    min-height: 34px;
    border-color: var(--erp-border-strong);
    border-radius: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    color: var(--erp-text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-primary,
.btn-primary:focus {
    border-color: var(--erp-primary);
    background: var(--erp-primary);
}

.btn-primary:hover,
.btn-primary:active {
    border-color: var(--erp-primary-dark);
    background: var(--erp-primary-dark);
}

.btn-square {
    border-radius: 7px;
}

.table {
    background: var(--erp-surface);
}

.table > thead > tr > th,
.table > tbody > tr > th {
    border-color: var(--erp-border);
    background: var(--erp-primary);
    color: #ffffff;
    font-size: 12px;
}

.table > tbody > tr > td {
    border-color: #e8eef6;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8fbfd;
}

.table-hover > tbody > tr:hover {
    background-color: var(--erp-primary-soft);
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
}

.modal-header {
    background: var(--erp-surface-soft);
    border-color: var(--erp-border);
    border-radius: 8px 8px 0 0;
}

.modal-title {
    color: var(--erp-text);
    font-weight: 800;
}

.search-action-bar {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .login-shell {
        padding: 16px;
    }

    .login-card {
        padding: 24px;
    }

    .login-brand {
        align-items: flex-start;
    }

    .login-brand h1 {
        font-size: 25px;
    }

    .panel-heading,
    .panel-body,
    .panel-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.modern-menu-page {
    min-height: 100vh;
    background: #eef3f8;
    overflow-x: hidden;
}

.modern-menu-page #container {
    min-height: 100vh;
    background: #eef3f8;
}

.modern-menu-page #header.erp-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--erp-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.modern-menu-page #header .brand {
    width: 270px;
    height: 64px;
    padding: 0 18px;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-menu-page #header .logo {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
}

.modern-menu-page #header .logo:hover,
.modern-menu-page #header .logo:focus {
    color: #ffffff;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    color: #ccfbf1;
    background: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(153, 246, 228, 0.24);
    border-radius: 8px;
}

.brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-menu-page #header .toggle-navigation.toggle-left {
    position: static;
    padding: 0 14px;
}

.modern-menu-page #header .erp-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--erp-text);
    background: var(--erp-surface-soft);
    border: 1px solid var(--erp-border);
    border-radius: 8px;
}

.modern-menu-page #header .erp-icon-btn:hover,
.modern-menu-page #header .erp-icon-btn:focus {
    color: var(--erp-primary);
    background: var(--erp-primary-soft);
    border-color: #99d9d2;
}

.modern-menu-page #header .user-nav {
    position: static;
    flex: 1;
    height: 64px;
    display: flex;
    justify-content: flex-end;
    padding-right: 18px;
}

.modern-menu-page #header .user-nav > ul {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modern-menu-page #header .user-nav ul li {
    height: auto;
    margin: 0;
}

.topbar-pill,
.user-menu-trigger {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    color: var(--erp-text) !important;
    background: var(--erp-surface-soft);
    border: 1px solid var(--erp-border);
    border-radius: 8px;
}

.topbar-pill:hover,
.topbar-pill:focus,
.user-menu-trigger:hover,
.user-menu-trigger:focus {
    color: var(--erp-primary) !important;
    background: var(--erp-primary-soft);
}

.topbar-pill b {
    color: var(--erp-primary);
}

.topbar-pill-danger b,
.topbar-pill-danger .fa {
    color: var(--erp-danger);
}

.user-avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--erp-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.user-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.modern-menu-page #header .dropdown.settings .dropdown-menu {
    top: 48px;
    right: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    overflow: hidden;
}

.modern-menu-page #header .dropdown.settings .dropdown-menu > li > a {
    padding: 10px 14px;
    color: var(--erp-text);
}

.modern-menu-page .sidebar.sidebar-left {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 1030;
    width: 270px;
    height: auto;
    padding: 18px 12px;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.10);
    overflow-y: auto;
}

.modern-menu-page .sidebar-header {
    margin: 0 8px 12px;
    padding: 0;
    color: #94a3b8;
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.modern-menu-page .sidebar .nav-pills > li {
    margin-bottom: 5px;
}

.modern-menu-page .sidebar .nav-pills > li > a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.modern-menu-page .sidebar .nav-pills > li > a > i {
    width: 20px;
    color: #5eead4;
    text-align: center;
    font-size: 15px;
}

.modern-menu-page .sidebar-left a:hover,
.modern-menu-page .sidebar-left a:focus,
.modern-menu-page .sidebar-left .nav > li.open > a {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.16);
}

.modern-menu-page .sidebar .nav .nav-sub {
    margin: 4px 0 8px 0;
    padding: 4px 0 4px 34px;
    background: transparent;
}

.modern-menu-page .sidebar .nav > li > .nav-sub > li > a,
.modern-menu-page .sidebar-mini .sidebar .nav > li > .nav-sub > li > a {
    padding: 8px 10px;
    color: #94a3b8;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.modern-menu-page .sidebar .nav-sub li > a:hover,
.modern-menu-page .sidebar .nav-sub li > a:focus {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.12);
}

.modern-menu-page .sidebar hr {
    margin: 8px 0;
    border-color: rgba(148, 163, 184, 0.18);
}

.modern-menu-page .main-content-wrapper {
    margin-left: 270px;
    padding: 80px 16px 16px;
    background: #eef3f8;
    min-height: 100vh;
}

.modern-menu-page .main-content-wrapper #main-content {
    padding: 0;
}

.erp-frame-wrap {
    min-height: calc(100vh - 96px);
    background: #ffffff;
    border: 1px solid var(--erp-border);
    border-radius: 8px;
    box-shadow: var(--erp-shadow-sm);
    overflow: hidden;
}

.erp-module-frame {
    width: 100%;
    height: 5000px;
    display: block;
    background: #ffffff;
}

.erp-sidebar-backdrop {
    display: none;
}

@media (min-width: 769px) {
    .modern-menu-page .sidebar-mini .sidebar.sidebar-left {
        width: 76px;
        padding: 18px 9px;
    }

    .modern-menu-page .sidebar-mini .sidebar-header {
        display: none;
    }

    .modern-menu-page .sidebar-mini .sidebar .nav-pills > li > a {
        justify-content: center;
        padding: 12px 8px;
    }

    .modern-menu-page .sidebar-mini .sidebar .nav-pills > li > a > i {
        margin: 0;
        font-size: 17px;
    }

    .modern-menu-page .sidebar-mini .sidebar .nav-pills > li > a {
        font-size: 0;
    }

    .modern-menu-page .sidebar-mini .sidebar .nav-pills > li > .nav-sub {
        left: 64px;
        border: 1px solid rgba(148, 163, 184, 0.20);
        border-radius: 8px;
        box-shadow: var(--erp-shadow);
    }

    .modern-menu-page .sidebar-mini .sidebar + .main-content-wrapper,
    .modern-menu-page .sidebar-mini .main-content-wrapper {
        margin-left: 76px;
    }
}

@media (max-width: 768px) {
    .modern-menu-page #header.erp-topbar {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
    }

    .modern-menu-page #header .brand {
        width: calc(100% - 68px);
        flex: 1;
    }

    .modern-menu-page #header .toggle-navigation.toggle-left {
        order: 2;
        padding-right: 12px;
    }

    .modern-menu-page #header .user-nav {
        width: 100%;
        height: auto;
        flex-basis: 100%;
        padding: 8px 12px 12px;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .modern-menu-page #header .user-nav > ul {
        height: auto;
        min-width: max-content;
    }

    .modern-menu-page .sidebar.sidebar-left {
        top: 128px;
        width: 286px;
        transform: translateX(-104%);
        transition: transform 0.22s ease;
    }

    .modern-menu-page #container.sidebar-opened .sidebar.sidebar-left {
        transform: translateX(0);
    }

    .modern-menu-page #container.sidebar-opened .erp-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 128px 0 0 0;
        z-index: 1020;
        background: rgba(15, 23, 42, 0.48);
    }

    .modern-menu-page .main-content-wrapper {
        margin-left: 0;
        padding: 136px 10px 10px;
    }

    .erp-frame-wrap {
        min-height: calc(100vh - 152px);
        border-radius: 8px;
    }

    .topbar-pill span {
        display: none;
    }
}
