/* AceAdmin Theme Core Stylesheet - Enterprise Edition */
body {
    background-color: #e4e6e9;
    padding-bottom: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #393939;
    line-height: 1.5;
}

a {
    color: #428bca;
    text-decoration: none;
}
a:hover, a:focus {
    color: #1b6aaa;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    background: #438eb9 !important;
    position: relative;
    z-index: 1020;
}
.navbar .navbar-container {
    padding-left: 10px !important;
    padding-right: 0 !important;
    height: 45px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.navbar-header.pull-left {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    height: 45px !important;
    margin: 0 !important;
}
.navbar .navbar-brand {
    color: #ffffff !important;
    font-size: 18px;
    text-shadow: none;
    padding: 0 10px 0 0 !important;
    margin: 0 !important;
    height: 45px !important;
    line-height: 45px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex !important;
    align-items: center !important;
}
.navbar .navbar-brand:hover {
    color: #ffffff !important;
}
.navbar .navbar-brand small {
    font-size: 14px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-buttons.navbar-header.pull-right {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    height: 45px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ace-nav {
    height: 45px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    float: none !important;
}
.ace-nav > li {
    display: inline-flex !important;
    align-items: center !important;
    height: 45px !important;
    line-height: 45px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    float: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.ace-nav > li > a {
    color: #ffffff !important;
    background-color: #2e6589 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 45px !important;
    line-height: 45px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    position: relative !important;
}
.ace-nav > li > a:hover,
.ace-nav > li > a:focus,
.ace-nav > li.open > a {
    background-color: #225170 !important;
    color: #ffffff !important;
}
.ace-nav > li.purple > a {
    background-color: #6a4478 !important;
}
.ace-nav > li.purple > a:hover,
.ace-nav > li.purple > a:focus,
.ace-nav > li.purple.open > a {
    background-color: #553362 !important;
}
.ace-nav > li.light-blue > a {
    background-color: #42729a !important;
}
.ace-nav > li.light-blue > a:hover,
.ace-nav > li.light-blue > a:focus,
.ace-nav > li.light-blue.open > a {
    background-color: #355d7e !important;
}
.ace-nav > li > a .ace-icon {
    margin-right: 4px;
    font-size: 16px;
}
.ace-nav > li > a .badge {
    position: relative;
    top: -3px;
    right: 2px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 12px;
}
.ace-nav > li > a .user-info {
    max-width: 140px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
    line-height: 14px;
    position: relative;
    top: 1px;
    padding-left: 6px;
    padding-right: 4px;
}
.ace-nav > li > a .user-info small {
    display: block;
    font-size: 10px;
    color: #d0e3f0;
}
.ace-nav > li > .dropdown-menu {
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

/* Sidebar & Layout Structure */
.main-container {
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    min-height: calc(100vh - 45px) !important;
    position: relative !important;
}
.main-container:before {
    display: none !important;
}
.sidebar {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    flex: 0 0 210px !important;
    float: none !important;
    position: relative;
    border-right: 1px solid #ccc;
    background-color: #f2f2f2;
    min-height: calc(100vh - 45px);
}
.sidebar-shortcuts {
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    padding: 6px 0;
    text-align: center;
}
.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-list > li {
    display: block;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}
.nav-list > li > a {
    display: block;
    height: 41px;
    line-height: 39px;
    padding: 0 16px 0 11px;
    background-color: #f8f8f8;
    color: #585858;
    text-shadow: none !important;
    font-size: 13px;
    text-decoration: none;
}
.nav-list > li > a:hover {
    background-color: #ffffff;
    color: #1963aa;
}
.nav-list > li > a > .menu-icon {
    display: inline-block;
    min-width: 30px;
    margin-right: 2px;
    vertical-align: sub;
    text-align: center;
    font-size: 18px;
    font-weight: normal;
}
.nav-list > li.active > a {
    background-color: #ffffff;
    color: #2b7dbc;
    font-weight: bold;
    border-left: 3px solid #2b7dbc;
}

/* Main Content Area */
.main-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    min-height: calc(100vh - 45px);
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}
.main-content-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.breadcrumbs {
    position: relative;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f5f5f5;
    min-height: 41px;
    line-height: 40px;
    padding: 0 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.breadcrumb {
    background-color: transparent;
    display: inline-block;
    margin: 0 22px 0 12px;
    padding: 0;
    font-size: 12px;
    color: #333;
    border-radius: 0;
}
.breadcrumb > li + li:before {
    content: ">\00a0";
    color: #b2b6bf;
}
.page-content {
    background-color: #ffffff;
    position: relative;
    margin: 0;
    padding: 16px 20px 24px;
}
.page-header {
    margin: 0 0 14px;
    padding-bottom: 10px;
    padding-top: 4px;
    border-bottom: 1px dotted #e2e2e2;
}
.page-header h1 {
    padding: 0;
    margin: 0 8px;
    font-size: 24px;
    font-weight: lighter;
    color: #2679b5;
}
.page-header h1 small {
    margin-left: 6px;
    font-size: 14px;
    color: #8089a0;
    font-weight: normal;
}

/* Ace Widget Boxes */
.widget-box {
    padding: 0;
    box-shadow: none;
    margin: 3px 0 18px;
    border: 1px solid #ccc;
    background-color: #fff;
}
.widget-header {
    box-sizing: content-box;
    position: relative;
    min-height: 38px;
    background: #f7f7f7;
    background-image: linear-gradient(to bottom, #ffffff 0%, #eeeeee 100%);
    color: #669fc7;
    border-bottom: 1px solid #ddd;
    padding-left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.widget-header h4, .widget-header h5 {
    line-height: 36px;
    padding: 0;
    margin: 0;
    display: inline;
    color: #2679b5;
    font-weight: 600;
    font-size: 15px;
}
.widget-toolbar {
    display: inline-block;
    padding: 0 10px;
    line-height: 37px;
    float: right;
    position: relative;
}
.widget-body {
    background-color: #fff;
}
.widget-main {
    padding: 14px;
}

/* Ace InfoBoxes / Metric Cards */
.infobox {
    display: inline-block;
    width: 100%;
    max-width: 220px;
    height: 75px;
    color: #555;
    background-color: #fff;
    box-shadow: none;
    margin: 4px 5px;
    padding: 8px 3px 6px 9px;
    border: 1px solid #d8d8d8;
    position: relative;
    text-align: left;
    vertical-align: top;
    border-radius: 0;
}
.infobox > .infobox-icon {
    display: inline-block;
    vertical-align: top;
    width: 48px;
    height: 52px;
    text-align: center;
    padding-top: 6px;
}
.infobox > .infobox-icon > .ace-icon {
    font-size: 30px;
    display: inline-block;
}
.infobox > .infobox-data {
    display: inline-block;
    padding-left: 10px;
    text-align: left;
    vertical-align: top;
    max-width: 140px;
}
.infobox-data-number {
    display: block;
    font-size: 22px;
    margin: 2px 0 0;
    color: #444;
    font-weight: 700;
    line-height: 24px;
}
.infobox-content {
    color: #888;
    font-size: 12px;
}

/* Infobox Color Themes */
.infobox-blue { color: #6fb3e0; border-color: #6fb3e0; }
.infobox-blue > .infobox-icon { color: #2091cf; }
.infobox-green { color: #9abc32; border-color: #9abc32; }
.infobox-green > .infobox-icon { color: #87b87f; }
.infobox-orange { color: #e8b110; border-color: #e8b110; }
.infobox-orange > .infobox-icon { color: #ff892a; }
.infobox-red { color: #d15b47; border-color: #d15b47; }
.infobox-red > .infobox-icon { color: #d15b47; }
.infobox-purple { color: #9585bf; border-color: #9585bf; }
.infobox-purple > .infobox-icon { color: #9585bf; }

/* Ace Tables */
.table-header {
    background-color: #307ecc;
    color: #fff;
    font-size: 14px;
    line-height: 38px;
    padding-left: 12px;
    margin-bottom: 1px;
    font-weight: 600;
}
.table thead tr {
    color: #707070;
    font-weight: normal;
    background: #f2f2f2;
    background-image: linear-gradient(to bottom, #f8f8f8 0%, #ececec 100%);
}
.table thead tr th {
    border-bottom-width: 1px;
    font-size: 13px;
    font-weight: 600;
    color: #307ecc;
    vertical-align: middle;
}
.table tbody tr td {
    vertical-align: middle;
}

/* Badges & Labels */
.label-info { background-color: #3a87ad; }
.label-success { background-color: #82af6f; }
.label-warning { background-color: #f89406; }
.label-danger { background-color: #d15b47; }
.label-inverse { background-color: #333333; }
.badge, .label {
    font-weight: 600;
    font-size: 11px;
    text-shadow: none;
    border-radius: 0;
    padding: 3px 6px;
}

/* Ace Form Styling */
.form-group {
    margin-bottom: 14px;
}
.form-control {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-color: #d5d5d5;
}
.form-control:focus {
    border-color: #f59942;
}

/* Ace Buttons */
.btn {
    border-radius: 0;
    border-width: 2px;
    font-size: 13px;
    padding: 5px 12px;
    font-weight: 600;
    text-shadow: none !important;
}
.btn-primary { background-color: #428bca !important; border-color: #428bca; }
.btn-primary:hover { background-color: #1b6aaa !important; border-color: #428bca; }
.btn-success { background-color: #87b87f !important; border-color: #87b87f; }
.btn-success:hover { background-color: #629b58 !important; border-color: #87b87f; }
.btn-warning { background-color: #ffb752 !important; border-color: #ffb752; }
.btn-warning:hover { background-color: #e59729 !important; border-color: #ffb752; }
.btn-danger { background-color: #d15b47 !important; border-color: #d15b47; }
.btn-danger:hover { background-color: #b74635 !important; border-color: #d15b47; }
.btn-info { background-color: #6fb3e0 !important; border-color: #6fb3e0; }
.btn-info:hover { background-color: #4f99c6 !important; border-color: #6fb3e0; }

/* Login Page Styling */
.login-layout {
    background-color: #292e34;
    padding: 60px 0;
}
.login-box {
    padding: 26px 24px 20px;
    background-color: #f7f7f7;
    box-shadow: 0 0 16px rgba(0,0,0,0.4);
    border: 1px solid #d5d5d5;
}
.login-box .toolbar {
    background: #5090c1;
    border-top: 2px solid #597597;
    padding: 9px 18px;
    margin: 20px -24px -20px -24px;
}

/* Customer Standalone Page Styling */
.customer-page-body {
    background-color: #eceff4;
    min-height: 100vh;
    padding: 40px 15px;
}
.customer-card {
    background: #ffffff;
    border: 1px solid #cfd6e0;
    border-top: 4px solid #d9534f; /* Oil Company Warm Red/Blue */
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 30px;
    max-width: 580px;
    margin: 0 auto;
}
.customer-brand-header {
    text-align: center;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.customer-brand-header h2 {
    margin: 8px 0 4px;
    color: #1f3a52;
    font-weight: 700;
}
.customer-brand-header p {
    color: #72849a;
    font-size: 14px;
    margin: 0;
}
