/* iZen Final Theme - Frappe v16 */
:root{--navy:#073864;--dark:#052d54;--bg:#f7f9fc;--text:#173b5f;--border:#dce5ee}
body{font-family:Inter,Arial,sans-serif;color:var(--text)}
.navbar{background:#fff!important;border-bottom:1px solid var(--border)!important}
.navbar .navbar-brand img{display:none!important}.navbar .navbar-brand:after{content:"iZen";color:var(--navy);font-size:25px;font-weight:800}
.btn-primary,.primary-action{background:var(--navy)!important;border-color:var(--navy)!important}
.standard-sidebar .standard-sidebar-item{border-radius:8px!important}
.standard-sidebar .standard-sidebar-item.selected,.standard-sidebar .standard-sidebar-item:hover{background:#eaf1f7!important}
html:has(.izen-auth-shell),body:has(.izen-auth-shell){width:100%!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}
body:has(.izen-auth-shell) .navbar,body:has(.izen-auth-shell) footer,body:has(.izen-auth-shell) .web-footer{display:none!important}
body:has(.izen-auth-shell) .page-container,body:has(.izen-auth-shell) .page-content-wrapper,body:has(.izen-auth-shell) .web-page-content{width:100%!important;max-width:none!important;height:100%!important;min-height:100%!important;margin:0!important;padding:0!important}
.izen-auth-shell{position:fixed!important;inset:0!important;z-index:9999!important;display:grid!important;grid-template-columns:52% 48%!important;width:100vw!important;height:100vh!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
.izen-auth-brand{position:relative!important;height:100vh!important;overflow:hidden!important;background:radial-gradient(circle at 22% 20%,rgba(39,113,181,.38),transparent 34%),linear-gradient(145deg,#0b467d,#073864 48%,#052d54)!important}
.izen-auth-brand:before{content:"";position:absolute;width:760px;height:760px;left:-470px;top:-480px;border:70px solid rgba(66,143,211,.16);border-radius:50%}
.izen-auth-brand:after{content:"";position:absolute;width:850px;height:520px;left:-270px;bottom:-390px;border:65px solid rgba(66,143,211,.14);border-radius:50%;transform:rotate(-18deg)}
.izen-auth-logo{position:absolute;top:48px;left:62px;z-index:2;color:#fff;font:800 68px/1 Arial,sans-serif;letter-spacing:-5px}
.izen-auth-main{height:100vh!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;padding:28px 9%!important;background:var(--bg)!important;overflow:auto!important}
.izen-auth-forms{width:100%!important;max-width:500px!important;margin:auto!important}
.izen-auth-forms section{width:100%!important;max-width:none!important;margin:0!important}
.izen-auth-forms .login-content.page-card{width:100%!important;max-width:500px!important;min-height:0!important;box-sizing:border-box!important;margin:0 auto!important;padding:36px 42px!important;background:#fff!important;border:1px solid #e5ebf1!important;border-radius:18px!important;box-shadow:0 18px 50px rgba(5,45,84,.12)!important}
.izen-auth-forms .page-card-head img,.izen-auth-forms .app-logo{display:none!important}
.izen-auth-forms .page-card-head:before{content:"iZen";display:block;margin:0 0 22px;color:var(--dark);text-align:left;font:800 58px/1 Arial,sans-serif;letter-spacing:-4px}
.izen-auth-forms .page-card-head{text-align:left!important}
.izen-auth-forms .page-card-head h4{margin:0 0 7px!important;color:var(--dark)!important;font-size:29px!important;font-weight:800!important}
.izen-auth-forms .page-card-head p,.izen-auth-forms .page-card-subtitle{color:#385570!important;font-size:16px!important;opacity:1!important}
.izen-auth-forms .form-label{color:#153d62!important;font-size:16px!important;font-weight:700!important}
.izen-auth-forms .form-control{min-height:50px!important;border:1px solid #cad6e2!important;border-radius:7px!important;color:#173b5f!important;font-size:16px!important}
.izen-auth-forms a{color:#0872c9!important;font-size:15px!important}
.izen-auth-forms .btn-primary,.izen-auth-forms .btn-login{min-height:50px!important;border:0!important;border-radius:7px!important;background:var(--navy)!important;color:#fff!important;font-size:17px!important;font-weight:700!important}
@media(max-width:768px){html:has(.izen-auth-shell),body:has(.izen-auth-shell){overflow:auto!important}.izen-auth-shell{position:relative!important;display:block!important;height:auto!important;min-height:100vh!important;overflow:visible!important}.izen-auth-brand{height:130px!important}.izen-auth-logo{top:31px;left:30px;font-size:54px}.izen-auth-main{height:auto!important;min-height:calc(100vh - 130px)!important;padding:28px 18px!important}.izen-auth-forms .login-content.page-card{padding:28px 24px!important}}

/* =====================================================
   iZen ERP - Permanent Left Navigation
   ===================================================== */

#izen-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 245px;
    height: 100vh;
    background: #073864;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
}

.izen-sidebar-header {
    height: 78px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-right: 1px solid #e5e7eb;
}

.izen-sidebar-logo {
    max-width: 175px;
    max-height: 58px;
    object-fit: contain;
}

.izen-sidebar-menu {
    padding: 12px 0 30px 0;
}

.izen-menu-item {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 20px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: background 0.15s ease;
}

.izen-menu-item > span:first-child {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 17px;
}

.izen-menu-item:hover {
    background: #052d54;
    border-left-color: #c92332;
}

body.izen-layout .navbar {
    margin-left: 245px;
    width: calc(100% - 245px);
}

body.izen-layout .main-section {
    margin-left: 245px;
    width: calc(100% - 245px);
}

body.izen-layout .page-container {
    width: 100%;
}

@media (max-width: 991px) {
    #izen-sidebar {
        display: none;
    }

    body.izen-layout .navbar,
    body.izen-layout .main-section {
        margin-left: 0;
        width: 100%;
    }
}


/* =====================================================
   iZen Accounting Expandable Menu - Frappe v16
   ===================================================== */

#izen-sidebar .izen-menu-button {
    width: 100% !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    border: 0 !important;
    border-left: 4px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
}

#izen-sidebar .izen-menu-button:hover,
#izen-sidebar .izen-menu-button.izen-expanded {
    background: #052d54 !important;
    border-left-color: #c92332 !important;
}

#izen-sidebar .izen-menu-label {
    flex: 1;
}

#izen-sidebar .izen-arrow {
    margin-left: auto;
    color: #ffffff !important;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease;
}

#izen-sidebar .izen-expanded > .izen-arrow {
    transform: rotate(90deg);
}


/* SECOND LEVEL */

#izen-sidebar .izen-submenu {
    display: none !important;
    width: 100%;
    background: #0b426f !important;
}

#izen-sidebar .izen-submenu.izen-open {
    display: block !important;
}

#izen-sidebar .izen-subgroup {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

#izen-sidebar .izen-submenu-item {
    width: 100% !important;
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    margin: 0 !important;
    padding: 8px 14px 8px 30px !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 0 !important;

    background: #0b426f !important;
    color: #ffffff !important;

    box-shadow: none !important;
    text-decoration: none !important;
    text-align: left !important;

    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;

    cursor: pointer;
}

#izen-sidebar .izen-submenu-item:hover,
#izen-sidebar .izen-submenu-button.izen-expanded {
    background: #0d4d80 !important;
    color: #ffffff !important;
}


/* THIRD LEVEL */

#izen-sidebar .izen-third-menu {
    display: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #052d54 !important;
}

#izen-sidebar .izen-third-menu.izen-open {
    display: block !important;
}

