/* FLUXUS — EDITOR DE TAREFAS V1 */

#content .fx-task-editor,
#content .fx-task-editor * {
    box-sizing: border-box;
}

#content .fx-task-editor {
    width: 100%;
    min-width: 0;
    padding: 6px;
    background: #f4f9fc;
    color: #16365e;
    font: 13px "Segoe UI", Arial, sans-serif;
}

#content .fx-task-editor .fte-form {
    margin: 0;
}

#content .fx-task-editor .fte-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 15px;
}

#content .fx-task-editor .fte-top h1 {
    margin: 0;
    padding-left: 16px;
    border-left: 1px solid #dbe6ef;
    color: #12365a;
    font-size: 21px;
    font-weight: 700;
}

#content .fx-task-editor .fte-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #24557b;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

#content .fx-task-editor .fte-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 226px;
    gap: 16px;
    align-items: start;
}

#content .fx-task-editor .fte-main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

#content .fx-task-editor .fte-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e0ebf3;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(28, 63, 88, .025);
}

#content .fx-task-editor .fte-hero {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

#content .fx-task-editor .fte-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 11px;
    background: #e0f5f2;
    color: #007e82;
}

#content .fx-task-editor .fte-icon svg {
    width: 33px;
    height: 33px;
}

#content .fx-task-editor .fte-kind {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #e5edf6;
    color: #466484;
    font-size: 11px;
}

#content .fx-task-editor .fte-title-input {
    height: 43px !important;
    color: #12375f !important;
    font-size: 21px !important;
    font-weight: 700 !important;
}

#content .fx-task-editor .fte-deadline-summary {
    min-width: 135px;
    padding-left: 20px;
    border-left: 1px solid #dbe6ef;
}

#content .fx-task-editor .fte-deadline-summary span,
#content .fx-task-editor .fte-deadline-summary small {
    display: block;
    color: #758aa4;
    font-size: 11px;
}

#content .fx-task-editor .fte-deadline-summary strong {
    display: block;
    margin: 6px 0;
    color: #17426a;
    font-size: 16px;
}

#content .fx-task-editor .fte-fields {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 13px;
    border: 1px solid #e5eef5;
    border-radius: 8px;
    background: #f7fbfd;
}

#content .fx-task-editor .fte-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

#content .fx-task-editor .fte-field label {
    margin: 0;
    color: #5d7894;
    font-size: 11px;
    font-weight: 600;
}

#content .fx-task-editor input:not([type="checkbox"]),
#content .fx-task-editor select,
#content .fx-task-editor textarea {
    width: 100%;
    min-width: 0;
    height: 35px;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #d3e0eb;
    border-radius: 5px;
    background: #fff;
    color: #315472;
    box-shadow: none;
    font: inherit;
    font-size: 12px;
}

#content .fx-task-editor textarea {
    min-height: 75px;
    height: 75px;
    resize: vertical;
    line-height: 1.5;
}

#content .fx-task-editor input:focus,
#content .fx-task-editor select:focus,
#content .fx-task-editor textarea:focus {
    border-color: #65aaa8;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 128, 127, .07);
}

#content .fx-task-editor .fte-description-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

#content .fx-task-editor .fte-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    color: #173d64;
    font-size: 15px;
    font-weight: 700;
}

#content .fx-task-editor .fte-section-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 7px;
    background: #007783;
    color: #fff;
}

#content .fx-task-editor .fte-section-icon svg {
    width: 18px;
    height: 18px;
}

#content .fx-task-editor .fte-table-wrap {
    overflow-x: auto;
}

#content .fx-task-editor table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

#content .fx-task-editor th {
    padding: 10px;
    border: 0;
    background: #eaf3f8;
    color: #315c80;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

#content .fx-task-editor td {
    padding: 8px;
    border-bottom: 1px solid #e7eef5;
    color: #3d607f;
    vertical-align: middle;
}

#content .fx-task-editor th:first-child {
    width: 40%;
}

#content .fx-task-editor .fte-empty td {
    padding: 23px 12px;
    color: #8699ab;
    font-size: 12px;
    text-align: center;
}

#content .fx-task-editor .fte-remove {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #eedbdd;
    border-radius: 5px;
    background: #fff7f7;
    color: #b65059;
    font-size: 19px;
    cursor: pointer;
}

#content .fx-task-editor .fte-check-name {
    display: flex;
    align-items: center;
    gap: 9px;
}

#content .fx-task-editor input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #008383;
}

#content .fx-task-editor .fte-sidebar {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 0;
    padding: 18px 15px;
    border: 1px solid #dfe9f2;
    border-radius: 9px;
    background: #fafdff;
}

