/* competences */

.common-frame.competences-frame { padding: 20px 40px; }

.common-frame.competences-frame { min-width: 900px; }

.competences-heading     { display: flex; align-items: center; }
.competences-heading > * { margin-right: 20px; }

.competences-heading > .message { color:#b73333; font-size: 14px; }

.competences-heading > .close     { margin: 0 0 0 auto; }
.competences-heading > .close > a { cursor: pointer; }


.competences-period                               { width: 200px; }


.competences-title .title  { font-size: 18px; font-weight: 600; white-space: nowrap; }
.competences-title .status { font-size: 14px; font-weight: normal; }
.competences-title .status.status-prev { color: #F83C3C; }
.competences-title .status.status-curr { color: #051E53; }
.competences-title .status.status-next { color: #657FAC; }

.competences-title .period-name:before       { content: ' /'; font-weight: normal; }
.competences-title .period-name:empty:before { display: none; }


.competences-block         { margin-top: 20px; display: flex; align-items: stretch; }
.competences-block > .side { width: 450px; border-right: 1px solid #D8DDE6; }
.competences-block > .main { width: calc(100% - 450px); }

.competences-block .student-subjects { position: sticky; top: 60px; }

.competences-block .students         ul.autocomplete { min-width: 100%; right: initial; width: initial; }
.competences-block .student-subjects ul.autocomplete { min-width: 100%; right: initial; width: initial; }

/* students list/card */

.competences-block .students                                { padding: 20px; }
.competences-block .students > .title                       { font-size: 16px; color: #051E53; line-height: 24px; }

.competences-block .students > .students-filter             { display: flex; justify-content: space-between; margin-top: 10px; }
.competences-block .students > .students-filter > div       { width: calc(33.33% - 10px); }
.competences-block .students > .students-filter > div label { font-size: 12px; color: #657FAC; line-height: 18px; margin-bottom: 5px; }

.competences-block .students .user-card                            { font-size: 0; }
.competences-block .students .user-card                            { display: flex; align-items: center; }
.competences-block .students .user-card > *                        { flex-grow: 1; flex-shrink: 1; }
.competences-block .students .user-card > .user-photo              { flex-grow: 0; flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: no-repeat center; background-size: cover; }
.competences-block .students .user-card > .user-info               { margin: 0 10px; }
.competences-block .students .user-card > .user-info > .user-name  { font-size: 14px; color: #657FAC; }
.competences-block .students .user-card > .user-info > .user-status{ font-size: 12px; color: #999; }
.competences-block .students .user-card > .user-status             { color: #999; width: 100px; text-align: right; }
.competences-block .students .user-card > .user-status > *         { display: inline-block; vertical-align: middle; line-height: 18px; }
.competences-block .students .user-card > .user-status span        { font-size: 12px; max-width: calc(100% - 8px - 16px); }
.competences-block .students .user-card > .user-status i           { font-size: 16px; width: 16px; height: 16px; text-align: center; margin-left: 8px; }
.competences-block .students .user-card > .user-status i           { background: no-repeat center center; background-size: contain; }

.competences-block .students .user-card > .status           { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.competences-block .students .user-card > .status > i       { display: block; font-size: 14px; width: 18px; text-align: center; }
.competences-block .students .user-card > .status > i.step0 { color: #CCCCCC; }
.competences-block .students .user-card > .status > i.step1 { color: #F83C3C; }
.competences-block .students .user-card > .status > i.step2 { color: #339900; }
.competences-block .students .user-card > .status > i.step3 { color: #228dcf; font-size: 18px; }




/* students list */

.competences-block .students > .students-list            { position: relative; overflow: auto; scrollbar-width: thin; max-height: 300px; margin-top: 20px; margin-right: -15px; padding-right: 15px; }
.competences-block .students > .students-list .user-item { display: block; font-size: 0; text-decoration: none; margin-bottom: 15px; }
.competences-block .students > .info                     { margin-top: 20px; font-size: 14px; color: #999; text-align: center; font-style: italic; }

.competences-block .students .user-card.small1 > .user-photo       { width: 27px; height: 27px; }
.competences-block .students .user-card.small1 > .user-info        { margin: 0 8px; }

/* student card */

.competences-block .students > .student-card             { position: relative; overflow: hidden; margin-top: 20px; }
.competences-block .students > .student-card > .close    { position: absolute; top: 0; right: 0; width: 24px; height: 24px; line-height: 24px; }
.competences-block .students > .student-card > .close    { display: block; color: #657FAC; font-size: 24px;text-align: center; text-decoration: none; }
.competences-block .students > .student-card > .close    { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.competences-block .students > .student-card .user-item  { font-size: 0; border: 1px solid #D8DDE6; border-radius: 5px; padding: 15px; }

.competences-block .students > .student-card .teachers-list                 { margin-top: 20px; }
.competences-block .students > .student-card .teachers-list > .teacher-item { margin-top: 10px; }

.competences-block .students .user-card.small2 > .user-photo             { width: 22px; height: 22px; }
.competences-block .students .user-card.small2 > .user-info              { width: calc(100% - 22px - 100px - 10px - 42px); margin: 0 5px; }
.competences-block .students .user-card.small2 > .user-info > .user-name { font-size: 12px; color: #657FAC; }

.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit             { margin-left: 20px; }
.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit > a         { display: block; width: 22px; height: 22px; line-height: 22px; text-align: center; }
.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit > a         { font-size: 16px; color: #228dcf; }
.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit > a > *     { display: inline-block; vertical-align: middle; }
.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit > a > .icon { width: 16px; height: 16px; background: url('/static/img/competences/unsubmit.svg') no-repeat center center; background-size: contain; }
.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit > a >  span { font-size: 14px; }

.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit     { pointer-events: none; opacity: 0.3; }
.competences-block .students .teacher-item .user-status           ~ .ctrl-action.unsubmit > a { color: #999999; }
.competences-block .students .teacher-item .user-status.submitted ~ .ctrl-action.unsubmit     { pointer-events: all; opacity: 1.0; }
.competences-block .students .teacher-item .user-status.submitted ~ .ctrl-action.unsubmit > a { color: #228dcf; }

.competences-block .students > .student-card .cycles-list          { margin-top: 10px; display: flex; align-items: stretch; flex-wrap: wrap; }
.competences-block .students > .student-card .cycles-item          { margin: 5px; padding: 5px; font-size: 14px; text-decoration: none; border: 1px solid #ccc; border-radius: 5px; }
.competences-block .students > .student-card .cycles-item          { background-color: #eee; color: #051E53; }
.competences-block .students > .student-card .cycles-item.selected { background-color: #051E53; color: #fff; }


.competences-block .students > .student-card .navigate                             { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.competences-block .students > .student-card .navigate > span                      { font-size: 12px; color: #051E53; }
.competences-block .students > .student-card .navigate > a                         { width: 160px; }
.competences-block .students > .student-card .navigate > a.disabled                { pointer-events: none; opacity: 0.5; }


/* student subjects */

.competences-block .student-subjects                              { padding: 20px; border-top: 1px solid #D8DDE6; }
.competences-block .student-subjects > .title                     { font-size: 16px; color: #051E53; line-height: 24px; }
.competences-block .student-subjects > .info                      { font-size: 14px; color: #999; text-align: center; font-style: italic; }

.competences-block .student-subjects > .subjects-list             { position: relative; overflow: auto; scrollbar-width: thin; margin-top: 20px; margin-right: -15px; padding-right: 15px; }
.competences-block .student-subjects > .subjects-list             { max-height: calc(100vh - 100px - 40px - 40px - 24px - 69px - 21px); }

.competences-block .student-subjects > .subjects-list .subjects-item                          { display: flex; align-items: center; }
.competences-block .student-subjects > .subjects-list .subjects-item                          { border-bottom: 1px solid #D8DDE6; }
.competences-block .student-subjects > .subjects-list .subjects-item                          { padding: 5px 10px; min-height: 40px; box-sizing: border-box; cursor: pointer; }
.competences-block .student-subjects > .subjects-list .subjects-item:first-of-type            { border-top: 1px solid #D8DDE6; }
.competences-block .student-subjects > .subjects-list .subjects-item                          { background-color: rgba(0,0,0,0.00); }
.competences-block .student-subjects > .subjects-list .subjects-item:hover                    { background-color: rgba(0,0,0,0.05); }
.competences-block .student-subjects > .subjects-list .subjects-item.selected                 { font-weight: bold; }
.competences-block .student-subjects > .subjects-list .subjects-item > .sbj-info              { flex-grow: 1; }
.competences-block .student-subjects > .subjects-list .subjects-item > .sbj-info > .sbj-title { font-size: 14px; line-height: 21px; color: #051E53; }
.competences-block .student-subjects > .subjects-list .subjects-item      > .sbj-sign         { flex-grow: 0; flex-shrink: 0; }
.competences-block .student-subjects > .subjects-list .subjects-item      > .sbj-sign         { display: none; font-size: 14px; min-width: 18px; text-align: center; color: #051E53; margin: 0 5px; }
.competences-block .student-subjects > .subjects-list .subjects-item.sign > .sbj-sign         { display: block; }
.competences-block .student-subjects > .subjects-list .subjects-item > .sbj-status > i        { display: block; font-size: 14px; width: 18px; text-align: center; }
.competences-block .student-subjects > .subjects-list .subjects-item > .sbj-status > i.step0  { color: #CCCCCC; }
.competences-block .student-subjects > .subjects-list .subjects-item > .sbj-status > i.step1  { color: #F83C3C; }
.competences-block .student-subjects > .subjects-list .subjects-item > .sbj-status > i.step2  { color: #339900; }
.competences-block .student-subjects > .subjects-list .subjects-item > .sbj-status > i.step3  { color: #228dcf; font-size: 18px; }



/* competence document */

.competences-block > .main > .document > .head                 { position: sticky; top: 60px; background-color: #fff; border-bottom: 1px solid #D8DDE6; z-index: 20; }
.competences-block > .main > .document > .head                 { padding: 15px 20px; min-height: 32px; text-align: right; }
.competences-block > .main > .document > .head                 { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.competences-block > .main > .document > .head > *             { flex-grow: 0; flex-shrink: 0; margin: 5px 0 5px 10px; }
.competences-block > .main > .document > .head > .title        { font-size: 16px; color: #051E53; line-height: 32px; margin-left: 0; margin-right: auto; }

.competences-block .document-save           > button             { display: none; }
.competences-block .document-save.do-save   > button.ctrl-save   { display: block; }
.competences-block .document-save.do-submit > button.ctrl-submit { display: block; }

.competences-block > .main > .document > .info                 { font-size: 14px; color: #999; text-align: center; font-style: italic; margin-top: 20px; }
.competences-block > .main > .document > .error                { font-size: 14px; color: #ef4949; text-align: center; font-style: italic; margin-top: 20px; }

.competences-block > .main > .document .pages                  { position: relative; overflow: auto; scrollbar-width: thin; }
.competences-block > .main > .document .pages > .page          { position: relative; width: 841pt; height: 595pt; margin: 20px auto; border: 1px solid #D8DDE6; box-shadow: 0 12px 12px 0 rgba(0,0,0,0.1); }
.competences-block > .main > .document .pages svg              { user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; }


.competence-input-frame                 { position: absolute; left: 0; top: 0; transform: translate(0, 0); }
.competence-input-frame .input          { border: none; padding: none; margin: none; color: #282828; background-color: #FFFDB9; }
.competence-input-frame .input          { width: 100%; font-size: 13px; line-height: 18px; height: 18px; }
.competence-input-frame .input:disabled { background-color: #ddd; }
.competence-input-frame.step1 .input    { color: #cf2222; }
.competence-input-frame.step2 .input    { color: #339900; }

.competence-input-frame.date            { z-index: 2; }

.competence-sign                        { position: absolute; left: 0; top: 0; transform: translate(0, 0); }
.competence-sign                        { background-color: #FFFDB9; cursor: pointer; overflow: hidden; }
.competence-sign.disabled               { background-color: #ddd; pointer-events: none; cursor: not-allowed; }
.competence-sign > img                  { display: block; width: 100%; height: 100%; pointer-events: none; object-fit: contain; }
.competence-sign > img[src=""]          { display: none; }
.competence-sign > canvas               { display: block; width: 590px; height: 200px; pointer-events: none; opacity: 0; }
.competence-sign.step1 > img            { filter: invert(12%) sepia(80%) saturate(5519%) hue-rotate(355deg) brightness(97%) contrast(84%); }
.competence-sign.step2 > img            { filter: invert(59%) sepia(49%) saturate(7370%) hue-rotate(69deg) brightness(94%) contrast(102%); }

.competence-sign          .classowl-signature  { background-color: inherit; width: 100%; height: 100%; }
.competence-sign.disabled .classowl-signature  { background-color: inherit; }
.competence-sign.disabled .classowl-signature > .classowl-signature-btn { display: none; }


.competence-checkbox                        { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }

.competence-checkbox input                  { display: none; }
.competence-checkbox label                  { user-select: none; cursor: pointer; padding: 0; font-size: 15px; font-weight: 600; line-height: 12px; }
.competence-checkbox label                  { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.competence-checkbox label                  { display: block; text-align: center; height: 12px; width: 12px;
    border: 1px solid #228dcf; border-radius: 2px; box-sizing: border-box;
    -webkit-transition: all 0.3s ease; transition: all 0.3s ease;
}
.competence-checkbox input         ~ label          { color: #228dcf; background-color: #FFFDB9; border-color: #228dcf; }
.competence-checkbox input:checked ~ label          { color: #fff; background-color: #337ab7; border-color: #337ab7; }
.competence-checkbox input:checked ~ label:before   { content: '×'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.competence-checkbox input:disabled         ~ label { color: #282828; background-color: #ddd; border-color: #aaa; cursor: default; }
.competence-checkbox input:checked:disabled ~ label { color: #282828; background-color: #ddd; border-color: #aaa; cursor: default; }

.competence-checkbox.step1 input         ~ label          { color: #cf2222; background-color: #FFFDB9; border-color: #cf2222; }
.competence-checkbox.step1 input:checked ~ label          { color: #fff; background-color: #b73333; border-color: #b73333; }
.competence-checkbox.step1 input:disabled         ~ label { color: #cf2222; background-color: #ddd; border-color: #aaa; cursor: default; }
.competence-checkbox.step1 input:checked:disabled ~ label { color: #cf2222; background-color: #ddd; border-color: #aaa; cursor: default; }

.competence-checkbox.step2 input         ~ label          { color: #5bce22; background-color: #FFFDB9; border-color: hsl(100, 72%, 47%); }
.competence-checkbox.step2 input:checked ~ label          { color: #fff; background-color: #5fb734; border-color: hsl(100, 56%, 46%); }
.competence-checkbox.step2 input:disabled         ~ label { color: #339900; background-color: #ddd; border-color: #aaa; cursor: default; }
.competence-checkbox.step2 input:checked:disabled ~ label { color: #339900; background-color: #ddd; border-color: #aaa; cursor: default; }


/* competences summary */

.competences-filter       { display: flex; flex-wrap: wrap; }
.competences-filter > div { margin: 0 10px 10px 0; }

.competences-filter > div                      { flex-grow: 0; flex-shrink: 1; }
.competences-filter > div.competences-legend   { flex-grow: 0; flex-shrink: 0; }

.competences-legend         { font-size: 14px; color: #999999; white-space: nowrap; }
.competences-legend         { display: flex; align-items: center; }
.competences-legend > div             { margin-left: 10px; line-height: 24px; }
.competences-legend > div:first-child { margin-left: 0; }
.competences-legend i       { margin-right: 3px; text-align: center; }
.competences-legend i.step1 { color: #F83C3C; }
.competences-legend i.step2 { color: #339900; }
.competences-legend i.step3 { color: #228dcf; font-size: 18px; }


.competences-summary .user-item       { padding: 10px 25px; border-bottom: 1px solid #e5e5e5; }
.competences-summary .user-item:hover { background-color: #f8f8f8; }

.competences-summary .user-item                { display: flex; align-items: center; }
.competences-summary .user-item > form         { flex-grow: 1; flex-shrink: 1; }
.competences-summary .user-item > .user-card   { flex-grow: 0; flex-shrink: 0; width: 200px; margin-right: auto; }
.competences-summary .user-item > .statuses    { flex-grow: 0; flex-shrink: 0; width: 390px; }
.competences-summary .user-item > .open-editor { flex-grow: 0; flex-shrink: 0; }
.competences-summary .user-item > .student-starred { flex-grow: 0; flex-shrink: 0; }

.competences-summary .user-item > form >            { margin: 0; padding: 0; display: block; }
.competences-summary .user-item > form > .user-card { margin: 0; padding: 0; background-color: transparent; border: none; cursor: pointer; }

.competences-summary .user-card                             { display: flex; align-items: center; }
.competences-summary .user-card > *                         { flex-grow: 1; flex-shrink: 1; }
.competences-summary .user-card > .user-photo               { flex-grow: 0; flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%; background: no-repeat center; background-size: cover; }
.competences-summary .user-card > .user-info                { margin: 0 8px; text-align: left; }
.competences-summary .user-card > .user-info > .user-name   { font-size: 14px; color: #657FAC; }
.competences-summary .user-card > .user-info > .user-status { font-size: 12px; color: #999; }

.competences-summary .statuses         { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.competences-summary .statuses a       { display: block; margin-left: 5px; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; }
.competences-summary .statuses a       { font-size: 12px; line-height: 30px; text-align: center; text-decoration: none; }
.competences-summary .statuses a:hover { background-color: #eee; }
.competences-summary .statuses a.step0 { border-color: #CCCCCC; color: #CCCCCC; }
.competences-summary .statuses a.step1 { border-color: #F83C3C; color: #F83C3C; }
.competences-summary .statuses a.step2 { border-color: #339900; color: #339900; }
.competences-summary .statuses a.step3 { border-color: #228dcf; color: #228dcf; }
.competences-summary .statuses i       { font-size: 18px; line-height: 30px; }

.competences-summary .ctrl-open        { display: block; font-size: 14px; margin: 0 20px; }

.parent-dashboard .competences-summary .ctrl-open { margin: 0; }


.competences-summary .student-starred         button         { display: none; border: none; background-color: transparent; font-size: 24px; cursor: pointer; }
.competences-summary .student-starred.status0 button.status0 { display: block; color: #cccccc; }
.competences-summary .student-starred.status1 button.status1 { display: block; color: #ffbc2d; }


.competences-summary .periods-item                { border: 1px solid #ccc; border-radius: 5px; padding: 10px; margin-bottom: 10px; }
.competences-summary .periods-item                { display: flex; align-items: center; flex-wrap: wrap; }
.competences-summary .periods-item > *            { flex-grow: 0; flex-shrink: 0; }
.competences-summary .periods-item > .period-card { flex-grow: 1; flex-shrink: 1; }
.competences-summary .periods-item > .details     { flex-grow: 1; flex-shrink: 1; }


.competences-summary .period-card .period-name { font-size: 14px; color: #657FAC; }
.competences-summary .period-card .user-status { font-size: 12px; color: #999; }

.competences-summary .details                   { width: 100%; margin-top: 10px; border-top: 1px solid #e5e5e5; padding: 0 10px; box-sizing: border-box; }
.competences-summary .details-item              { display: flex; align-items: center; padding: 5px 0; border-bottom: 1px solid #e5e5e5; }
.competences-summary .details-item > *          { flex-grow: 0; flex-shrink: 0; font-size: 12px; }
.competences-summary .details-item > .title     { flex-grow: 1; flex-shrink: 1; }
.competences-summary .details-item > .title     { width: 200px; color: #657FAC; margin-right: auto; }

.competences-summary .details-item > .step                   { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 120px; margin: 0 10px; }
.competences-summary .details-item > .step .t                { color: #282828; font-weight: bold; }
.competences-summary .details-item > .step .p.s1             { color: #F83C3C; }
.competences-summary .details-item > .step .p.s2             { color: #339900; }
.competences-summary .details-item > .step i                 { width: 12px; text-align: center; }
.competences-summary .details-item > .step i.fa-close        { color: #cccccc; }
.competences-summary .details-item > .step i.fa-close + span { color: #cccccc; }
.competences-summary .details-item > .step i.fa-check        { color: #339900; }
.competences-summary .details-item > .step i.fa-check + span { color: #282828; }
.competences-summary .details-item > .step .s                { width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }


.competences-summary .details-item > .link      { width: 60px; color: #228dcf; }


.competences-summary .ctrl-sign      { margin-left: 20px; width: 90px; }
.competences-summary .ctrl-edit      { margin-left: 20px; width: 90px; }
.competences-summary .ctrl-download  { margin-left: 10px; width: 34px; }
.competences-summary .ctrl-expand    { margin-left: 10px; width: 34px; }

.competences-summary .ctrl-expand    { display: flex; align-items: center; justify-content: center; }
.competences-summary .ctrl-expand    { height: 34px; width: 34px; color: #ccc; font-size: 20px; text-decoration: none; cursor: pointer; }

.competences-summary .periods-item          .ctrl-expand .ex0 { display: block; }
.competences-summary .periods-item          .ctrl-expand .ex1 { display: none; }
.competences-summary .periods-item.expanded .ctrl-expand .ex0 { display: none; }
.competences-summary .periods-item.expanded .ctrl-expand .ex1 { display: block; }

.competences-summary .periods-item          .details { display: none; }
.competences-summary .periods-item.expanded .details { display: block; }


.competences-summary .user-item-parent       { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.competences-summary .user-item-parent       { padding: 10px 15px 10px 25px; }
.competences-summary .user-item-parent       { border-bottom: 1px solid #e5e5e5; }
.competences-summary .user-item-parent:hover { background-color: #f8f8f8; }

.competences-summary .user-item-parent > .user-card   { flex-grow: 1; flex-shrink: 1; }
.competences-summary .user-item-parent > .open-editor { flex-grow: 0; flex-shrink: 0; }

.competences-summary .user-item-parent .ctrl-sign { max-width: 80px; margin-left: 0; }
.competences-summary .user-item-parent .ctrl-open { max-width: 80px; margin-left: 0; }
.competences-summary .user-item-parent .details   { margin-left: -5px; padding: 0; }

.competences-summary .user-item-parent          .ctrl-expand .ex0 { display: block; }
.competences-summary .user-item-parent          .ctrl-expand .ex1 { display: none; }
.competences-summary .user-item-parent.expanded .ctrl-expand .ex0 { display: none; }
.competences-summary .user-item-parent.expanded .ctrl-expand .ex1 { display: block; }

.competences-summary .user-item-parent          .details { display: none;}
.competences-summary .user-item-parent.expanded .details { display: block; }

.competences-summary .user-item-parent               > .ctrl-sign { display: none; }
.competences-summary .user-item-parent               > .ctrl-open { display: block; }
.competences-summary .user-item-parent.sign-required > .ctrl-sign { display: block; }
.competences-summary .user-item-parent.sign-required > .ctrl-open { display: none; }

.competences-summary .user-item-parent .details-item               > .ctrl-sign { display: none; }
.competences-summary .user-item-parent .details-item               > .ctrl-open { display: block; }
.competences-summary .user-item-parent .details-item.sign-required > .ctrl-sign { display: block; }
.competences-summary .user-item-parent .details-item.sign-required > .ctrl-open { display: none; }