/* ----------------------------
 *
 * Template Main - screen-sm
 *
 * --------------------------- */
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    #header.navbar.navbar-fixed-top {
        ~ #main {
            padding-top: @header-height-md;
        }
    }
    #header.navbar {
        ~ #main {
            padding-top: 0px;
        }
    }
    .sidebar.sidebar-left {
        ~ #main {
            padding-left: @sidebar-collapse-width;
        }
    }
}

/* ----------------------------
 *
 * Template Main - screen-md
 *
 * --------------------------- */
@media (min-width: @screen-md-min) {
    #main {
        padding-top: 0px;
    }
    .sidebar {
        &.sidebar-menu {
            + #main {
                padding-left: @sidebar-width;
            }
        }
    }
    #header.navbar {
        ~ #main {
            padding-top: 0px;
        }
    }
    #header.navbar{
        &.navbar-fixed-top {
            ~ #main {
                padding-top: @header-height-md;
            }
        }
    }

    /* Sidebar minimized  */
    .sidebar-minimized {
        #header.navbar.navbar-fixed-top {
            ~ #main {
                padding-top: @header-height-md;
            }
        }
        #header.navbar {
            ~ #main {
                padding-top: 0px;
            }
        }
        .sidebar.sidebar-left {
            ~ #main {
                padding-left: @sidebar-collapse-width;
            }
        }
    }
}