#izen-sidebar .izen-third-item {
    width: 100% !important;
    display: block !important;

    margin: 0 !important;
    padding: 10px 12px 10px 46px !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;

    background: #052d54 !important;
    color: #eaf3fb !important;

    text-decoration: none !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
}

#izen-sidebar .izen-third-item:hover {
    background: #073864 !important;
    color: #ffffff !important;
}

/* Sidebar scrolling */

#izen-sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}


/* ==================================================
   iZen Home Dashboard
   ================================================== */

#izen-home-dashboard {
    padding: 28px 32px 50px;
    background: #f5f8fb;
    min-height: calc(100vh - 70px);
    width: 100%;
    box-sizing: border-box;
}

.izen-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.izen-dashboard-head h1 {
    margin: 0;
    color: #073864;
    font-size: 28px;
    font-weight: 700;
}

.izen-dashboard-head p {
    margin: 5px 0 0;
    color: #6b7f92;
    font-size: 14px;
}

.izen-dashboard-date {
    background: #ffffff;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    padding: 9px 15px;
    color: #073864;
    font-weight: 600;
}

.izen-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.izen-kpi-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e3e9ef;
    border-top: 3px solid #073864;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(7, 56, 100, 0.05);
    transition: 0.2s ease;
}

.izen-kpi-card:hover {
    transform: translateY(-2px);
    border-top-color: #c92332;
    box-shadow: 0 5px 14px rgba(7, 56, 100, 0.10);
}

.izen-kpi-title {
    color: #60788e;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.izen-kpi-value {
    color: #073864;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.izen-kpi-note {
    color: #8797a6;
    font-size: 12px;
    margin-top: 7px;
}

.izen-dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.izen-dashboard-panel {
    background: #ffffff;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(7, 56, 100, 0.04);
}

.izen-panel-title {
    color: #073864;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf1f5;
}

.izen-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.izen-quick-grid a {
    display: block;
    padding: 13px 15px;
    background: #f5f8fb;
    border: 1px solid #e0e8ef;
    border-radius: 7px;
    color: #073864 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.izen-quick-grid a:hover {
    background: #073864;
    border-color: #073864;
    color: #ffffff !important;
}

