/*
|--------------------------------------------------------------------------
| SmartCo CRM - Learning & Assessment
|--------------------------------------------------------------------------
| Marking workspace styling.
*/

.smartco-marking {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 1180px;
    margin-left: 0;
    margin-right: auto;
    justify-self: start;
}

.smartco-marking__intro,
.smartco-marking__card,
.smartco-marking__notice {
    background: #ffffff;
    border: 1px solid #d9e0e5;
}

.smartco-marking__intro {
    padding: 18px 22px;
}

.smartco-marking__intro h2 {
    margin: 0 0 4px;
    color: #153246;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.smartco-marking__intro p {
    margin: 0;
    color: #465b6a;
    font-size: 13.5px;
    line-height: 1.5;
}

.smartco-marking__notice {
    padding: 11px 14px;
    color: #263746;
    font-size: 13px;
}

.smartco-marking__notice--success {
    border-left: 4px solid #168447;
}

.smartco-marking__notice--error {
    border-left: 4px solid #c9302c;
}

.smartco-marking__card {
    overflow: hidden;
}

.smartco-marking__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid #dfe5e9;
}

.smartco-marking__student {
    margin: 0;
    color: #1d3241;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.smartco-marking__assignment {
    margin-top: 4px;
    color: #526675;
    font-size: 13px;
}

.smartco-marking__status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid #cbd6dd;
    background: #f7f9fa;
    color: #294151;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.smartco-marking__meta {
    display: grid;
    grid-template-columns: 1.5fr .75fr 1fr 1fr;
    border-bottom: 1px solid #dfe5e9;
}

.smartco-marking__meta-item {
    min-width: 0;
    padding: 13px 18px;
    border-right: 1px solid #dfe5e9;
}

.smartco-marking__meta-item:last-child {
    border-right: 0;
}

.smartco-marking__label {
    margin-bottom: 4px;
    color: #526675;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.smartco-marking__value {
    color: #213746;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.smartco-marking__info {
    display: grid;
    grid-template-columns: 2.25fr 2fr;
}

.smartco-marking__section {
    padding: 16px 22px;
    border-bottom: 1px solid #dfe5e9;
}

.smartco-marking__info .smartco-marking__section {
    border-right: 1px solid #dfe5e9;
}

.smartco-marking__info .smartco-marking__section:nth-child(2n) {
    border-right: 0;
}

.smartco-marking__section-title {
    margin: 0 0 6px;
    color: #243b4a;
    font-size: 13px;
    font-weight: 600;
}

.smartco-marking__text {
    color: #405564;
    font-size: 13px;
    line-height: 1.55;
}

.smartco-marking__files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.smartco-marking__file {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #bdd1df;
    background: #f4f8fb;
    color: #004e8c;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.smartco-marking__file:hover {
    background: #eaf3f9;
    border-color: #94b8cf;
}

.smartco-marking__form {
    padding: 18px 22px 20px;
}

.smartco-marking__form-heading {
    margin-bottom: 14px;
}

.smartco-marking__form-heading h3 {
    margin: 0 0 3px;
    color: #1f3544;
    font-size: 15px;
    font-weight: 600;
}

.smartco-marking__form-heading p {
    margin: 0;
    color: #526675;
    font-size: 12.5px;
}

.smartco-marking__decision-row {
    display: grid;
    grid-template-columns: 260px 260px;
    gap: 14px;
    margin-bottom: 15px;
}

.smartco-marking__notes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.smartco-marking__field {
    display: grid;
    gap: 5px;
}

.smartco-marking__field label {
    color: #273e4d;
    font-size: 12.5px;
    font-weight: 600;
}

.smartco-marking__field input,
.smartco-marking__field select,
.smartco-marking__field textarea {
    width: 100%;
    border: 1px solid #c7d2da;
    border-radius: 0;
    background: #ffffff;
    color: #213746;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-shadow: none;
}

.smartco-marking__field input,
.smartco-marking__field select {
    min-height: 38px;
}

.smartco-marking__field textarea {
    min-height: 105px;
    resize: vertical;
}