#content .fx-task-editor .fte-sidebar h2 {
    margin: 0 0 7px;
    color: #143d63;
    font-size: 16px;
}

#content .fx-task-editor .fte-action {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #ccdeed;
    border-radius: 6px;
    background: #fff;
    color: #315c81;
    box-shadow: none;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

#content .fx-task-editor .fte-action svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#content .fx-task-editor .fte-action.is-primary {
    border-color: #007b80;
    background: linear-gradient(135deg, #008d91, #006e7d);
    color: #fff;
}

#content .fx-task-editor .fte-action:disabled {
    border-color: #ead9dd;
    background: #fff6f7;
    color: #ba8188;
    cursor: not-allowed;
}

#content .fx-task-editor .fte-action:hover:not(:disabled) {
    filter: brightness(.97);
}

#content .fx-task-editor .fte-notice {
    margin: 5px 0 0;
    padding: 10px;
    border: 1px solid #eddfbe;
    border-radius: 5px;
    background: #fffaf0;
    color: #887044;
    font-size: 11px;
    line-height: 1.5;
}

#content .fx-task-editor .fte-feedback {
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #c9e5db;
    border-radius: 6px;
    background: #eff9f5;
    color: #286b58;
    font-size: 12px;
}

#content .fx-task-editor .fte-feedback:empty {
    display: none;
}

#content .fx-task-editor button:focus-visible {
    outline: 2px solid #008588;
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    #content .fx-task-editor .fte-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #content .fx-task-editor .fte-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #content .fx-task-editor .fte-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #content .fx-task-editor .fte-sidebar h2,
    #content .fx-task-editor .fte-notice {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    #content .fx-task-editor .fte-hero {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 10px;
    }

    #content .fx-task-editor .fte-icon {
        width: 45px;
        height: 45px;
    }

    #content .fx-task-editor .fte-deadline-summary {
        grid-column: 1 / -1;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid #e1eaf2;
    }

    #content .fx-task-editor .fte-fields,
    #content .fx-task-editor .fte-description-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #content .fx-task-editor .fte-title-input {
        font-size: 17px !important;
    }
}

/* FLUXUS EDITOR ACOES COMPACTAS V1 */

#content .fx-task-editor .fte-grid {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 14px;
}

#content .fx-task-editor .fte-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 108px;
    min-width: 0;
    margin: 0;
    padding: 10px 7px;
    border: 1px solid #c8d8dd;
    border-radius: 5px;
    background: linear-gradient(#f1f7f8, #edf3f5);
    box-shadow: 0 1px 4px rgba(30, 65, 80, .06);
}

#content .fx-task-editor .fte-sidebar h2 {
    margin: 0 0 3px;
    font-size: 11px;
    line-height: 1.4;
}

#content .fx-task-editor .fte-sidebar .fte-action {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    flex: 0 0 auto;
    width: 92px;
    min-width: 0;
    height: 43px;
    min-height: 43px;
    margin: 0;
    padding: 0;
    border: 1px solid #aebfc7;
    border-radius: 4px;
    background: linear-gradient(#fff, #eef3f5);
    color: #315664;
    font: inherit;
    font-size: 10.5px;
    font-weight: 650;
    text-align: left;
    box-shadow: 0 2px 3px rgba(35, 60, 70, .07);
}

#content .fx-task-editor .fte-action-icon {
    display: grid;
    place-items: center;
    height: 100%;
    border-right: 1px solid #ccd8dd;
    color: inherit;
}

#content .fx-task-editor .fte-action-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
}

#content .fx-task-editor .fte-action-label {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 6px;
    white-space: nowrap;
}

#content .fx-task-editor .fte-sidebar .fte-action.is-primary {
    border-color: #087e76;
    background: linear-gradient(#159d93, #047970);
    color: #fff;
}

#content .fx-task-editor .fte-action.is-primary .fte-action-icon {
    border-right-color: rgba(255, 255, 255, .3);
}

#content .fx-task-editor .fte-sidebar .fte-action:disabled {
    border-color: #d0dce0;
    background: #f0f4f5;
    color: #99a9af;
    box-shadow: none;
    cursor: not-allowed;
}

#content .fx-task-editor .fte-sidebar .fte-notice {
    min-width: 0;
    padding: 6px;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    #content .fx-task-editor .fte-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #content .fx-task-editor .fte-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, 92px);
        justify-content: start;
        width: 100%;
    }

    #content .fx-task-editor .fte-sidebar h2,
    #content .fx-task-editor .fte-sidebar .fte-notice {
        grid-column: 1 / -1;
    }
}

/* FIM FLUXUS EDITOR ACOES COMPACTAS V1 */