.izen-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2px;
    border-bottom: 1px solid #edf1f5;
    color: #435e76;
}

.izen-summary-row:last-child {
    border-bottom: 0;
}

.izen-summary-row strong {
    color: #073864;
    font-size: 16px;
}

.izen-dashboard-wide {
    width: 100%;
}

.izen-empty-state {
    padding: 35px 20px;
    text-align: center;
    background: #f8fafc;
    border-radius: 7px;
    color: #8495a5;
}

@media (max-width: 1200px) {
    .izen-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #izen-home-dashboard {
        padding: 20px;
    }

    .izen-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .izen-kpi-grid,
    .izen-quick-grid {
        grid-template-columns: 1fr;
    }

    .izen-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}


/* iZen fixed logo/header - scroll menu only */
#izen-sidebar {
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.izen-sidebar-header {
    flex: 0 0 78px;
    position: relative;
    z-index: 2;
}

.izen-sidebar-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
/* =========================================================
   iZen FINAL Full Width Top Navigation Bar
   ========================================================= */

#izen-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: 54px !important;

    z-index: 2000 !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 18px !important;

    box-sizing: border-box !important;

    background: #073864 !important;
    color: #ffffff !important;

    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}


/* =========================================================
   LEFT AREA
   Logo + Workspace
   ========================================================= */

.izen-topbar-left {
    flex: 0 0 340px;

    height: 54px;

    display: flex;
    align-items: center;

    gap: 14px;
}


/* Logo */

.izen-topbar-logo-link {
    width: 170px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: transparent !important;

    text-decoration: none !important;
}


/* Make existing iZen logo WHITE */

.izen-topbar-logo {
    width: auto !important;
    height: 38px !important;

    max-width: 165px !important;

    object-fit: contain !important;

    background: transparent !important;

    filter:
        grayscale(1)
        brightness(0)
        invert(1) !important;

    mix-blend-mode: normal !important;
}


/* Divider */

.izen-topbar-divider {
    display: block;

    width: 1px;
    height: 29px;

    flex: 0 0 1px;

    background: rgba(255,255,255,0.38);
}


/* Workspace */

.izen-workspaces-link {
    height: 54px;

    display: flex;
    align-items: center;

    gap: 8px;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

.izen-workspaces-link:hover {
    color: #ffffff !important;

    opacity: 0.88;

    text-decoration: none !important;
}

.izen-workspaces-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 18px;

    color: #ffffff;
}

#izen-topbar-section {
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   CENTER SEARCH
   ========================================================= */

.izen-topbar-center {
    flex: 1 1 auto;

    min-width: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;
}

.izen-topbar-search {
    width: 100% !important;

    max-width: 560px !important;

    height: 34px !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 14px !important;

    border: 1px solid rgba(255,255,255,0.35) !important;

    border-radius: 18px !important;

    background: #ffffff !important;

    color: #6b7c8d !important;

    outline: none !important;

    box-shadow: none !important;

    cursor: pointer !important;
}

.izen-topbar-search:hover {
    border-color: #ffffff !important;
}

.izen-topbar-search-text {
    flex: 1;

    text-align: left;

    color: #8796a5;

    font-size: 13px;
    font-weight: 400;
}

.izen-topbar-search-shortcut {
    margin-left: 10px;

    color: #9aa8b5;

    font-size: 11px;
    font-weight: 500;
}

.izen-topbar-search-icon {
    margin-left: 9px;

    color: #073864;

    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   RIGHT AREA
   Settings / Help / Notification / User
   ========================================================= */

.izen-topbar-right {
    flex: 0 0 auto;

    height: 54px;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 2px;

    white-space: nowrap;
}


/* Reset all topbar buttons */

.izen-topbar-icon-button,
.izen-topbar-text-button,
.izen-topbar-user {
    height: 38px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    border: 0 !important;

    outline: 0 !important;

    background: transparent !important;

    color: #ffffff !important;

    box-shadow: none !important;

    font-family: inherit !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    cursor: pointer !important;
}


/* Icon buttons */

.izen-topbar-icon-button {
    width: 38px !important;
    min-width: 38px !important;

    padding: 0 !important;

    border-radius: 5px !important;

    font-size: 18px !important;
}


/* Settings / Help */

.izen-topbar-text-button {
    padding: 0 10px !important;

    gap: 6px;

    border-radius: 5px !important;
}


/* User */

.izen-topbar-user {
    padding: 0 9px !important;

    gap: 7px;

    border-radius: 5px !important;
}


/* Hover */

.izen-topbar-icon-button:hover,
.izen-topbar-text-button:hover,
.izen-topbar-user:hover {
    background: rgba(255,255,255,0.12) !important;

    color: #ffffff !important;
}


/* User circle */

.izen-user-circle {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.82);

    border-radius: 50%;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
}


/* Down arrow */

