.assignments                   { min-width: 600px; }

.assignments-filter            { margin-bottom: 20px; }
.assignments-filter ul.tabs    { display: block; text-align: center; margin-bottom: 20px; }

.search-wrapper                { float: left; }
.search-wrapper ul             { margin: 0; padding: 0; }
.search-wrapper li             { display: inline-block; }
.search-wrapper li:first-child { margin-right: 12px; }

.search-wrapper select {
    height: 100%;
    border: 1px solid #999999;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 2px;
    padding: 4px;
    font-size: 14px;
	line-height: 21px;
    width: 150px;
    color: #9e9e9e;
}

.search-wrapper .search { border: 1px solid #999999; border-radius: 2px; }

.search-wrapper li.search input[type=search] {
    border: none;
    background-color: rgba(255, 255, 255, 0);
    padding: 4px;
    font-size: 14px;
	line-height: 21px;
    width: 150px;
    font-size: 14px;
}

.search-wrapper .icon { color: #999999; font-size: 14px; padding: 6px; }
.search-wrapper input[type=search][placeholder] { font-style: italic; }
.search-wrapper input[type=submit] { position: absolute; width: 0; height: 0; padding: 0; border: 0; left: -9999px; }

.view-tile-list                      { float: right; font-size: 20px; text-align: right; }
.view-tile-list > ul                 { margin: 0; padding: 0; }
.view-tile-list > ul > li            { display: inline-block; padding-bottom: 5px; }
.view-tile-list > ul > li.selected   { border-bottom: 3px solid #ffbc2d; }
.view-tile-list > ul > li.selected a { color: #1f3c77; }
.view-tile-list li:first-child       { margin-right: 15px; }

.assignments .group-title        { position: relative; margin: 15px 0; text-align: center; color: #228dcf; font-size: 14px; }
.assignments .group-title:before { content: " "; position: absolute; height: 1px; top: 50%; left: 0; width: calc(50% - 60px); border-bottom: 1px solid #b7b7b7; }
.assignments .group-title:after  { content: " "; position: absolute; height: 1px; top: 50%; right: 0; width: calc(50% - 60px); border-bottom: 1px solid #b7b7b7; }

.assignments .item                          { position: relative; margin: 0 0 20px 0; padding: 15px 40px; min-height: 110px; }
.assignments .item:last-child               { margin-bottom: 0; }
.assignments .item                          { background-color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.assignments .item .picture                 { float: left; width: 70px; height: 70px; margin-top: 5px; }
.assignments .item .inner-text              { margin: 0 320px 0 90px; min-height: 80px; }
.assignments .item .title                   { font-size: 18px; line-height: 27px; }
.assignments .item .sub-title               { line-height: 18px; font-weight: 600; font-size: 12px; color: #999; margin: 8px 0; }
.assignments .item .extra                   { font-size: 12px; font-weight: 600; color: #228dcf; line-height: 18px; text-transform: uppercase; }
.assignments .item .extra > span            { display: inline-block; margin-right: 25px; white-space: nowrap; }
.assignments .item .extra > span:last-child { margin-right: 0; }
.assignments .item .extra > span.expired    { color: #ef4949; }

.assignments .item.lesson                   { padding: 0; min-height: 0; }
.assignments .item.lesson > .inner-item     { position: relative; padding: 15px 40px; min-height: 110px; cursor: pointer; }

.assignments .item .expand                  { position: absolute; left: 5px; top: 40px; width: 30px; height: 30px;}
.assignments .item .expand                  { line-height: 30px; text-align: center; font-size: 18px; color: #228dcf; }
.assignments .item .collapse                { position: absolute; left: 5px; top: 40px; width: 30px; height: 30px;}
.assignments .item .collapse                { line-height: 30px; text-align: center; font-size: 18px; color: #228dcf; }

.assignments .item.lesson          .expand   { display: block; }
.assignments .item.lesson.expanded .expand   { display: none; }
.assignments .item.lesson          .collapse { display: none; }
.assignments .item.lesson.expanded .collapse { display: block; }

.assignments .item.lesson          > .subitems { position: relative; overflow: hidden; font-size: 12px; }
.assignments .item.lesson          > .subitems { max-height: 0; border-top: 0px solid transparent; overflow: auto; }
.assignments .item.lesson.expanded > .subitems { max-height: 2000px; border-top: 1px solid #999; overflow: auto; }

.assignments .item.subitem                    { margin-bottom: 0; padding: 5px 40px; min-height: 0; position: relative; }
.assignments .item.subitem                    { background-color: transparent; box-shadow: none; }
.assignments .item.subitem .picture           { width: 45px; height: 45px; }
.assignments .item.subitem .inner-text        { margin-left: 55px; min-height: 55px; }
.assignments .item.subitem .title             { font-size: 16px; line-height: 24px; }
.assignments .item.subitem .sub-title         { display: inline-block; margin: 10px 0 5px; margin-right: 20px; }

.assignments .item.subitem:before             { content: ''; position: absolute; z-index: 2; left: 19px; top: 32.5px; height: 100%; width: 2px; background-color: #228dcf; }
.assignments .item.subitem:last-child:before  { display: none; }

.assignments .item.subitem:after             { content: ''; position: absolute; z-index: 3; left: 20px; top: 32.5px; transform: translate(-50%, -50%); overflow: hidden; }
.assignments .item.subitem.asg-do:after      { height: 10px; width: 10px; border: 2px solid #228dcf; border-radius: 50%; background: #fff; }
.assignments .item.subitem.asg-doing:after   { width: 14px; height: 14px; border-radius: 50%; background: #fff url('/static/img/icon/asg-doing.svg') no-repeat center center; background-size: cover; box-shadow: 0 0 1px 2px #fff; }
.assignments .item.subitem.asg-done:after    { width: 14px; height: 14px; border-radius: 50%; background: #50b845 url('/static/img/icon/check-w.png') no-repeat center center; background-size: cover; box-shadow: 0 0 1px 2px #fff; }


.assignments .item .ctrls                                 { position: absolute; top: 35px; right: 30px; text-align: right; font-size: 0; }
.assignments .item .ctrls > *                             { display: inline-block; vertical-align: middle; margin-left: 10px; }
.assignments .item .ctrls .assignment-type > *            { display: inline-block; vertical-align: middle; }
.assignments .item .ctrls .assignment-type .icon-asg-type { width: 32px; height: 32px; border-radius: 3px; background-color: #5c96ff; box-shadow: 0 4px 4px rgba(0,0,0,0.3); }
.assignments .item .ctrls .assignment-type .asg-type-text { margin-right: 10px; line-height: 35px; color: #999999; font-size: 14px; }
.assignments .item .ctrls .printing                       { font-size: 18px; width: 32px; height: 32px; border-radius: 3px; background: #999999 url('/static/img/teacher-editor/print.png') center center no-repeat; background-size: contain; box-shadow: 0 4px 4px rgba(0,0,0,0.3); }
.assignments .item .ctrls .button                         { width: 150px; }

.assignments .item.subitem .ctrls                         { top: 15px; }

@media screen and (max-width: 1200px) {
	.assignments .item .inner-text            { margin: 0 150px 0 90px; }
    .assignments .item .ctrls                 { top: 15px; }
	.assignments .item .ctrls .button         { display: block; margin: 10px 0 0 auto; }
    .assignments .item.subitem .ctrls .button { display: inline-block; width: 108px; margin: 0 0 0 10px; }
}


.assignments.library .item               { display: inline-block; width: 200px; margin: 13px 22px; padding: 0; vertical-align: top; }
.assignments.library .item               { background-color: transparent; box-shadow: none; }
.assignments.library .item .picture      { float: none; display: block; width: 100%; height: 238px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.assignments.library .item .inner-text   { margin: 10px 0 0 0; width: 100%;  text-align: center; }
.assignments.library .item .title        { font-size: 18px; }
.assignments.library .item .title > a    { display: block; }
.assignments.library .item .sub-title    { text-align: center; }
.assignments.library .item .extra > span { margin: 3px 0; padding: 0; }
.assignments.library .item .button       { position: static; top: auto; right: auto; margin-top: 10px; }

.assignments .item.important          { background-color: #fcdbdb; }
.assignments .item.important .picture { background-color: #ef4949; opacity: 0.7; }
.assignments .item.important .button  { background-color: #ef4949; }

.assignments.library .item.important          { background-color: transparent; }
.assignments.library .item.important .picture { background-color: #ef4949 !important; opacity: 0.7; }
.assignments.library .item.important .button  { background-color: #ef4949; }

.assignments .item.subitem.asg-done .extra > span { color: #50b845; }
.assignments .item.subitem.asg-done .button       { background-color: #50b845; }

.assignments .item.important.lesson.expanded > .subitems { border-top: 1px solid #ef4949; }

.assignments .item.important .expand                   { color: #ef4949; }
.assignments .item.important .collapse                 { color: #ef4949; }

.assignments .item.important .item.subitem:before            { background-color: #ef4949; }

.assignments .item.important .item.subitem.asg-do:after      { border: 2px solid #ef4949; }
.assignments .item.important .item.subitem.asg-doing:after   { box-shadow: 0 0 1px 2px #fcdbdb; }
.assignments .item.important .item.subitem.asg-done:after    { box-shadow: 0 0 1px 2px #fcdbdb; }
