/**
 * COMMON.CSS - Universal Foundation & Structural Styles
 * 
 * This file contains ALL structural, layout, and functional styles that apply
 * universally across all themes. This is the complete foundation that defines
 * how elements are positioned, sized, and behave.
 * 
 * WHAT GOES HERE:
 * ✅ All layout (width, height, padding, margin, positioning)
 * ✅ All typography (font-size, font-weight, line-height)  
 * ✅ All functionality (display, float, flex, transforms)
 * ✅ All interactions (hover structure, transitions, animations)
 * ✅ All responsive behavior (media queries for layout)
 * ✅ All spacing and sizing
 * 
 * WHAT DOESN'T GO HERE:
 * ❌ Colors (color, background-color)
 * ❌ Backgrounds (background-image, gradients)
 * ❌ Border colors (border-color)
 * ❌ Visual effects (box-shadow colors)
 * 
 * THEME SEPARATION:
 * This file provides the complete structural foundation while style.css
 * provides only the visual styling (colors, backgrounds, etc.). This makes
 * creating new themes incredibly simple - just modify colors in style.css!
 */

/* Google Fonts import - Montserrat for consistent typography */
@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap);

/* ==========================================================================
   BASE STYLES & RESETS
   
   Foundation styles that normalize browser defaults and set up consistent
   box-sizing, typography, and basic element behavior across all browsers.
   ========================================================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Base link structure - colors defined in style.css */
a {
    text-decoration: none;
}

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

a:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

html, body {
    min-height: 100%;
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:after,
:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Montserrat, Arial;
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   
   Core layout components that define the overall page structure:
   - .wrapper: Main page container with clearfix
   - .content-wrapper: Main content area with sidebar offset
   - .content: Inner content container with padding
   - .container: Bootstrap-style responsive containers
   
   The layout uses a fixed sidebar (230px) with the main content offset to the right.
   On mobile, the sidebar transforms off-screen and content takes full width.
   ========================================================================== */
.wrapper {
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.wrapper:before,
.wrapper:after {
    content: " ";
    display: table;
}

.wrapper:after {
    clear: both;
}

.content-wrapper {
    min-height: 100%;
    margin-left: 230px;
    padding-top: 50px;
}

.content {
    min-height: 250px;
    padding: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        margin-left: 0;
        padding-top: 0px;
    }
}

/* ==========================================================================
   HEADER STRUCTURE
   
   Fixed header bar that stays at the top of the page:
   - .main-header: Fixed positioning container (z-index: 1030)
   - .navbar: Navigation bar with responsive behavior
   - .logo: Brand/logo area (230px wide to match sidebar)
   - .sidebar-toggle: Mobile hamburger menu (hidden on desktop)
   - .navbar-custom-menu: Right-side navigation items
   
   Header height is 50px and content is offset by this amount via padding-top.
   On mobile, header becomes relative positioned and adjusts layout.
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100px;
    z-index: 1030;
}

.main-header .navbar {
    border: none;
    border-radius: 0;
    margin: 0;
    min-height: 50px;
    transition: margin-left 0.3s ease-in-out;
}

.main-header .navbar .nav > li > a > .label {
    position: absolute;
    top: 9px;
    right: 7px;
    font-size: 9px;
    padding: 2px 3px;
    line-height: 0.9;
    text-align: center;
}

.main-header .logo {
    float: left;
    height: 50px;
    width: 230px;
    position: relative; /* ensures .logo is the containing block */
    overflow: hidden;
    text-align: center;
}

.main-header .logo span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 20px;
    font-weight: 300;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #000;
    white-space: nowrap;
}

.main-header .logo img {
    max-height: 50px;
    max-width: 230px;
}

.main-header .logo:hover {
    text-decoration: none;
}

.main-header .sidebar-toggle {
    display: none;
    float: left;
    background-color: transparent;
    background-image: none;
    padding: 15px 15px;
    cursor: pointer;
}

.main-header .sidebar-toggle:focus,
.main-header .sidebar-toggle:active {
    background: transparent;
}

.main-header .sidebar-toggle .icon-bar {
    display: none;
}

.main-header .navbar-custom-menu {
    float: right;
}

/* ==========================================================================
   SIDEBAR STRUCTURE
   
   Fixed left sidebar navigation system:
   - .main-sidebar: Main sidebar container (230px wide, fixed position)
   - .sidebar: Inner sidebar content area
   - .sidebar-menu: Navigation menu list
   - .treeview-menu: Nested/dropdown menu items
   
   Sidebar features:
   - Fixed 230px width that matches header logo area
   - Transforms off-screen on mobile (< 768px)
   - Supports nested navigation with .treeview-menu
   - Smooth CSS transitions for show/hide
   - z-index: 810 to stay below header but above content
   
   Menu item structure:
   - > li > a: Main menu links with icon support
   - .treeview-menu: Nested submenu with indentation
   - .header: Section headers for menu organization
   ========================================================================== */