.izen-down-arrow {
    margin-left: 1px;

    color: rgba(255,255,255,0.9);

    font-size: 10px;
}


/* =========================================================
   SETTINGS DROPDOWN
   ========================================================= */

.izen-topbar-dropdown {
    position: relative;

    height: 54px;

    display: flex;
    align-items: center;
}

.izen-topbar-dropdown-menu {
    position: absolute;

    top: 49px;
    right: 0;

    width: 220px;

    display: none;

    padding: 7px 0;

    background: #ffffff;

    border: 1px solid #dfe5ea;

    border-radius: 7px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.18);

    overflow: hidden;

    z-index: 3000;
}


/* JS adds this class */

.izen-topbar-dropdown-menu.izen-show {
    display: block !important;
}


/* Dropdown items */

.izen-topbar-dropdown-menu a,
.izen-topbar-dropdown-menu button {
    width: 100% !important;

    min-height: 40px !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;

    padding: 0 16px !important;

    border: 0 !important;

    border-radius: 0 !important;

    background: #ffffff !important;

    color: #354052 !important;

    text-align: left !important;

    text-decoration: none !important;

    font-family: inherit !important;

    font-size: 14px !important;

    font-weight: 400 !important;

    box-shadow: none !important;

    cursor: pointer !important;
}

.izen-topbar-dropdown-menu a:hover,
.izen-topbar-dropdown-menu button:hover {
    background: #f3f6f8 !important;

    color: #073864 !important;

    text-decoration: none !important;
}


/* Separator */

.izen-dropdown-separator {
    width: 100%;
    height: 1px;

    margin: 5px 0;

    background: #e4e8ec;
}


/* =========================================================
   SIDEBAR
   Starts BELOW the top navigation
   ========================================================= */

#izen-sidebar {
    top: 54px !important;

    height: calc(100vh - 54px) !important;

    z-index: 1050 !important;

    background: #073864 !important;
}


/* Remove old white logo area from sidebar */

#izen-sidebar .izen-sidebar-header {
    display: none !important;
}


/* Sidebar menu scroll */

#izen-sidebar .izen-sidebar-menu {
    flex: 1 1 auto !important;

    min-height: 0 !important;

    padding-top: 10px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
}


/* =========================================================
   MAIN ERP AREA
   ========================================================= */

body.izen-layout .main-section {
    margin-left: 245px !important;

    width: calc(100% - 245px) !important;

    padding-top: 54px !important;
}

body.izen-layout .page-container {
    width: 100% !important;
}


/* Hide Frappe's original sidebar/header controls */

body.izen-layout .body-sidebar-container {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .izen-topbar-left {
        flex-basis: 290px;
    }

    .izen-topbar-logo-link {
        width: 135px;
    }

    .izen-topbar-logo {
        max-width: 130px !important;
    }

    .izen-topbar-center {
        padding-left: 10px;
        padding-right: 10px;
    }
}


@media (max-width: 991px) {

    #izen-sidebar {
        display: none !important;
    }

    body.izen-layout .main-section {
        margin-left: 0 !important;

        width: 100% !important;
    }

    .izen-topbar-left {
        flex: 0 0 auto;
    }

    .izen-topbar-logo-link {
        width: 120px;
    }

    .izen-topbar-logo {
        max-width: 115px !important;
    }

    .izen-topbar-divider,
    .izen-workspaces-link {
        display: none !important;
    }

    .izen-topbar-center {
        padding: 0 8px;
    }

    .izen-topbar-search-shortcut,
    #izen-topbar-user-name,
    #izen-help-button,
    #izen-calendar-button {
        display: none !important;
    }
}
/* =========================================================
   iZen Startup / Splash Branding
   ========================================================= */

.centered.splash img {
    content: url("/assets/izen_theme/images/izen-icon.png") !important;
    width: 110px !important;
    height: 110px !important;
    object-fit: contain !important;
}

.centered.splash {
    background: #ffffff !important;
}
/* iZen Topbar - Smaller Search Bar */
#izen-topbar .izen-topbar-search {
    width: 300px !important;
    max-width: 300px !important;
}
/* =========================================================
   iZen ERP - COMMON DOCUMENT / MASTER FORM DESIGN
   Applies globally to ERPNext standard forms
   ========================================================= */

/* Main form background */
.layout-main-section {
    background: #ffffff !important;
}

/* Compact form area */
.form-layout {
    padding-top: 4px !important;
}

/* Section spacing */
.form-section {
    margin-bottom: 4px !important;
}

/* Field labels */
.control-label,
.grid-heading-row {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #173b5f !important;
}

/* Standard input controls */
.form-control,
.input-with-feedback {
    min-height: 32px !important;
    height: 32px !important;
    border: 1px solid #d6e0e8 !important;
    border-radius: 6px !important;
    background: #f7f9fb !important;
    font-size: 13px !important;
}

/* Focus - iZen style */
.form-control:focus,
.input-with-feedback:focus {
    border-color: #073864 !important;
    box-shadow: 0 0 0 1px #073864 !important;
    background: #ffffff !important;
}