.smartco-marking__field input:focus,
.smartco-marking__field select:focus,
.smartco-marking__field textarea:focus {
    border-color: #548daf;
    box-shadow: 0 0 0 1px #548daf;
}

.smartco-marking__field-help {
    color: #647784;
    font-size: 11.5px;
    line-height: 1.4;
}

.smartco-marking__resubmission {
    margin-top: 14px;
    border: 1px solid #dde4e8;
    background: #fafbfc;
}

.smartco-marking__resubmission summary {
    padding: 10px 12px;
    color: #354b59;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.smartco-marking__resubmission-body {
    padding: 0 12px 12px;
}

.smartco-marking__resubmission textarea {
    min-height: 76px;
}

.smartco-marking__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dfe5e9;
}

.smartco-marking__button {
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.smartco-marking__button--save {
    border: 1px solid #becbd3;
    background: #f3f5f6;
    color: #2d4352;
}

.smartco-marking__button--release {
    border: 1px solid #004e8c;
    background: #004e8c;
    color: #ffffff;
}

.smartco-marking__button--resubmit {
    border: 1px solid #d7a45f;
    background: #fff8ef;
    color: #7b4300;
}

.smartco-marking__empty {
    padding: 24px 22px;
}

.smartco-marking__empty-title {
    color: #213746;
    font-size: 14px;
    font-weight: 600;
}

.smartco-marking__empty-text {
    margin-top: 4px;
    color: #526675;
    font-size: 13px;
}

@media (max-width: 900px) {
    .smartco-marking__meta {
        grid-template-columns: 1fr 1fr;
    }

    .smartco-marking__meta-item:nth-child(2) {
        border-right: 0;
    }

    .smartco-marking__meta-item:nth-child(-n+2) {
        border-bottom: 1px solid #dfe5e9;
    }

    .smartco-marking__info,
    .smartco-marking__notes-row {
        grid-template-columns: 1fr;
    }

    .smartco-marking__info .smartco-marking__section {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .smartco-marking__header {
        display: block;
    }

    .smartco-marking__status {
        margin-top: 10px;
    }

    .smartco-marking__meta {
        grid-template-columns: 1fr;
    }

    .smartco-marking__meta-item {
        border-right: 0;
        border-bottom: 1px solid #dfe5e9;
    }

    .smartco-marking__meta-item:last-child {
        border-bottom: 0;
    }

    .smartco-marking__decision-row {
        grid-template-columns: 1fr;
    }

    .smartco-marking__header,
    .smartco-marking__section,
    .smartco-marking__form,
    .smartco-marking__intro {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* SMARTCO MY LEARNING START */

.smartco-learning {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 1180px;
    margin-left: 0;
    margin-right: auto;
    justify-self: start;
}

.smartco-learning__hero,
.smartco-learning__programme,
.smartco-learning__assignment,
.smartco-learning__empty,
.smartco-learning__notice {
    background: #ffffff;
    border: 1px solid #d9e0e5;
}

.smartco-learning__hero {
    padding: 20px 22px;
}

.smartco-learning__hero h1 {
    margin: 0 0 4px;
    color: #004e8c;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.smartco-learning__hero p {
    margin: 0;
    color: #465b6a;
    font-size: 13px;
    line-height: 1.5;
}

.smartco-learning__programme {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
}

.smartco-learning__programme-item {
    padding: 15px 18px;
    border-right: 1px solid #dfe5e9;
}

.smartco-learning__programme-item:last-child {
    border-right: 0;
}

.smartco-learning__label {
    margin-bottom: 4px;
    color: #526675;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.smartco-learning__value {
    color: #213746;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.smartco-learning__section-heading {
    margin: 3px 0 -2px;
    color: #203746;
    font-size: 16px;
    font-weight: 600;
}

.smartco-learning__assignment {
    overflow: hidden;
}

.smartco-learning__assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid #dfe5e9;
}

.smartco-learning__assignment-number {
    margin-bottom: 3px;
    color: #647784;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.smartco-learning__assignment h2 {
    margin: 0;
    color: #1f3544;
    font-size: 17px;
    font-weight: 600;
}

.smartco-learning__code {
    margin-top: 4px;
    color: #526675;
    font-size: 12.5px;
}

.smartco-learning__status {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid #cad5dc;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.smartco-learning__status--released {
    border-color: #b7d9c5;
    background: #f2faf5;
    color: #176536;
}

.smartco-learning__status--resubmit {
    border-color: #e3c38f;
    background: #fff9ef;
    color: #804800;
}

.smartco-learning__status--active {
    border-color: #bdd1df;
    background: #f3f8fb;
    color: #004e8c;
}

.smartco-learning__status--neutral {
    background: #f7f9fa;
    color: #405564;
}

.smartco-learning__assignment-info {
    display: grid;
    grid-template-columns: 2.25fr 2fr;
    border-bottom: 1px solid #dfe5e9;
}

.smartco-learning__info-block {
    padding: 15px 22px;
    border-right: 1px solid #dfe5e9;
}

.smartco-learning__info-block:last-child {
    border-right: 0;
}

.smartco-learning__info-title {
    margin-bottom: 6px;
    color: #243b4a;
    font-size: 12.5px;
    font-weight: 600;
}

.smartco-learning__text {
    color: #405564;
    font-size: 13px;
    line-height: 1.55;
}

.smartco-learning__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #dfe5e9;
}

.smartco-learning__meta-item {
    padding: 13px 18px;
    border-right: 1px solid #dfe5e9;
}

.smartco-learning__meta-item:last-child {
    border-right: 0;
}

.smartco-learning__result {
    margin: 18px 22px;
    border: 1px solid #c9ddd1;
    background: #f7fbf8;
}

.smartco-learning__result-heading {
    padding: 11px 14px;
    border-bottom: 1px solid #d5e5da;
    color: #185d35;
    font-size: 13px;
    font-weight: 600;
}

.smartco-learning__result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.smartco-learning__result-grid > div {
    padding: 13px 14px;
    border-right: 1px solid #d5e5da;
}

.smartco-learning__result-grid > div:last-child {
    border-right: 0;
}

.smartco-learning__result-value {
    color: #176536;
    font-size: 18px;
    font-weight: 700;
}

.smartco-learning__feedback {
    padding: 13px 14px;
    border-top: 1px solid #d5e5da;
}

.smartco-learning__resubmit-box {
    margin: 18px 22px;
    padding: 14px;
    border: 1px solid #e3c38f;
    background: #fffaf2;
}

.smartco-learning__response-title {
    margin-bottom: 6px;
    color: #754200;
    font-size: 13px;
    font-weight: 600;
}

.smartco-learning__files-section {
    padding: 0 22px 18px;
}

.smartco-learning__files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.smartco-learning__file {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #bdd1df;
    background: #f4f8fb;
    color: #004e8c;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.smartco-learning__history {
    margin: 0 22px 18px;
    border: 1px solid #dfe5e9;
    background: #fafbfc;
}

.smartco-learning__history summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #304755;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.smartco-learning__history summary span {
    color: #71808d;
    font-weight: 500;
}

.smartco-learning__history-body {
    border-top: 1px solid #dfe5e9;
}

.smartco-learning__history-row {
    display: grid;
    grid-template-columns: 150px 150px 1fr;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e4e9ec;
}

.smartco-learning__history-row:last-child {
    border-bottom: 0;
}

.smartco-learning__history-version {
    color: #213746;
    font-size: 12.5px;
    font-weight: 600;
}

.smartco-learning__history-date,
.smartco-learning__history-status,
.smartco-learning__history-detail,
.smartco-learning__history-files {
    color: #526675;
    font-size: 12px;
}

.smartco-learning__history-status {
    font-weight: 600;
}

.smartco-learning__history-detail {
    display: grid;
    gap: 4px;
}

.smartco-learning__history-files {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.smartco-learning__history-files a {
    color: #004e8c;
    font-weight: 600;
    text-decoration: none;
}

.smartco-learning__upload {
    margin: 0 22px 20px;
    padding-top: 17px;
    border-top: 1px solid #dfe5e9;
}

.smartco-learning__file-picker {
    display: block;
    width: 100%;
    max-width: 680px;
    margin: 10px 0 5px;
    padding: 9px;
    border: 1px dashed #aebfca;
    background: #f8fafb;
    color: #405564;
    font-size: 12.5px;
}

.smartco-learning__file-picker::file-selector-button {
    margin-right: 10px;
    border: 1px solid #bdd1df;
    background: #edf5fa;
    color: #004e8c;
    padding: 7px 10px;
    font-weight: 600;
    cursor: pointer;
}

.smartco-learning__file-help {
    margin-bottom: 11px;
    color: #647784;
    font-size: 11.5px;
}

.smartco-learning__button {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #004e8c;
    border-radius: 0;
    background: #004e8c;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.smartco-learning__admin-preview {
    margin: 0 22px 18px;
    padding-top: 14px;
    border-top: 1px solid #dfe5e9;
    color: #647784;
    font-size: 12px;
}

.smartco-learning__empty {
    padding: 20px 22px;
}

.smartco-learning__notice {
    padding: 11px 14px;
    color: #263746;
    font-size: 13px;
}

.smartco-learning__notice--success {
    border-left: 4px solid #168447;
}

.smartco-learning__notice--error {
    border-left: 4px solid #c9302c;
}

@media (max-width: 900px) {
    .smartco-learning__programme,
    .smartco-learning__result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .smartco-learning__programme-item:nth-child(2),
    .smartco-learning__result-grid > div:nth-child(2) {
        border-right: 0;
    }

    .smartco-learning__assignment-info {
        grid-template-columns: 1fr;
    }

    .smartco-learning__info-block {
        border-right: 0;
        border-bottom: 1px solid #dfe5e9;
    }

    .smartco-learning__info-block:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .smartco-learning__programme,
    .smartco-learning__meta,
    .smartco-learning__result-grid {
        grid-template-columns: 1fr;
    }

    .smartco-learning__programme-item,
    .smartco-learning__meta-item,
    .smartco-learning__result-grid > div {
        border-right: 0;
        border-bottom: 1px solid #dfe5e9;
    }

    .smartco-learning__assignment-header {
        display: block;
    }

    .smartco-learning__status {
        margin-top: 9px;
    }

    .smartco-learning__history-row {
        grid-template-columns: 1fr;
    }

    .smartco-learning__history-files {
        grid-column: auto;
    }
}

/* SMARTCO LEARNING MATERIALS START */

.smartco-learning__materials {
    margin: 22px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #dce5ec;
    border-radius: 3px;
}

.smartco-learning__materials-heading {
    margin-bottom: 16px;
    color: #183247;
    font-size: 15px;
    font-weight: 600;
}

.smartco-learning__guidance {
    margin-bottom: 16px;
    padding: 16px;
    background: #ffffff;
    border-left: 3px solid #004e8c;
}

.smartco-learning__guidance-text {
    margin-top: 7px;
    color: #40576a;
    font-size: 13.5px;
    line-height: 1.65;
    white-space: pre-line;
}

.smartco-learning__materials-list {
    display: grid;
    gap: 8px;
}

.smartco-learning__material {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid #dce5ec;
    border-radius: 3px;
}

.smartco-learning__material-details {
    min-width: 0;
}

.smartco-learning__material-title {
    color: #233b4d;
    font-size: 13.5px;
    font-weight: 600;
}

.smartco-learning__material-name {
    margin-top: 2px;
    color: #667b8b;
    font-size: 12px;
}

.smartco-learning__material-description {
    margin-top: 5px;
    color: #526979;
    font-size: 12.5px;
    line-height: 1.45;
}

.smartco-learning__material-download {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 13px;
    background: #004e8c;
    border: 1px solid #004e8c;
    border-radius: 3px;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none !important;
}

.smartco-learning__material-download:hover {
    background: #003e70;
    border-color: #003e70;
}

.smartco-learning__material-download--disabled {
    background: #eef2f5;
    border-color: #d7e0e7;
    color: #607585 !important;
}

@media (max-width: 700px) {
    .smartco-learning__material {
        align-items: flex-start;
        flex-direction: column;
    }

    .smartco-learning__material-download {
        width: 100%;
    }
}

/* SMARTCO LEARNING MATERIALS END */

/* SMARTCO MY LEARNING END */