.main-sidebar {
    overflow: visible !important;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 50px;
    min-height: 100%;
    width: 230px;
    z-index: 810;
    -webkit-transition: -webkit-transform 0.3s ease-in-out, width 0.3s ease-in-out;
    -moz-transition: -moz-transform 0.3s ease-in-out, width 0.3s ease-in-out;
    -o-transition: -o-transform 0.3s ease-in-out, width 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

.sidebar {
    overflow: visible !important;
    position: relative;
    padding-bottom: 10px;
    position: relative;
    overflow: visible;
    z-index: 1000;
}

.sidebar-menu {
    overflow: visible !important;
    position: relative;
    list-style: none;
    margin-top: 10px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-menu > li {
    position: relative;
    margin: 5px 0;
    padding: 0;
}

.sidebar-menu > li > a {
    padding: 7px 0px 7px 15px;
    display: block;
    position: relative;
    text-decoration: none;
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
}

.sidebar-menu > li > a > .fa,
.sidebar-menu > li > a > .glyphicon,
.sidebar-menu > li > a > .ion {
    width: 20px;
}

.sidebar-menu > li .label,
.sidebar-menu > li .badge {
    margin-right: 5px;
}

.sidebar-menu > li .badge {
    margin-top: 3px;
}

.sidebar-menu li.header {
    padding: 10px 25px 10px 15px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: clip;
}

.sidebar-menu li > a > .fa-angle-left,
.sidebar-menu li > a > .pull-right-container > .fa-angle-left {
    width: auto;
    height: auto;
    padding: 0;
    margin-right: 10px;
}

.sidebar-menu li.active > a > .fa-angle-left,
.sidebar-menu li.active > a > .pull-right-container > .fa-angle-left {
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.sidebar-menu li.active > .treeview-menu {
    display: block;
}

.sidebar-menu .treeview-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 5px;
}

.sidebar-menu .treeview-menu .treeview-menu {
    padding-left: 20px;
}

.sidebar-menu .treeview-menu > li {
    margin: 5px 15px 0 0;
}

.sidebar-menu .treeview-menu > li > a {
    padding: 5px 5px 5px 15px;
    display: block;
    font-size: 11px;
    margin-left: 30px;
}

.sidebar-menu .treeview-menu > li > a > .fa,
.sidebar-menu .treeview-menu > li > a > .glyphicon,
.sidebar-menu .treeview-menu > li > a > .ion {
    width: 20px;
}

.sidebar-menu .treeview-menu > li > a > .pull-right-container > .fa-angle-left,
.sidebar-menu .treeview-menu > li > a > .pull-right-container > .fa-angle-down,
.sidebar-menu .treeview-menu > li > a > .fa-angle-left,
.sidebar-menu .treeview-menu > li > a > .fa-angle-down {
    width: auto;
}

.sidebar-menu .treeview-menu > li > a > span {
    text-decoration: none;
}

.sidebar-menu > li > .treeview-menu {
    margin: 0 1px;
}

.sidebar-menu li > a > .pull-right-container {
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -7px;
}

.sidebar-form > .input-group {
    margin: 10px 10px 0 10px;
}

.sidebar-form input[type="text"] {
    height: 31px;
}

.sidebar-form input:focus {
    border-color: transparent;
}

.sidebar-form,
.sidebar-menu > li.header {
    overflow: hidden;
    text-overflow: clip;
}

/* ==========================================================================
   UI COMPONENTS
   
   Reusable UI components for building dashboard interfaces:
   
   .small-box: Dashboard stat/metric boxes with icon and footer
   - .inner: Content area with padding
   - .small-box-footer: Action link at bottom
   - .icon: Large background icon (positioned absolutely)
   - Responsive: Icons hidden on mobile, center-aligned
   
   .info-box: Alternative info display box with flex layout
   
   .box: Main content container component
   - .box-header: Title area with optional tools
   - .box-body: Main content area
   - .box-footer: Action area at bottom
   - .box-tools: Action buttons in header (positioned absolute right)
   - .overlay: Loading state overlay with spinner
   - Supports .collapsed-box state to hide body/footer
   
   All components include box-shadow for depth and border-radius for modern look.
   ========================================================================== */
.small-box {
    border-radius: 2px;
    position: relative;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.small-box > .inner {
    padding: 10px;
}

.small-box > .small-box-footer {
    position: relative;
    text-align: center;
    padding: 3px 0;
    display: block;
    z-index: 10;
    background: rgba(0,0,0,0.1);
    text-decoration: none;
}

.small-box > .small-box-footer:hover {
    background: rgba(0,0,0,0.15);
}

.small-box h3 {
    font-size: 38px;
    font-weight: bold;
    margin: 0 0 10px 0;
    white-space: nowrap;
    padding: 0;
    z-index: 5px;
}

.small-box p {
    font-size: 15px;
    z-index: 5px;
}

.small-box p > small {
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

.small-box .icon {
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 0;
    font-size: 90px;
    color: rgba(0,0,0,0.15);
}

.small-box:hover {
    text-decoration: none;
}

.small-box:hover .icon {
    font-size: 95px;
}

.info-box {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.box {
    position: relative;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.box.collapsed-box .box-body,
.box.collapsed-box .box-footer {
    display: none;
}

.box-header:before,
.box-body:before,
.box-footer:before,
.box-header:after,
.box-body:after,
.box-footer:after {
    content: " ";
    display: table;
}

.box-header:after,
.box-body:after,
.box-footer:after {
    clear: both;
}

.box-header {
    display: block;
    padding: 10px;
    position: relative;
}

.box-header > .box-title {
    font-size: 16px;
    margin: 0;
    line-height: 1;
}

.box-header > .box-tools {
    position: absolute;
    right: 10px;
    top: 5px;
}

.box-header > .box-tools [data-toggle="tooltip"] {
    position: relative;
}

.btn-box-tool {
    padding: 5px;
    font-size: 12px;
    background: transparent;
}

.btn-box-tool.btn:active {
    box-shadow: none;
}

.box-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    padding: 10px;
}

.box-body > .table {
    margin-bottom: 0;
}

.box-footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top: 1px solid #f4f4f4;
    padding: 10px;
}

.box .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box .overlay .fa-refresh {
    font-size: 2em;
    animation: fa-spin 1s infinite linear;
}

.pickr {
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.pcr-button {
    width: 32px !important;
    height: 32px !important;
}

/* ==========================================================================
   DROPDOWN THEME COLORS
   ========================================================================== */
.dropdown-menu {
    box-shadow: none;
    border-color: #eee;
    background-color: #fff;
}

.dropdown-menu > li > a {
    color: #777;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

.dropdown-menu > li > a:hover {
    background-color: #e1e3e9;
    color: #333;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:focus,
.dropdown-menu > .active > a:hover {
    color: #fff;
    text-decoration: none;
    background-color: #337ab7;
    outline: 0;
}

.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:focus,
.dropdown-menu > .disabled > a:hover {
    color: #777;
}

.dropdown-menu .divider {
    background-color: #e5e5e5;
}

/* ==========================================================================
   MODAL THEME COLORS
   ========================================================================== */
.modal-content {
    background-color: #fff;
}

.tooltip-inner {
    color: #fff;
    background-color: #000;
}

.tooltip.top .tooltip-arrow {
    border-top-color: #000;
}

.tooltip.top-left .tooltip-arrow {
    border-top-color: #000;
}

.tooltip.top-right .tooltip-arrow {
    border-top-color: #000;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #000;
}

.tooltip.left .tooltip-arrow {
    border-left-color: #000;
}

.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #000;
}

.tooltip.bottom-left .tooltip-arrow {
    border-bottom-color: #000;
}

.tooltip.bottom-right .tooltip-arrow {
    border-bottom-color: #000;
}

/* ==========================================================================
   LOADING / SPINNER
   ========================================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay .loading-spinner {
    text-align: center;
    color: #fff;
    font-family: Arial, sans-serif;
}

.loading-overlay .loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
    font-size: 12px;
    margin: 5px 0 20px 0;
    list-style: none;
    padding: 7px 10px;
    background-color: #d2d6de;
    color: #444;
    border-radius: 2px;
}

.breadcrumbs li {
    display: inline;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin: 0 5px;
    color: #999;
}

.breadcrumbs a {
    text-decoration: none;
    color: #333;
}

.breadcrumbs a:hover {
    text-decoration: none;
}

/* ==========================================================================
   CHECKBOXES
   ========================================================================== */
.checkbox-btn {
    min-height: 40px;
    margin: 4px;
    border-radius: 4px;
    border: 1px solid #000000;
    overflow: hidden;
}
.checkbox-btn label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
.checkbox-btn label span {
    font-size: 16px;
    text-align: center;
    display: block;
    padding: 10px 0;
    margin: 0;
}
.checkbox-btn label input {
    position: absolute;
    display: none;
    color: #000 !important;
}
.checkbox-btn input:checked + span {
    color: #ffffff;
    background-color: #00b300;
}

/* ==========================================================================
   ALERT THEME COLORS
   ========================================================================== */
.alert a {
    color: #fff;
    text-decoration: underline;
}

.alert-success {
    background-color: #00a65a;
    border-color: #008d4c;
    color: #ffffff;
}

.alert-error {
    background-color: #dd4b39;
    border-color: #d73925;
    color: #ffffff;
}

.alert-warning {
    background-color: #f39c12;
    border-color: #e08e0b;
    color: #ffffff;
}

.alert-info {
    background-color: #013572;
    border-color: #00acd6;
    color: #ffffff;
}

/* ==========================================================================
   BACKGROUND COLOR UTILITIES
   
   Utility classes for applying brand colors as backgrounds:
   
   Base Rule:
   - [class^="bg-"]: All background classes get white text by default
   - .disabled: Reduced opacity (0.65) for disabled states
   
   Available Background Colors:
   - .bg-red: Error/danger states (#dd4b39)
   - .bg-yellow: Warning states (#f39c12) 
   - .bg-aqua: Info states (#013572) - brand info color
   - .bg-blue: Primary actions (#0073b7)
   - .bg-green: Success states (#00a65a)
   - .bg-navy: Dark accent (#001f3f)
   - .bg-orange: Attention/highlight (#ff851b)
   
   Usage: 
   - <div class="bg-green">Success message</div>
   - <span class="bg-red">Error badge</span>
   
   These utilities provide consistent brand colors across components
   and ensure proper text contrast with white text on colored backgrounds.
   ========================================================================== */
[class^="bg-"] {
    color: #ffffff !important;
}

[class^="bg-"].disabled {
    opacity: .65;
    filter: alpha(opacity=65);
}

.bg-red {
    background-color: #dd4b39 !important;
}

.bg-yellow {
    background-color: #f39c12 !important;
}

.bg-aqua {
    background-color: #013572 !important;
}

.bg-blue {
    background-color: #0073b7 !important;
}

.bg-green {
    background-color: #00a65a !important;
}

.bg-navy {
    background-color: #001f3f !important;
}

.bg-orange {
    background-color: #ff851b !important;
}

/* ==========================================================================
   LABELS & BADGES
   
   Small inline text indicators and status badges:
   
   .label: Bootstrap-style inline labels
   - Small pill-shaped indicators for status, categories, etc.
   - Supports different variants (default, primary, success, info, warning, danger)
   - Font size: 75% of parent, bold weight
   - Padding and border-radius for pill shape
   - Hide when empty with :empty selector
   - Special positioning when inside buttons (.btn .label)
   
   Usage: <span class="label label-primary">New</span>
   ========================================================================== */
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

a.label:focus,
a.label:hover {
    text-decoration: none;
    cursor: pointer;
}

.label:empty {
    display: none;
}

.btn .label {
    position: relative;
    top: -1px;
}

/* ==========================================================================
   ALERTS
   
   Notification and message components for user feedback:
   
   .alert: Base alert component
   - Padding and margin for content spacing
   - Border and border-radius for definition
   - .icon: Optional icon with right margin
   - Links styled to maintain contrast
   
   Alert types (colors defined in style.css):
   - .alert-success: Positive feedback (green)
   - .alert-error: Error messages (red) 
   - .alert-warning: Warning messages (orange)
   - .alert-info: Informational messages (blue)
   
   Usage: <div class="alert alert-success">Success message</div>
   ========================================================================== */

.alert {
    padding: 4px 15px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert .icon {
    margin-right: 10px;
}

/* ==========================================================================
   TABS & NAVIGATION
   
   Custom tab navigation system and general navigation components:
   
   .nav-tabs-custom: Enhanced tab navigation
   - Custom styling for tab containers with box-shadow
   - .nav-tabs: Tab header list
   - .tab-content: Tab panel content area
   - Active tab indicator with colored top border
   - Support for icons in tabs (.nav-tabs > li > a > i)
   - Dropdown support within tabs
   - .header: Special header items for organization
   
   Tab structure:
   - li: Tab items with 3px top border (transparent by default)
   - li.active: Active tab with colored border (color in style.css)
   - a: Tab links with hover states
   - .tab-pane: Individual tab content (hidden by default)
   - .active: Visible tab content
   
   Standard navigation:
   - .nav: Base navigation list
   - .nav-divider: Separator lines
   - Disabled states and hover effects
   ========================================================================== */

.nav-tabs-custom {
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    border-radius: 3px;
}

.nav-tabs-custom > .nav-tabs {
    margin: 0;
    border-bottom-color: #f4f4f4;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

.nav-tabs-custom > .nav-tabs > li {
    border-top: 3px solid transparent;
    margin-bottom: -2px;
    margin-right: 5px;
}

.nav-tabs-custom > .nav-tabs > li > a {
    border-radius: 0;
    text-align: center;
}

.nav-tabs-custom > .nav-tabs > li > a,
.nav-tabs-custom > .nav-tabs > li > a:hover {
    background: transparent;
    margin: 0;
    text-decoration: none;
}

.nav-tabs-custom > .nav-tabs > li > a > i {
    margin-bottom: 5px;
}

.nav-tabs-custom > .nav-tabs > li:not(.active) > a:hover,
.nav-tabs-custom > .nav-tabs > li:not(.active) > a:focus,
.nav-tabs-custom > .nav-tabs > li:not(.active) > a:active {
    border-color: transparent;
}

.nav-tabs-custom > .nav-tabs > li:first-of-type {
    margin-left: 0;
}

.nav-tabs-custom > .nav-tabs > li:first-of-type.active > a {
    border-left-color: transparent;
}

.nav-tabs-custom > .nav-tabs.pull-right {
    float: none !important;
}

.nav-tabs-custom > .nav-tabs.pull-right > li {
    float: right;
}

.nav-tabs-custom > .nav-tabs.pull-right > li:first-of-type {
    margin-right: 0;
}

.nav-tabs-custom > .nav-tabs.pull-right > li:first-of-type > a {
    border-left-width: 1px;
}

.nav-tabs-custom > .nav-tabs.pull-right > li:first-of-type.active > a {
    border-left-color: #f4f4f4;
    border-right-color: transparent;
}

.nav-tabs-custom > .nav-tabs > li.header {
    line-height: 35px;
    padding: 0 10px;
    font-size: 16px;
}

.nav-tabs-custom > .nav-tabs > li.header > .fa,
.nav-tabs-custom > .nav-tabs > li.header > .glyphicon,
.nav-tabs-custom > .nav-tabs > li.header > .ion {
    margin-right: 5px;
}

.nav-tabs-custom > .tab-content {
    padding: 10px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.nav-tabs-custom .dropdown.open > a:active,
.nav-tabs-custom .dropdown.open > a:focus {
    background: transparent;
}

.nav.nav-tabs > li.disabled {
    pointer-events: none;
}

/* ==========================================================================
   DROPDOWN MENUS
   ========================================================================== */

.dropdown {
    position: relative;
}

.dropdown-toggle:focus {
    outline: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.dropdown-menu.pull-right {
    right: 0;
    left: auto;
}

.dropdown-menu .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
}

.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    white-space: nowrap;
}

.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:focus,
.dropdown-menu > .disabled > a:hover {
    text-decoration: none;
    cursor: not-allowed;
    background-color: transparent;
    background-image: none;
    filter: progid: DXImageTransform.Microsoft.gradient(enabled=false);
}

.open > .dropdown-menu {
    display: block;
}

.open > a {
    outline: 0;
}

.pull-right > .dropdown-menu {
    right: 0;
    left: auto;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-top: 4px solid\9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* ==========================================================================
   FORM ELEMENTS
   
   Complete form styling system with consistent appearance across browsers:
   
   Base form elements:
   - button, input, select, textarea: Normalized styling
   - Consistent font inheritance and color
   - Proper box-sizing and cursor behavior
   - Browser-specific reset for various input types
   
   .form-control: Main input styling
   - 34px height with 6px/12px padding
   - Border with rounded corners (10px radius)
   - Focus states with blue border and box-shadow
   - Placeholder styling for all browsers
   - Disabled/readonly states
   - Transition effects for smooth interactions
   
   .form-group: Input grouping with consistent spacing (15px margin-bottom)
   
   Checkboxes and Radio buttons:
   - .checkbox, .radio: Block-level containers
   - Proper label association and positioning
   - .checkbox-inline, .radio-inline: Inline variants
   - Disabled state handling
   
   Responsive behavior:
   - Date/time inputs get proper line-height on WebKit
   - Small/large variants with .input-group-sm/lg
   ========================================================================== */

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffffff !important;
    color:#000000 !important;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font: inherit;
    color: inherit;
}

button {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, html input[type=button], input[type=reset], input[type=submit] {
    cursor: pointer;
}

button[disabled], html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

input {
    line-height: normal;
}

input[type=checkbox], input[type=radio] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    height: auto;
}

input[type=search] {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration {
    -webkit-appearance: none;
}

textarea {
    overflow: auto;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type=search] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

input[type=checkbox],
input[type=radio] {
    margin: 4px 0 0;
    margin-top: 1px\9;
    line-height: normal;
}

input[type=file] {
    display: block;
}

input[type=range] {
    display: block;
    width: 100%;
}

select[multiple],
select[size] {
    height: auto;
}

input[type=file]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.form-control::-moz-placeholder {
    opacity: 1;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    opacity: 1;
}

.form-control[disabled],
fieldset[disabled] .form-control {
    cursor: not-allowed;
}

textarea.form-control {
    height: auto;
}

.form-group {
    margin-bottom: 15px;
}

.checkbox,
.radio {
    position: relative;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
}

.checkbox label,
.radio label {
    min-height: 20px;
    padding-left: 20px;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox input[type=checkbox],
.checkbox-inline input[type=checkbox],
.radio input[type=radio],
.radio-inline input[type=radio] {
    position: absolute;
    margin-top: 4px\9;
    margin-left: -20px;
}

.checkbox + .checkbox,
.radio + .radio {
    margin-top: -5px;
}

.checkbox-inline,
.radio-inline {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 0;
    font-weight: 400;
    vertical-align: middle;
    cursor: pointer;
}

.checkbox-inline + .checkbox-inline,
.radio-inline + .radio-inline {
    margin-top: 0;
    margin-left: 10px;
}

fieldset[disabled] input[type=checkbox],
fieldset[disabled] input[type=radio],
input[type=checkbox].disabled,
input[type=checkbox][disabled],
input[type=radio].disabled,
input[type=radio][disabled] {
    cursor: not-allowed;
}

.checkbox-inline.disabled,
.radio-inline.disabled,
fieldset[disabled] .checkbox-inline,
fieldset[disabled] .radio-inline {
    cursor: not-allowed;
}

.checkbox.disabled label,
.radio.disabled label,
fieldset[disabled] .checkbox label,
fieldset[disabled] .radio label {
    cursor: not-allowed;
}

/* ==========================================================================
   BUTTON GROUPS
   ========================================================================== */

.btn-group,
.btn-group-vertical {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.btn-group-vertical > .btn,
.btn-group > .btn {
    position: relative;
    float: left;
}

.btn-group-vertical > .btn.active,
.btn-group-vertical > .btn:active,
.btn-group-vertical > .btn:focus,
.btn-group-vertical > .btn:hover,
.btn-group > .btn.active,
.btn-group > .btn:active,
.btn-group > .btn:focus,
.btn-group > .btn:hover {
    z-index: 2;
}

.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
    margin-left: -1px;
}

.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-radius: 0;
}

.btn-group > .btn:first-child {
    margin-left: 0;
}

.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group > .btn-group {
    float: left;
}

.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
    border-radius: 0;
}

.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
    outline: 0;
}

.btn-group > .btn + .dropdown-toggle {
    padding-right: 8px;
    padding-left: 8px;
}

.btn-group > .btn-lg + .dropdown-toggle {
    padding-right: 12px;
    padding-left: 12px;
}

.btn-group.open .dropdown-toggle {
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.btn-group.open .dropdown-toggle.btn-link {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.btn .caret {
    margin-left: 0;
}

.btn-lg .caret {
    border-width: 5px 5px 0;
    border-bottom-width: 0;
}

[data-toggle=buttons] > .btn input[type=checkbox],
[data-toggle=buttons] > .btn input[type=radio],
[data-toggle=buttons] > .btn-group > .btn input[type=checkbox],
[data-toggle=buttons] > .btn-group > .btn input[type=radio] {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

/* ==========================================================================
   INPUT GROUPS
   ========================================================================== */

.input-group {
    position: relative;
    display: table;
    border-collapse: separate;
}

.input-group[class*=col-] {
    float: none;
    padding-right: 0;
    padding-left: 0;
}

.input-group .form-control {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
}

.input-group .input-group-addon {
    border-radius: 0;
    border-color: #d2d6de;
}

.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
    height: 46px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border-radius: 6px;
}

select.input-group-lg > .form-control,
select.input-group-lg > .input-group-addon,
select.input-group-lg > .input-group-btn > .btn {
    height: 46px;
    line-height: 46px;
}

select[multiple].input-group-lg > .form-control,
select[multiple].input-group-lg > .input-group-addon,
select[multiple].input-group-lg > .input-group-btn > .btn,
textarea.input-group-lg > .form-control,
textarea.input-group-lg > .input-group-addon,
textarea.input-group-lg > .input-group-btn > .btn {
    height: auto;
}

.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

select.input-group-sm > .form-control,
select.input-group-sm > .input-group-addon,
select.input-group-sm > .input-group-btn > .btn {
    height: 30px;
    line-height: 30px;
}

select[multiple].input-group-sm > .form-control,
select[multiple].input-group-sm > .input-group-addon,
select[multiple].input-group-sm > .input-group-btn > .btn,
textarea.input-group-sm > .form-control,
textarea.input-group-sm > .input-group-addon,
textarea.input-group-sm > .input-group-btn > .btn {
    height: auto;
}

.input-group .form-control,
.input-group-addon,
.input-group-btn {
    display: table-cell;
}

.input-group .form-control:not(:first-child):not(:last-child),
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.input-group-addon,
.input-group-btn {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.input-group-addon {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group-addon input[type=checkbox],
.input-group-addon input[type=radio] {
    margin-top: 0;
}

.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group > .btn,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon:first-child {
    border-right: 0;
}

.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-addon:last-child {
    border-left: 0;
}

.input-group-btn {
    position: relative;
    font-size: 0;
    white-space: nowrap;
}

.input-group-btn > .btn {
    position: relative;
}

.input-group-btn > .btn + .btn {
    margin-left: -1px;
}

.input-group-btn > .btn:active,
.input-group-btn > .btn:focus,
.input-group-btn > .btn:hover {
    z-index: 2;
}

.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group {
    margin-right: -1px;
}

.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
    z-index: 2;
    margin-left: -1px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

.h1, .h2, .h3,
h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.h4, .h5, .h6,
h4, h5, h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.h1, h1 {
    font-size: 36px;
}

.h2, h2 {
    font-size: 30px;
}

.h3, h3 {
    font-size: 24px;
}

.h4, h4 {
    font-size: 18px;
}

.h5, h5 {
    font-size: 14px;
}

.h6, h6 {
    font-size: 12px;
}

.small, small {
    font-size: 85%;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.text-nowrap {
    white-space: nowrap;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.truncate-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==========================================================================
   GRID SYSTEM
   
   Bootstrap 3-style responsive grid system with 12-column layout:
   
   .row: Container for grid columns
   - Negative margins (-15px) to offset column padding
   - Clearfix to contain floated columns
   
   Column classes:
   - .col-xs-*: Extra small devices (< 768px) - always active
   - .col-sm-*: Small devices (≥ 768px)
   - .col-md-*: Medium devices (≥ 992px) 
   - .col-lg-*: Large devices (≥ 1200px)
   
   Column features:
   - 15px padding on left/right for gutters
   - Float left for horizontal layout
   - Width percentages: 1=8.33%, 2=16.67%, ..., 12=100%
   - Responsive: Only apply at specified breakpoint and up
   
   Column utilities:
   - .col-*-push-*: Move columns right
   - .col-*-pull-*: Move columns left  
   - .col-*-offset-*: Add left margin spacing
   
   Breakpoints:
   - xs: 0px+ (mobile first)
   - sm: 768px+ (tablet)
   - md: 992px+ (desktop)
   - lg: 1200px+ (large desktop)
   ========================================================================== */

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-xs-1,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-1,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9 {
    float: left;
}

.col-xs-12 {
    width: 100%;
}

.col-xs-11 {
    width: 91.66666667%;
}

.col-xs-10 {
    width: 83.33333333%;
}

.col-xs-9 {
    width: 75%;
}

.col-xs-8 {
    width: 66.66666667%;
}

.col-xs-7 {
    width: 58.33333333%;
}

.col-xs-6 {
    width: 50%;
}

.col-xs-5 {
    width: 41.66666667%;
}

.col-xs-4 {
    width: 33.33333333%;
}

.col-xs-3 {
    width: 25%;
}

.col-xs-2 {
    width: 16.66666667%;
}

.col-xs-1 {
    width: 8.33333333%;
}

.col-xs-pull-12 {
    right: 100%;
}

.col-xs-pull-11 {
    right: 91.66666667%;
}

.col-xs-pull-10 {
    right: 83.33333333%;
}

.col-xs-pull-9 {
    right: 75%;
}

.col-xs-pull-8 {
    right: 66.66666667%;
}

.col-xs-pull-7 {
    right: 58.33333333%;
}

.col-xs-pull-6 {
    right: 50%;
}

.col-xs-pull-5 {
    right: 41.66666667%;
}

.col-xs-pull-4 {
    right: 33.33333333%;
}

.col-xs-pull-3 {
    right: 25%;
}

.col-xs-pull-2 {
    right: 16.66666667%;
}

.col-xs-pull-1 {
    right: 8.33333333%;
}

.col-xs-pull-0 {
    right: auto;
}

.col-xs-push-12 {
    left: 100%;
}

.col-xs-push-11 {
    left: 91.66666667%;
}

.col-xs-push-10 {
    left: 83.33333333%;
}

.col-xs-push-9 {
    left: 75%;
}

.col-xs-push-8 {
    left: 66.66666667%;
}

.col-xs-push-7 {
    left: 58.33333333%;
}

.col-xs-push-6 {
    left: 50%;
}

.col-xs-push-5 {
    left: 41.66666667%;
}

.col-xs-push-4 {
    left: 33.33333333%;
}

.col-xs-push-3 {
    left: 25%;
}

.col-xs-push-2 {
    left: 16.66666667%;
}

.col-xs-push-1 {
    left: 8.33333333%;
}

.col-xs-push-0 {
    left: auto;
}

.col-xs-offset-12 {
    margin-left: 100%;
}

.col-xs-offset-11 {
    margin-left: 91.66666667%;
}

.col-xs-offset-10 {
    margin-left: 83.33333333%;
}

.col-xs-offset-9 {
    margin-left: 75%;
}

.col-xs-offset-8 {
    margin-left: 66.66666667%;
}

.col-xs-offset-7 {
    margin-left: 58.33333333%;
}

.col-xs-offset-6 {
    margin-left: 50%;
}

.col-xs-offset-5 {
    margin-left: 41.66666667%;
}

.col-xs-offset-4 {
    margin-left: 33.33333333%;
}

.col-xs-offset-3 {
    margin-left: 25%;
}

.col-xs-offset-2 {
    margin-left: 16.66666667%;
}

.col-xs-offset-1 {
    margin-left: 8.33333333%;
}

.col-xs-offset-0 {
    margin-left: 0;
}

@media (min-width: 768px) {
    .col-sm-1,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9 {
        float: left;
    }
    
    .col-sm-12 {
        width: 100%;
    }
    
    .col-sm-11 {
        width: 91.66666667%;
    }
    
    .col-sm-10 {
        width: 83.33333333%;
    }
    
    .col-sm-9 {
        width: 75%;
    }
    
    .col-sm-8 {
        width: 66.66666667%;
    }
    
    .col-sm-7 {
        width: 58.33333333%;
    }
    
    .col-sm-6 {
        width: 50%;
    }
    
    .col-sm-5 {
        width: 41.66666667%;
    }
    
    .col-sm-4 {
        width: 33.33333333%;
    }
    
    .col-sm-3 {
        width: 25%;
    }
    
    .col-sm-2 {
        width: 16.66666667%;
    }
    
    .col-sm-1 {
        width: 8.33333333%;
    }
    
    .col-sm-pull-12 {
        right: 100%;
    }
    
    .col-sm-pull-11 {
        right: 91.66666667%;
    }
    
    .col-sm-pull-10 {
        right: 83.33333333%;
    }
    
    .col-sm-pull-9 {
        right: 75%;
    }
    
    .col-sm-pull-8 {
        right: 66.66666667%;
    }
    
    .col-sm-pull-7 {
        right: 58.33333333%;
    }
    
    .col-sm-pull-6 {
        right: 50%;
    }
    
    .col-sm-pull-5 {
        right: 41.66666667%;
    }
    
    .col-sm-pull-4 {
        right: 33.33333333%;
    }
    
    .col-sm-pull-3 {
        right: 25%;
    }
    
    .col-sm-pull-2 {
        right: 16.66666667%;
    }
    
    .col-sm-pull-1 {
        right: 8.33333333%;
    }
    
    .col-sm-pull-0 {
        right: auto;
    }
    
    .col-sm-push-12 {
        left: 100%;
    }
    
    .col-sm-push-11 {
        left: 91.66666667%;
    }
    
    .col-sm-push-10 {
        left: 83.33333333%;
    }
    
    .col-sm-push-9 {
        left: 75%;
    }
    
    .col-sm-push-8 {
        left: 66.66666667%;
    }
    
    .col-sm-push-7 {
        left: 58.33333333%;
    }
    
    .col-sm-push-6 {
        left: 50%;
    }
    
    .col-sm-push-5 {
        left: 41.66666667%;
    }
    
    .col-sm-push-4 {
        left: 33.33333333%;
    }
    
    .col-sm-push-3 {
        left: 25%;
    }
    
    .col-sm-push-2 {
        left: 16.66666667%;
    }
    
    .col-sm-push-1 {
        left: 8.33333333%;
    }
    
    .col-sm-push-0 {
        left: auto;
    }
    
    .col-sm-offset-12 {
        margin-left: 100%;
    }
    
    .col-sm-offset-11 {
        margin-left: 91.66666667%;
    }
    
    .col-sm-offset-10 {
        margin-left: 83.33333333%;
    }
    
    .col-sm-offset-9 {
        margin-left: 75%;
    }
    
    .col-sm-offset-8 {
        margin-left: 66.66666667%;
    }
    
    .col-sm-offset-7 {
        margin-left: 58.33333333%;
    }
    
    .col-sm-offset-6 {
        margin-left: 50%;
    }
    
    .col-sm-offset-5 {
        margin-left: 41.66666667%;
    }
    
    .col-sm-offset-4 {
        margin-left: 33.33333333%;
    }
    
    .col-sm-offset-3 {
        margin-left: 25%;
    }
    
    .col-sm-offset-2 {
        margin-left: 16.66666667%;
    }
    
    .col-sm-offset-1 {
        margin-left: 8.33333333%;
    }
    
    .col-sm-offset-0 {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    .col-md-1,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9 {
        float: left;
    }
    
    .col-md-12 {
        width: 100%;
    }
    
    .col-md-11 {
        width: 91.66666667%;
    }
    
    .col-md-10 {
        width: 83.33333333%;
    }
    
    .col-md-9 {
        width: 75%;
    }
    
    .col-md-8 {
        width: 66.66666667%;
    }
    
    .col-md-7 {
        width: 58.33333333%;
    }
    
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-5 {
        width: 41.66666667%;
    }
    
    .col-md-4 {
        width: 33.33333333%;
    }
    
    .col-md-3 {
        width: 25%;
    }
    
    .col-md-2 {
        width: 16.66666667%;
    }
    
    .col-md-1 {
        width: 8.33333333%;
    }
    
    .col-md-pull-12 {
        right: 100%;
    }
    
    .col-md-pull-11 {
        right: 91.66666667%;
    }
    
    .col-md-pull-10 {
        right: 83.33333333%;
    }
    
    .col-md-pull-9 {
        right: 75%;
    }
    
    .col-md-pull-8 {
        right: 66.66666667%;
    }
    
    .col-md-pull-7 {
        right: 58.33333333%;
    }
    
    .col-md-pull-6 {
        right: 50%;
    }
    
    .col-md-pull-5 {
        right: 41.66666667%;
    }
    
    .col-md-pull-4 {
        right: 33.33333333%;
    }
    
    .col-md-pull-3 {
        right: 25%;
    }
    
    .col-md-pull-2 {
        right: 16.66666667%;
    }
    
    .col-md-pull-1 {
        right: 8.33333333%;
    }
    
    .col-md-pull-0 {
        right: auto;
    }
    
    .col-md-push-12 {
        left: 100%;
    }
    
    .col-md-push-11 {
        left: 91.66666667%;
    }
    
    .col-md-push-10 {
        left: 83.33333333%;
    }
    
    .col-md-push-9 {
        left: 75%;
    }
    
    .col-md-push-8 {
        left: 66.66666667%;
    }
    
    .col-md-push-7 {
        left: 58.33333333%;
    }
    
    .col-md-push-6 {
        left: 50%;
    }
    
    .col-md-push-5 {
        left: 41.66666667%;
    }
    
    .col-md-push-4 {
        left: 33.33333333%;
    }
    
    .col-md-push-3 {
        left: 25%;
    }
    
    .col-md-push-2 {
        left: 16.66666667%;
    }
    
    .col-md-push-1 {
        left: 8.33333333%;
    }
    
    .col-md-push-0 {
        left: auto;
    }
    
    .col-md-offset-12 {
        margin-left: 100%;
    }
    
    .col-md-offset-11 {
        margin-left: 91.66666667%;
    }
    
    .col-md-offset-10 {
        margin-left: 83.33333333%;
    }
    
    .col-md-offset-9 {
        margin-left: 75%;
    }
    
    .col-md-offset-8 {
        margin-left: 66.66666667%;
    }
    
    .col-md-offset-7 {
        margin-left: 58.33333333%;
    }
    
    .col-md-offset-6 {
        margin-left: 50%;
    }
    
    .col-md-offset-5 {
        margin-left: 41.66666667%;
    }
    
    .col-md-offset-4 {
        margin-left: 33.33333333%;
    }
    
    .col-md-offset-3 {
        margin-left: 25%;
    }
    
    .col-md-offset-2 {
        margin-left: 16.66666667%;
    }
    
    .col-md-offset-1 {
        margin-left: 8.33333333%;
    }
    
    .col-md-offset-0 {
        margin-left: 0;
    }
}

@media (min-width: 1200px) {
    .col-lg-1,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9 {
        float: left;
    }
    
    .col-lg-12 {
        width: 100%;
    }
    
    .col-lg-11 {
        width: 91.66666667%;
    }
    
    .col-lg-10 {
        width: 83.33333333%;
    }
    
    .col-lg-9 {
        width: 75%;
    }
    
    .col-lg-8 {
        width: 66.66666667%;
    }
    
    .col-lg-7 {
        width: 58.33333333%;
    }
    
    .col-lg-6 {
        width: 50%;
    }
    
    .col-lg-5 {
        width: 41.66666667%;
    }
    
    .col-lg-4 {
        width: 33.33333333%;
    }
    
    .col-lg-3 {
        width: 25%;
    }
    
    .col-lg-2 {
        width: 16.66666667%;
    }
    
    .col-lg-1 {
        width: 8.33333333%;
    }
    
    .col-lg-pull-12 {
        right: 100%;
    }
    
    .col-lg-pull-11 {
        right: 91.66666667%;
    }
    
    .col-lg-pull-10 {
        right: 83.33333333%;
    }
    
    .col-lg-pull-9 {
        right: 75%;
    }
    
    .col-lg-pull-8 {
        right: 66.66666667%;
    }
    
    .col-lg-pull-7 {
        right: 58.33333333%;
    }
    
    .col-lg-pull-6 {
        right: 50%;
    }
    
    .col-lg-pull-5 {
        right: 41.66666667%;
    }
    
    .col-lg-pull-4 {
        right: 33.33333333%;
    }
    
    .col-lg-pull-3 {
        right: 25%;
    }
    
    .col-lg-pull-2 {
        right: 16.66666667%;
    }
    
    .col-lg-pull-1 {
        right: 8.33333333%;
    }
    
    .col-lg-pull-0 {
        right: auto;
    }
    
    .col-lg-push-12 {
        left: 100%;
    }
    
    .col-lg-push-11 {
        left: 91.66666667%;
    }
    
    .col-lg-push-10 {
        left: 83.33333333%;
    }
    
    .col-lg-push-9 {
        left: 75%;
    }
    
    .col-lg-push-8 {
        left: 66.66666667%;
    }
    
    .col-lg-push-7 {
        left: 58.33333333%;
    }
    
    .col-lg-push-6 {
        left: 50%;
    }
    
    .col-lg-push-5 {
        left: 41.66666667%;
    }
    
    .col-lg-push-4 {
        left: 33.33333333%;
    }
    
    .col-lg-push-3 {
        left: 25%;
    }
    
    .col-lg-push-2 {
        left: 16.66666667%;
    }
    
    .col-lg-push-1 {
        left: 8.33333333%;
    }
    
    .col-lg-push-0 {
        left: auto;
    }
    
    .col-lg-offset-12 {
        margin-left: 100%;
    }
    
    .col-lg-offset-11 {
        margin-left: 91.66666667%;
    }
    
    .col-lg-offset-10 {
        margin-left: 83.33333333%;
    }
    
    .col-lg-offset-9 {
        margin-left: 75%;
    }
    
    .col-lg-offset-8 {
        margin-left: 66.66666667%;
    }
    
    .col-lg-offset-7 {
        margin-left: 58.33333333%;
    }
    
    .col-lg-offset-6 {
        margin-left: 50%;
    }
    
    .col-lg-offset-5 {
        margin-left: 41.66666667%;
    }
    
    .col-lg-offset-4 {
        margin-left: 33.33333333%;
    }
    
    .col-lg-offset-3 {
        margin-left: 25%;
    }
    
    .col-lg-offset-2 {
        margin-left: 16.66666667%;
    }
    
    .col-lg-offset-1 {
        margin-left: 8.33333333%;
    }
    
    .col-lg-offset-0 {
        margin-left: 0;
    }
}

/* ==========================================================================
   NAVIGATION STRUCTURE
   ========================================================================== */

.collapse {
    display: none;
}

tr.collapse.in {
    display: table-row;
}

tbody.collapse.in {
    display: table-row-group;
}

.nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav > li {
    position: relative;
    display: block;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.nav > li.disabled > a {
    cursor: not-allowed;
}

.nav .open > a,
.nav .open > a:focus,
.nav .open > a:hover {
    border-color: #337ab7;
}

.nav .nav-divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
}

.nav > li > a > img {
    max-width: none;
}

.nav-tabs {
    border-bottom: 1px solid #ddd;
}

.nav-tabs > li {
    float: left;
    margin-bottom: -1px;
}

.nav-tabs > li > a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    cursor: default;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}

.nav-tabs.nav-justified {
    width: 100%;
    border-bottom: 0;
}

.nav-tabs.nav-justified > li {
    float: none;
}

.nav-tabs.nav-justified > li > a {
    margin-bottom: 5px;
    text-align: center;
}

.nav-tabs.nav-justified > .dropdown .dropdown-menu {
    top: auto;
    left: auto;
}

@media (min-width: 768px) {
    .nav-tabs.nav-justified > li {
        display: table-cell;
        width: 1%;
    }
    
    .nav-tabs.nav-justified > li > a {
        margin-bottom: 0;
    }
}

.nav-tabs.nav-justified > li > a {
    margin-right: 0;
    border-radius: 4px;
}

.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:focus,
.nav-tabs.nav-justified > .active > a:hover {
    border: 1px solid #ddd;
}

@media (min-width: 768px) {
    .nav-tabs.nav-justified > li > a {
        border-bottom: 1px solid #ddd;
        border-radius: 4px 4px 0 0;
    }
    
    .nav-tabs.nav-justified > .active > a,
    .nav-tabs.nav-justified > .active > a:focus,
    .nav-tabs.nav-justified > .active > a:hover {
        border-bottom-color: #fff;
    }
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.nav-tabs .dropdown-menu {
    margin-top: -1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

@media (min-width: 768px) {
    .navbar {
        border-radius: 4px;
    }
    
    .navbar-header {
        float: left;
    }
}

.navbar-collapse {
    padding-right: 15px;
    padding-left: 15px;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid transparent;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.navbar-collapse.in {
    overflow-y: auto;
}

@media (min-width: 768px) {
    .navbar-collapse {
        width: auto;
        border-top: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    
    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
    }
    
    .navbar-collapse.in {
        overflow-y: visible;
    }
}

.container > .navbar-collapse,
.container > .navbar-header {
    margin-right: -15px;
    margin-left: -15px;
}

.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.navbar-toggle:focus {
    outline: 0;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
}

.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

.navbar-nav {
    margin: 7.5px -15px;
}

.navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
}

@media (max-width: 767px) {
    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    
    .navbar-nav .open .dropdown-menu .dropdown-header,
    .navbar-nav .open .dropdown-menu > li > a {
        padding: 5px 15px 5px 25px;
    }
    
    .navbar-nav .open .dropdown-menu > li > a {
        line-height: 20px;
    }
    
    .navbar-nav .open .dropdown-menu > li > a:focus,
    .navbar-nav .open .dropdown-menu > li > a:hover {
        background-image: none;
    }
}

@media (min-width: 768px) {
    .navbar-nav {
        float: left;
        margin: 0;
    }
    
    .navbar-nav > li {
        float: left;
    }
    
    .navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal {
    display: none;
}
.modal > .modal-dialog {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1000px;
    width: 80%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}  
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    outline: 0;
}
.modal-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #fff;
    cursor: move;
    user-select: none;
}
.modal-body {
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
}
.modal-header .modal-title {
    flex: 1;
    margin: 0;
    line-height: 1;
}
.modal-header > button {
    flex: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}
.modal-header > button:hover {
    color: #00BDB0
}
.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
}

.tooltip {
    position: absolute;
    z-index: 1070;
    display: block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    word-wrap: normal;
    white-space: normal;
    filter: alpha(opacity=0);
    opacity: 0;
    line-break: auto;
}

.tooltip.in {
    filter: alpha(opacity=90);
    opacity: .9;
}

.tooltip.top {
    padding: 5px 0;
    margin-top: -3px;
}

.tooltip.right {
    padding: 0 5px;
    margin-left: 3px;
}

.tooltip.bottom {
    padding: 5px 0;
    margin-top: 3px;
}

.tooltip.left {
    padding: 0 5px;
    margin-left: -3px;
}

.tooltip-inner {
    max-width: 200px;
    padding: 3px 8px;
    text-align: center;
    border-radius: 4px;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

.tooltip.top .tooltip-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0;
}

.tooltip.top-left .tooltip-arrow {
    right: 5px;
    bottom: 0;
    margin-bottom: -5px;
    border-width: 5px 5px 0;
}

.tooltip.top-right .tooltip-arrow {
    bottom: 0;
    left: 5px;
    margin-bottom: -5px;
    border-width: 5px 5px 0;
}

.tooltip.right .tooltip-arrow {
    top: 50%;
    left: 0;
    margin-top: -5px;
    border-width: 5px 5px 5px 0;
}

.tooltip.left .tooltip-arrow {
    top: 50%;
    right: 0;
    margin-top: -5px;
    border-width: 5px 0 5px 5px;
}

.tooltip.bottom .tooltip-arrow {
    top: 0;
    left: 50%;
    margin-left: -5px;
    border-width: 0 5px 5px;
}

.tooltip.bottom-left .tooltip-arrow {
    top: 0;
    right: 5px;
    margin-top: -5px;
    border-width: 0 5px 5px;
}

.tooltip.bottom-right .tooltip-arrow {
    top: 0;
    left: 5px;
    margin-top: -5px;
    border-width: 0 5px 5px;
}

.btn-group-vertical > .btn-group:after,
.btn-group-vertical > .btn-group:before,
.clearfix:after,
.clearfix:before,
.container-fluid:after,
.container-fluid:before,
.container:after,
.container:before,
.dl-horizontal dd:after,
.dl-horizontal dd:before,
.form-horizontal .form-group:after,
.form-horizontal .form-group:before,
.nav:after,
.nav:before,
.navbar-collapse:after,
.navbar-collapse:before,
.navbar-header:after,
.navbar-header:before,
.navbar:after,
.navbar:before,
.pager:after,
.pager:before,
.panel-body:after,
.panel-body:before,
.row:after,
.row:before {
    display: table;
    content: " ";
}

.clearfix:after,
.container-fluid:after,
.container:after,
.dl-horizontal dd:after,
.form-horizontal .form-group:after,
.nav:after,
.navbar-collapse:after,
.navbar-header:after,
.navbar:after,
.pager:after,
.panel-body:after,
.row:after {
    clear: both;
}

.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hidden-md {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .hidden-lg {
        display: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   
   Mobile-specific layout adjustments and responsive behavior:
   
   Mobile Layout (< 768px):
   - .small-box: Center-aligned with hidden icons, smaller text
   - .main-sidebar: Transform off-screen (-230px), show with .sidebar-open
   - Add extra padding-top to account for taller mobile header
   
   WebKit-specific fixes:
   - Date/time input line-height corrections for proper appearance
   - Different line-heights for small/large input groups
   
   Navbar responsive behavior:
   - .navbar-right: Dropdown menus align properly at different screen sizes
   - .navbar-right .dropdown-menu-left: Override for left-aligned dropdowns
   
   Visibility utilities:
   - .hidden-xs: Hide on extra small screens (< 768px)
   - .hidden-sm: Hide on small screens (768px - 991px)
   - .hidden-md: Hide on medium screens (992px - 1199px)  
   - .hidden-lg: Hide on large screens (≥ 1200px)
   
   Transition disabling:
   - body.* classes disable transitions for instant layout changes
   - Used during JavaScript-triggered layout modifications
   ========================================================================== */

@media (max-width: 767px) {
    .small-box {
        text-align: center;
    }
    
    .small-box .icon {
        display: none;
    }
    
    .small-box p {
        font-size: 12px;
    }
    
    .main-sidebar {
        padding-top: 100px;
        -webkit-transform: translate(-230px, 0);
        -ms-transform: translate(-230px, 0);
        -o-transform: translate(-230px, 0);
        transform: translate(-230px, 0);
    }
    
    .sidebar-open .main-sidebar {
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    /* Mobile header layout structure */
    .main-header {
        position: relative;
    }
    
    .main-header .logo,
    .main-header .navbar {
        width: 100%;
        float: none;
    }
    
    .main-header .navbar {
        margin: 0;
        text-align: center;
        min-height: auto;
    }
    
    .main-header .navbar-custom-menu {
        float: right;
    }
    
    .main-header .navbar-custom-menu .nav {
        float: none !important;
        display: inline-block !important;
    }
    
    .main-header .navbar-custom-menu .nav > li {
        float: none !important;
        display: inline-block !important;
    }
    
    .main-header .logo {
        float: none !important;
        display: block;
        width: auto !important;
        margin: 0 auto;
        text-align: center;
    }
    
    .main-header .sidebar-toggle {
        float: none !important;
        position: absolute;
        left: 0;
        top: 55%;
        transform: translateY(-50%);
        margin: 0;
        display: inline-block;
    }
}

@media (max-width: 991px) {
    .navbar-custom-menu .navbar-nav > li {
        float: left;
    }
    
    .navbar-custom-menu .navbar-nav {
        margin: 0;
        float: left;
    }
    
    .navbar-custom-menu .navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
        line-height: 20px;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type=date].form-control,
    input[type=time].form-control,
    input[type=datetime-local].form-control,
    input[type=month].form-control {
        line-height: 34px;
    }
    
    .input-group-sm input[type=date],
    .input-group-sm input[type=time],
    .input-group-sm input[type=datetime-local],
    .input-group-sm input[type=month] {
        line-height: 30px;
    }
    
    .input-group-lg input[type=date],
    .input-group-lg input[type=time],
    .input-group-lg input[type=datetime-local],
    .input-group-lg input[type=month] {
        line-height: 46px;
    }
}

@media (min-width: 768px) {
    .navbar-right .dropdown-menu {
        right: 0;
        left: auto;
    }
    
    .navbar-right .dropdown-menu-left {
        right: auto;
        left: 0;
    }
}

body.content-wrapper,
body.main-footer,
body.main-sidebar,
body.main-header .navbar,
body.main-header .logo {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

/* ==========================================================================
   BUTTON STRUCTURE
   
   All button layout, positioning, and structural styling.
   Colors and visual styling are defined in style.css.
   ========================================================================== */

.btn, a.btn {
    display: inline-block;
    padding: 6px;
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border-radius: 4px;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    border: 1px solid transparent;
    border-width: 1px;
    text-decoration: none;
}

.btn:not(:last-child) {
  margin-right: 0.5rem;
}

.btn.disabled, .btn[disabled] {
    cursor: not-allowed;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
}

a.btn.disabled, a.btn.disabled {
    pointer-events: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-block + .btn-block {
    margin-top: 5px;
}

input[type=button].btn-block, 
input[type=reset].btn-block, 
input[type=submit].btn-block {
    width: 100%;
}

.btn-box-tool {
    padding: 5px;
    font-size: 12px;
    background: transparent;
}

.btn-box-tool.btn:active {
    box-shadow: none;
}

/* ==========================================================================
   TABLE STRUCTURE
   
   All table layout, spacing, and structural styling.
   Colors and visual styling are defined in style.css.
   ========================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    margin-bottom: 10px;
}

table th[class*="col-"],
table td[class*="col-"] {
    float: none !important;
    width: auto !important;
    display: table-cell !important;
}

thead th {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    text-align: left;
}

tbody td {
    border-bottom: 1px solid transparent;
    padding: 10px;
}

table td:last-child {
    width: 1%;
    white-space: nowrap;
}

@media (max-width: 768px) {
  table { width: 100%; border-collapse: separate; border-spacing: 0; }
  thead { display: none; }

  table tbody td:last-child {
    text-align: left !important;
  }

  table td[align="center"],
  table th[align="center"],
  table td.text-center,
  table th.text-center,
  table td.text-align,
  table th.text-align {
    text-align: left !important;
  }

  tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
  }

  tbody td {
    display: block;
    padding: 6px 0 !important;
    border: 0 !important;
  }

  tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    display: inline-block;
    min-width: 120px; /* adjust to align labels */
    color: #444;
  }

  /* last column (Actions) special case */
  tbody td:last-child::before {
    display: block;
    margin-bottom: 6px;
  }

  tbody td .btn-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   MODAL THEME COLORS
   ========================================================================== */
.modal-content {
    background-color: #ffffff;
}
.tooltip-inner {
    color: #ffffff;
    background-color: #000000;
}
.tooltip.top .tooltip-arrow {
    border-top-color: #000000;
}
.tooltip.top-left .tooltip-arrow {
    border-top-color: #000000;
}
.tooltip.top-right .tooltip-arrow {
    border-top-color: #000000;
}
.tooltip.right .tooltip-arrow {
    border-right-color: #000000;
}
.tooltip.left .tooltip-arrow {
    border-left-color: #000000;
}
.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #000000;
}
.tooltip.bottom-left .tooltip-arrow {
    border-bottom-color: #000000;
}
.tooltip.bottom-right .tooltip-arrow {
    border-bottom-color: #000000;
}
.loading-overlay .loading-spinner {
    color: #ffffff;
}

/* ==========================================================================
   LABEL THEME COLORS
   ========================================================================== */
.label {
    color: #ffffff;
}
a.label:focus, a.label:hover {
    color: #ffffff;
}
.label-default {
    background-color: #777;
}
.label-default[href]:focus, .label-default[href]:hover {
    background-color: #5e5e5e;
}
.label-primary {
    background-color: var(--color-primary);
}
.label-primary[href]:focus, .label-primary[href]:hover {
    background-color: #286090;
}
.label-success {
    background-color: #5cb85c;
}
.label-success[href]:focus, .label-success[href]:hover {
    background-color: #449d44;
}
.label-info {
    background-color: #5bc0de;
}
.label-info[href]:focus, .label-info[href]:hover {
    background-color: #31b0d5;
}
.label-warning {
    background-color: #f0ad4e;
}
.label-warning[href]:focus, .label-warning[href]:hover {
    background-color: #ec971f;
}
.label-danger {
    background-color: #d9534f;
}
.label-danger[href]:focus, .label-danger[href]:hover {
    background-color: #c9302c;
}

/* ==========================================================================
   ALERT THEME COLORS
   ========================================================================== */
.alert a {
    color: #ffffff;
    text-decoration: underline;
}
.alert-success {
    background-color: #00a65a;
    border-color: #008d4c;
    color: #ffffff;
}
.alert-error {
    background-color: #dd4b39;
    border-color: #d73925;
    color: #ffffff;
}
.alert-warning {
    background-color: #f39c12;
    border-color: #e08e0b;
    color: #ffffff;
}
.alert-info {
    background-color: #013572;
    border-color: #00acd6;
    color: #ffffff;
}

/* ==========================================================================
   BACKGROUND COLOR UTILITIES
   ========================================================================== */
[class^="bg-"] {
    color: var(--color-white) !important;
}
[class^="bg-"].disabled {
    opacity: var(--opacity-disabled);
    filter: alpha(opacity=65);
}
.bg-red {
    background-color: #dd4b39 !important;
}
.bg-yellow {
    background-color: #f39c12 !important;
}
.bg-aqua {
    background-color: #013572 !important;
}
.bg-blue {
    background-color: #0073b7 !important;
}
.bg-green {
    background-color: #00a65a !important;
}
.bg-navy {
    background-color: #001f3f !important;
}
.bg-orange {
    background-color: #ff851b !important;
}

/* ==========================================================================
   TEXT COLOR UTILITIES
   ========================================================================== */
.text-muted {
    color: #777;
}

/* ==========================================================================
   DATETIME PICKER
   ========================================================================== */
/* No border/outline flash on load */
.hasDatepicker:focus {
  outline:none;
  border-color:#2b67ff;
  box-shadow:0 0 0 2px rgba(43,103,255,.25);
}
.hasDatepicker:focus-visible { outline:none; }

/* Popup panel */
.dtp-panel {
  background:#fff;
  border:1px solid #e8e9ee;
  border-radius:14px;
  padding:12px;
  width:300px;
  box-shadow:0 12px 30px rgba(16,24,40,.12);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  position:absolute;
  top:calc(100% + .4rem);
  left:0;
  z-index:9999;
  display:none;
}
.dtp-panel.open { display:block; }

/* Header */
.dtp-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.dtp-month { font-weight:600; letter-spacing:.2px; }
.dtp-btn {
  border:none;
  background:#f4f6fa;
  border-radius:8px;
  padding:6px 10px;
  cursor:pointer;
  transition:background .15s ease, transform .06s ease;
}
.dtp-btn:hover { background:#e9ecf5; }
.dtp-btn:active { transform:translateY(1px); }

/* Weekdays */
.dtp-dow {
  color:#8a93a1;
  font-size:12px;
  font-weight:600;
  text-align:center;
  text-transform:uppercase;
  padding:4px 0 6px;
}

/* Days */
.dtp-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}
.dtp-day {
  border:none;
  background:transparent;
  color:#1f2328;
  padding:8px 0;
  border-radius:10px;
  cursor:pointer;
  line-height:1;
  transition:background .15s ease,color .15s ease;
}
.dtp-day:hover { background:#f4f7ff; }
.dtp-day.muted { color:#b3bac6; }
.dtp-day.today { box-shadow:inset 0 0 0 1px #9bb9ff; border-radius:10px; }
.dtp-day.selected {
  background:#2b67ff;
  color:#fff;
  box-shadow:0 2px 6px rgba(43,103,255,.3);
}

/* Footer */
.dtp-footer { margin-top:10px; display:flex; flex-direction:column; gap:10px; }

/* Time box with spinners */
.dtp-timebox {
  display:flex;
  align-items:center;
  gap:.4rem;
  justify-content:center;
}
.dtp-time-part {
  display:flex;
  flex-direction:column;
  align-items:center;
}
.dtp-time-part input {
  width:2.5em;
  border:1px solid #e8e9ee;
  border-radius:6px;
  padding:4px;
  text-align:center;
  font-variant-numeric:tabular-nums;
  font-size:14px;
}
.dtp-time-part button {
  border:none;
  background:#f4f6fa;
  cursor:pointer;
  font-size:12px;
  line-height:1;
  width:100%;
  padding:2px 0;
  border-radius:4px;
  transition:background .15s ease;
}
.dtp-time-part button:hover { background:#e9ecf5; }

/* Action buttons */
.dtp-actions { display:flex; gap:.4rem; justify-content:flex-end; }
.dtp-actions .dtp-btn {
  background:#fff;
  border:1px solid #e8e9ee;
}
.dtp-actions .dtp-btn.primary {
  background:#2b67ff;
  border-color:#2b67ff;
  color:#fff;
  box-shadow:0 6px 14px rgba(43,103,255,.25);
}
.dtp-actions .dtp-btn.primary:hover { filter:brightness(1.05); }