/* Required field star */
.reqd {
    color: #c92332 !important;
}

/* Form tabs */
.form-tabs-list {
    border-bottom: 1px solid #d9e2ea !important;
}

.form-tabs-list .nav-link {
    font-size: 13px !important;
    padding: 10px 16px !important;
}

.form-tabs-list .nav-link.active {
    color: #073864 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #073864 !important;
}

/* Section headings */
.section-head {
    color: #073864 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Child tables / Items tables */
.grid-heading-row {
    background: #eef4f8 !important;
    border-top: 1px solid #d8e2ea !important;
    border-bottom: 1px solid #d8e2ea !important;
}

.grid-row {
    border-bottom: 1px solid #e4e9ee !important;
}

.grid-row:hover {
    background: #f7fafc !important;
}

/* Buttons */
.btn {
    border-radius: 5px !important;
    font-size: 13px !important;
}

/* Primary ERP action buttons */
.btn-primary {
    background: #073864 !important;
    border-color: #073864 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #052d54 !important;
    border-color: #052d54 !important;
}

/* Secondary buttons */
.btn-default {
    border: 1px solid #d6e0e8 !important;
    background: #f7f9fb !important;
}

/* Page title / breadcrumb area */
.page-head {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e6eb !important;
}

/* Document status */
.indicator-pill {
    font-size: 12px !important;
}

/* Dropdowns */
.dropdown-menu {
    border-radius: 6px !important;
    border: 1px solid #d8e2ea !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
}

/* Dialogs */
.modal-content {
    border-radius: 8px !important;
    border: 1px solid #d8e2ea !important;
}

.modal-header {
    border-bottom: 1px solid #e1e7ec !important;
}

/* Scrollbars - compact */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-thumb {
    background: #b8c6d1;
    border-radius: 6px;
}
/* =========================================================
   iZen ERP - COMMON COMPACT BUSINESS UI
   ========================================================= */

/* Main document area */
.form-page {
    background: #ffffff !important;
}

/* Reduce excessive vertical whitespace */
.form-layout .form-section {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Give sections a clearer business-form structure */
.form-section:not(:last-child) {
    border-bottom: 1px solid #e1e7ec !important;
}

/* Compact columns */
.form-column {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Labels closer to controls */
.frappe-control {
    margin-bottom: 8px !important;
}

.frappe-control .control-label {
    margin-bottom: 3px !important;
    line-height: 16px !important;
}

/* Inputs - compact ERP appearance */
.form-control,
.input-with-feedback,
.awesomplete > input {
    height: 30px !important;
    min-height: 30px !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
}

/* Read-only controls */
.like-disabled-input,
.control-value {
    min-height: 30px !important;
    padding: 5px 9px !important;
    border-radius: 5px !important;
}

/* Tab/header area */
.form-tabs-list {
    min-height: 40px !important;
    padding-left: 6px !important;
}

.form-tabs-list .nav-link {
    padding: 10px 14px 8px !important;
}

/* Collapsible section heading */
.section-head {
    min-height: 34px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Child table outer border */
.form-grid {
    border: 1px solid #d6e0e8 !important;
    border-radius: 7px !important;
    overflow: hidden !important;
}

/* Child table header */
.form-grid .grid-heading-row {
    min-height: 34px !important;
    background: #edf4f8 !important;
}

/* Child table rows */
.form-grid .grid-row {
    min-height: 38px !important;
}

/* Child table cells */
.form-grid .data-row .row > div {
    border-right: 1px solid #e5eaee !important;
}

/* Page action area */
.page-head .page-head-content {
    min-height: 48px !important;
}

/* Breadcrumb/title */
.page-head .breadcrumb {
    font-size: 13px !important;
}

/* Compact action buttons */
.page-head .btn {
    min-height: 30px !important;
    padding: 4px 10px !important;
}

/* Cleaner secondary buttons */
.btn-default {
    color: #173b5f !important;
}

/* Better selected/focused field */
.form-control:focus,
.input-with-feedback:focus,
.awesomplete > input:focus {
    border-color: #073864 !important;
    box-shadow: 0 0 0 1px rgba(7, 56, 100, 0.18) !important;
}

/* Links and expandable headings */
.form-section .section-head:hover,
.foldable:hover {
    color: #073864 !important;
}

/* Table action area */
.grid-footer {
    padding: 7px 8px !important;
    background: #ffffff !important;
}

/* Standard list/table headers */
.list-row-head,
.datatable .dt-header {
    background: #edf4f8 !important;
    color: #173b5f !important;
    font-weight: 600 !important;
}

/* Standard list rows */
.list-row {
    border-bottom: 1px solid #e1e7ec !important;
    min-height: 38px !important;
}

.list-row:hover {
    background: #f6f9fb !important;
}
/* =========================================================
   iZen ERP - GLOBAL COMPACT FORM LAYOUT
   ========================================================= */

/* Light business-page background */
body,
.layout-main {
    background: #f5f8fb !important;
}

/* Main working document */
.layout-main-section {
    background: #ffffff !important;
}

/* Reduce wide empty margins inside forms */
.form-layout .form-page {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Make form content use more available width */
.form-layout .section-body {
    max-width: none !important;
}

/* Compact field columns */
.form-section .section-body {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Reduce gaps between fields */
.form-section .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.form-section .frappe-control {
    margin-bottom: 6px !important;
}

/* Section separator like business ERP */
.form-section {
    border-bottom: 1px solid #dce5ec !important;
    padding-bottom: 8px !important;
}

/* Collapsible sections */
.section-head {
    color: #173b5f !important;
    font-weight: 600 !important;
    padding: 7px 0 !important;
}

/* Inputs */
.form-control,
.input-with-feedback,
.awesomplete > input {
    background: #f4f6f8 !important;
    border: 1px solid #d7e0e7 !important;
}

/* Inputs on hover */
.form-control:hover,
.input-with-feedback:hover,
.awesomplete > input:hover {
    border-color: #9fb6c8 !important;
}

/* Active input */
.form-control:focus,
.input-with-feedback:focus,
.awesomplete > input:focus {
    background: #ffffff !important;
    border-color: #073864 !important;
}

/* Child/item tables */
.form-grid {
    background: #ffffff !important;
    border: 1px solid #ccd9e3 !important;
}

/* Stronger table heading */
.form-grid .grid-heading-row {
    background: #eaf2f7 !important;
    color: #173b5f !important;
    font-weight: 600 !important;
}

/* Compact rows */
.form-grid .grid-row {
    min-height: 36px !important;
}

/* Tabs closer to Accu360 compact style */
.form-tabs-list {
    background: #ffffff !important;
    border-bottom: 1px solid #d7e1e8 !important;
}

.form-tabs-list .nav-link.active {
    color: #073864 !important;
    border-bottom: 2px solid #073864 !important;
}

/* Page header */
.page-head {
    box-shadow: none !important;
    border-bottom: 1px solid #dce5ec !important;
}

/* Keep content clean and square-business style */
.layout-main-section,
.form-grid,
.modal-content {
    box-shadow: none !important;
}
/* =========================================================
   iZen ERP - WIDE 4-COLUMN FORM LAYOUT
   ========================================================= */

/* Use almost the full available page width */
.izen-form-view .form-layout .form-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Let standard sections use full width */
.izen-form-view .form-section .section-body,
.izen-form-view .form-section .section-body > .row {
    width: 100% !important;
    max-width: none !important;
}

/* Equal-width columns inside normal ERPNext sections */
@media (min-width: 1200px) {
    .izen-form-view .form-section .section-body > .row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    .izen-form-view .form-section .section-body > .row > .form-column {
        flex: 1 1 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Keep controls filling their column */
.izen-form-view .form-column .frappe-control,
.izen-form-view .form-column .form-control,
.izen-form-view .form-column .input-with-feedback {
    width: 100% !important;
}

/* Tables remain full width */
.izen-form-view .form-grid,
.izen-form-view .grid-field {
    width: 100% !important;
    max-width: none !important;
}

/* Slightly denser fields */
.izen-form-view .frappe-control {
    margin-bottom: 6px !important;
}
/* =========================================================
   iZen ERP - WIDE INFORMATION SECTIONS
   ========================================================= */

/* Use the full available document width */
.izen-form-view .form-layout,
.izen-form-view .form-page,
.izen-form-view .section-body {
    max-width: none !important;
}

/* Information sections: remove unnecessary side spacing */
.izen-form-view .izen-info-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Convert existing Frappe columns to 4-column width */
@media (min-width: 1200px) {

    .izen-form-view .izen-info-section .section-body {
        width: 100% !important;
    }

    .izen-form-view .izen-info-section .section-body > .row {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .izen-form-view .izen-info-section .form-column {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Keep Items and other large sections full width */
.izen-form-view .izen-full-width-section,
.izen-form-view .izen-full-width-section .section-body,
.izen-form-view .izen-full-width-section .form-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================================
   iZen ERP - WIDER FORM CONTENT
   ========================================================= */

@media (min-width: 1200px) {

    /* Allow form content to use available page width */
    body.izen-form-view .form-layout,
    body.izen-form-view .form-page,
    body.izen-form-view .form-container {
        max-width: none !important;
        width: 100% !important;
    }

    /* Reduce excessive left/right empty space inside sections */
    body.izen-form-view .form-section .section-body {
        max-width: none !important;
        width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* Existing Frappe columns use the full section width */
    body.izen-form-view .form-section .row {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Inputs should fill their existing column */
    body.izen-form-view .frappe-control,
    body.izen-form-view .control-input-wrapper,
    body.izen-form-view .control-input {
        max-width: none !important;
        width: 100% !important;
    }
}
/* =========================================================
   iZen - DARK ITEMS TABLE HEADER
   ========================================================= */

body .form-grid .grid-heading-row,
body .form-grid .grid-heading-row .grid-row,
body .form-grid .grid-heading-row .grid-static-col,
body .form-grid .grid-heading-row .data-row {
    background-color: #052d54 !important;
}

body .form-grid .grid-heading-row .static-area,
body .form-grid .grid-heading-row .static-area *,
body .form-grid .grid-heading-row .grid-static-col,
body .form-grid .grid-heading-row .grid-static-col * {
    color: #ffffff !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

body .form-grid .grid-heading-row {
    border-color: #052d54 !important;
}

/* =========================================================
   iZen - Frappe Checkbox Checked State
   ========================================================= */

input[type="checkbox"].input-with-feedback:checked,
.frappe-control[data-fieldtype="Check"] input[type="checkbox"]:checked,
.form-grid input[type="checkbox"]:checked {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: #073864 !important;
}
/* =========================================================
   iZen ERP - GLOBAL CHECKBOX TICK
   ========================================================= */

/* Keep Frappe checkbox structure */
input[type="checkbox"] {
    position: relative !important;
}

/* Checked box */
input[type="checkbox"]:checked {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 16px !important;
    height: 16px !important;

    background: #073864 !important;
    border: 1px solid #073864 !important;
    border-radius: 3px !important;

    opacity: 1 !important;
    visibility: visible !important;
}

/* Draw the tick ourselves */
input[type="checkbox"]:checked::after {
    content: "✓" !important;

    position: absolute !important;
    left: 2px !important;
    top: -2px !important;

    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 16px !important;

    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Radio selected state */
input[type="radio"]:checked {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 16px !important;
    height: 16px !important;

    border: 4px solid #073864 !important;
    border-radius: 50% !important;
    background: #ffffff !important;

    opacity: 1 !important;
    visibility: visible !important;
}
/* =========================================================
   iZen ERP - CLEAR FIELD OUTLINES
   ========================================================= */

body.izen-form-view .form-control,
body.izen-form-view .control-input input,
body.izen-form-view .control-input select,
body.izen-form-view .control-input textarea,
body.izen-form-view .like-disabled-input {
    border: 1px solid #557a9b !important;
    background-color: #f8fbfd !important;
    box-shadow: none !important;
}

body.izen-form-view .form-control:hover,
body.izen-form-view .control-input input:hover,
body.izen-form-view .control-input select:hover,
body.izen-form-view .control-input textarea:hover {
    border-color: #6f96b8 !important;
}

body.izen-form-view .form-control:focus,
body.izen-form-view .control-input input:focus,
body.izen-form-view .control-input select:focus,
body.izen-form-view .control-input textarea:focus {
    border-color: #073864 !important;
    box-shadow: 0 0 0 1px #073864 !important;
    outline: none !important;
}
/* =========================================================
   iZen ERP - STRONG V16 FIELD BORDER
   ========================================================= */

body.izen-layout .frappe-control .control-input > input.form-control,
body.izen-layout .frappe-control .control-input > select.form-control,
body.izen-layout .frappe-control .control-input > textarea.form-control,
body.izen-layout .frappe-control .control-input .input-with-feedback {
    border: 1px solid #a8b7c7 !important;
    background: #f8fbfd !important;
    box-shadow: none !important;
}

body.izen-layout .frappe-control .control-input > input.form-control:focus,
body.izen-layout .frappe-control .control-input > select.form-control:focus,
body.izen-layout .frappe-control .control-input > textarea.form-control:focus,
body.izen-layout .frappe-control .control-input .input-with-feedback:focus {
    border-color: #073864 !important;
    box-shadow: 0 0 0 1px #073864 !important;
}
/* iZen - FINAL CLEAR FIELD OUTLINE */
body.izen-layout input.form-control[data-fieldname],
body.izen-layout select.form-control[data-fieldname],
body.izen-layout textarea.form-control[data-fieldname],
body.izen-layout .awesomplete > input.form-control[data-fieldname] {
    border: 1px solid #a8b7c7 !important;
    background-color: #f8fbfd !important;
}

body.izen-layout input.form-control[data-fieldname]:focus,
body.izen-layout select.form-control[data-fieldname]:focus,
body.izen-layout textarea.form-control[data-fieldname]:focus,
body.izen-layout .awesomplete > input.form-control[data-fieldname]:focus {
    border: 2px solid #073864 !important;
    box-shadow: 0 0 0 1px rgba(7, 56, 100, 0.15) !important;
}
/* iZen - CLEAR OUTLINE FOR READ-ONLY / DISPLAY FIELDS */
body.izen-layout .frappe-control .like-disabled-input,
body.izen-layout .frappe-control .control-value {
    border: 1.5px solid #7898b5 !important;
    background-color: #f5f8fb !important;
    border-radius: 4px !important;
    min-height: 32px !important;
    padding: 6px 10px !important;
}
/* iZen - FINAL READ-ONLY FIELD OUTLINE */
body.izen-layout .frappe-control[data-fieldname] .control-input-wrapper .control-value.like-disabled-input {
    border: 1px solid #a8b7c7 !important;
    background-color: #f5f8fb !important;
    border-radius: 4px !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
}
/* iZen - UNIFIED FIELD SIZE AND OUTLINE */

/* Editable fields */
body.izen-layout input.form-control[data-fieldname],
body.izen-layout select.form-control[data-fieldname],
body.izen-layout textarea.form-control[data-fieldname],
body.izen-layout .awesomplete > input.form-control[data-fieldname],

/* Read-only / calculated fields */
body.izen-layout .frappe-control[data-fieldname] .control-value.like-disabled-input {
    height: 34px !important;
    min-height: 34px !important;
    border: 1px solid #a8b7c7 !important;
    border-radius: 4px !important;
    background-color: #f8fbfd !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
}
/* =========================================================
   iZen ERP - UNIFORM FIELD DESIGN
   Same appearance for editable and read-only fields
   ========================================================= */

/* All editable controls */
body.izen-layout .frappe-control input.form-control,
body.izen-layout .frappe-control select.form-control,
body.izen-layout .frappe-control textarea.form-control,
body.izen-layout .frappe-control .awesomplete > input,
body.izen-layout .frappe-control .input-with-feedback {
    height: 34px !important;
    min-height: 34px !important;
    border: 1px solid #a8b7c7 !important;
    border-radius: 4px !important;
    background-color: #f8fbfd !important;
    padding: 5px 10px !important;
    box-sizing: border-box !important;
}

/* All calculated / read-only display controls */
body.izen-layout .frappe-control .control-value.like-disabled-input,
body.izen-layout .frappe-control .like-disabled-input {
    height: 34px !important;
    min-height: 34px !important;
    border: 1px solid #a8b7c7 !important;
    border-radius: 4px !important;
    background-color: #f8fbfd !important;
    padding: 5px 10px !important;
    box-sizing: border-box !important;
    line-height: 20px !important;
}

/* Focus */
body.izen-layout .frappe-control input.form-control:focus,
body.izen-layout .frappe-control select.form-control:focus,
body.izen-layout .frappe-control textarea.form-control:focus,
body.izen-layout .frappe-control .awesomplete > input:focus {
    border-color: #073864 !important;
    box-shadow: 0 0 0 1px rgba(7, 56, 100, 0.15) !important;
}
/* =========================================================
   iZen ERP - LEFT ALIGN SECTION HEADINGS
   ========================================================= */

body.izen-layout .section-head {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 24px !important;
}

body.izen-layout .section-head .section-head-label,
body.izen-layout .section-head .section-head-label a {
    text-align: left !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
}
/* iZen - LEFT ALIGN COLLAPSIBLE SECTION HEADINGS */
body.izen-layout .form-section.card-section > .section-head {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding-left: 24px !important;
    text-align: left !important;
    justify-content: flex-start !important;
    transform: none !important;
}
/* iZen - EXACT LEFT ALIGNMENT FOR SECTION HEADINGS */
/* iZen ERP - GLOBAL LEFT ALIGNED SECTION HEADINGS */
body.izen-layout .form-section.card-section > .section-head {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
}
/* iZen - SECTION HEADINGS FLUSH LEFT */
body.izen-layout .form-section.card-section > .section-head {
    margin-left: -15px !important;
    width: calc(100% + 30px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}
/* iZen - FORCE COLLAPSIBLE HEADINGS TO FORM LEFT EDGE */
body.izen-layout .form-section.card-section {
    position: relative !important;
}

body.izen-layout .form-section.card-section > .section-head.collapsible {
    position: relative !important;
    left: -15px !important;
    width: calc(100% + 30px) !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
}
/* iZen - Command/Search Popup below fixed top bar */
body.izen-layout .search-dialog,
body.izen-layout .awesomplete > ul {
    z-index: 1050 !important;
}

body.izen-layout .modal-backdrop + .modal,
body.izen-layout .search-dialog {
    padding-top: 62px !important;
}
/* iZen - Keep Frappe search modal below fixed top bar */
body.izen-layout .modal.show .modal-dialog {
    margin-top: 65px !important;
}
/* Fix white patch in table header */
.form-grid .grid-heading-row .row-check {
    background: #0A2F54 !important;
}

/* iZen: blue background for header checkbox cell */
body.izen-layout .form-grid .grid-heading-row .row-check,
body.izen-layout .form-grid .grid-heading-row .row-check.col {
    background: #0A2F54 !important;
    background-image: none !important;
}

/* Permanent header checkbox background */
html body .form-grid .grid-heading-row .grid-row .data-row > .row-check.sortable-handle.col {
    background: #0A2F54 !important;
}
