
* {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/*home*/
#container-home {
    position: fixed;
    width: 17%;
    display: flex;
    flex-direction: column;
    height: auto;
    top: 10%;
    right: 0;
    z-index: 700;
}

#box-noticias-home {
    height: auto;
    background: #032331c2;
    z-index: 500;
    border-radius: 5px;
    margin: 2% 0;
}

#box-noticias-home>h2 {
    color: #fff;
    font-size: 18px;
    text-align: center;
}

#box-noticias-home>p {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 5px;
    text-align: start;
}

#h2-home {
    color: #fff;
    position: absolute;
    z-index: 1000;
    top: calc(50px + 1%);
    left: 50%;
    transform: translateX(-50%);
    font-size: 33px;
}

#a-home {
    position: absolute;
    z-index: 1001;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50px + 10%);
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: #017603;
    box-shadow: 0px 0px 4px #068e08;
    border-radius: 20px;
}

#a-home:hover {
    background: #068e08;
}

#box-home {
    position: absolute;
    box-sizing: border-box;
    border: 1px solid black;
    width: 100%;
    height: calc(100vh - 50px);
    background-image: url("/img/fundo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*home*/

/*login*/
#logo-form {
    width: 80%;
    margin-bottom: 5%;
}

#copy {
    position: absolute;
    bottom: 1%;
    color: #a7a7a7;
    font-family: 'Courier New', Courier, monospace;
}

#back-login {
    position: absolute;
    background-image: url('../img/login.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
}

.form-login {
    position: absolute;
    width: 15%;
    min-width: 200px;
    padding: 2%;
    background-color: #222A35;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border: 1px solid #fff;
    box-shadow: 0px 0px 10px #4a4f63;
    border-radius: 13px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
}

.input-cadastro {
    margin: 6%;
    width: 90%;
    border: none;
    border-bottom: 1px solid #fff;
    background: none;
    color: #fff;
    padding: 2px;
}

.bt-criarUsuario2 {
    background-color: #2F5597;
    color: #fff;
    margin-top: 30%;
    padding: 5%;
    border: none;
    border-radius: 7px;
}

.bt-criarUsuario2:hover {
    cursor: pointer;
    background-color: #2b5db3;
}

/*login*/
h2 {
    padding: .5rem;
    margin-left: 1%;
}

.secao-filtro {
    display: flex;
    padding: .4% 1%;
    flex-wrap: wrap;
}

.secao-filtro>section {
    display: flex;
    align-items: center;
}

.secao-filtro>section>input {
    border: none;
    padding: 0 5px;
}

#lupa,
#img-filtro,
#img-ordenar {
    width: 11px;
}
#form_filtros {
    --task-command-height: 34px;
    --task-command-bg: #f4f6fa;
    --task-command-surface: #ffffff;
    --task-command-surface-soft: #f7f9fc;
    --task-command-border: #d8dee8;
    --task-command-border-strong: #c4cedc;
    --task-command-primary: #3f5fc7;
    --task-command-primary-strong: #2946a6;
    --task-command-primary-soft: #e9edff;
    --task-command-text: #172033;
    --task-command-muted: #68758a;
    position: relative;
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    padding: 3px 12px;
    margin: -3px 0 3px;
    border-top: 1px solid #e7ebf1;
    border-bottom: 1px solid var(--task-command-border);
    background: var(--task-command-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    box-sizing: border-box;
}
#form-nova {
    width: 60%;
    display: grid;
    grid-template-columns: 10fr 1fr 1fr 1fr;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 7px;
    padding: 5px;
    margin: 1%;
    overflow: auto;
    scrollbar-width: none;
}

#form-nova.task-form-configured {
    display: flex !important;
    align-items: center;
    gap: 4px;
    width: 100% !important;
    height: var(--task-command-height);
    max-width: 100%;
    min-width: 0;
    min-height: var(--task-command-height);
    box-sizing: border-box;
    margin: 0;
    padding: 3px 4px 3px 6px;
    border: 1px solid var(--task-command-border-strong);
    border-radius: 8px;
    background: var(--task-command-surface);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 1px 2px rgba(23, 32, 51, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.task-create-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid #d8dff8;
    border-radius: 6px;
    background: var(--task-command-primary-soft);
    color: var(--task-command-primary-strong);
    font-size: 10px;
}

#form-nova.task-form-configured .inpt-nova,
#form-nova.task-form-configured select {
    flex: 0 0 150px;
    min-width: 120px;
    height: 26px;
    min-height: 26px;
    box-sizing: border-box;
    padding: 0 9px;
    border: none;
    border-left: 1px solid #e5e9f0;
    border-radius: 0;
    background: transparent;
    color: var(--task-command-text);
    font-size: 12.5px;
    font-weight: 500;
    outline: none;
    transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

#form-nova.task-form-configured #tarefa {
    flex: 1 1 360px;
    min-width: 260px;
    border-left: 0;
}

#form-nova.task-form-configured input[type="date"] {
    flex-basis: 155px;
}

#form-nova.task-form-configured .inpt-nova:focus,
#form-nova.task-form-configured select:focus {
    background: var(--task-command-surface-soft);
    box-shadow: inset 0 -2px var(--task-command-primary);
}

#form-nova.task-form-configured #btn-enviar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 106px;
    height: 26px;
    min-height: 26px;
    box-sizing: border-box;
    margin-left: 2px;
    border: 1px solid var(--task-command-primary-strong);
    border-radius: 6px;
    background: var(--task-command-primary);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 2px 6px rgba(47, 73, 163, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#form-nova.task-form-configured #btn-enviar i {
    font-size: 10px;
    transition: transform .16s ease;
}

#form-nova.task-form-configured #btn-enviar:hover {
    border-color: #203b91;
    background: var(--task-command-primary-strong);
    box-shadow: 0 3px 8px rgba(41, 70, 166, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

#form-nova.task-form-configured #btn-enviar:hover i {
    transform: translateX(2px);
}

#form-nova.task-form-configured #btn-enviar:active {
    box-shadow: 0 1px 3px rgba(41, 70, 166, .2);
    transform: translateY(0);
}

#form-nova.task-form-configured #btn-enviar:disabled,
#form-nova.task-form-configured #btn-enviar[aria-busy="true"] {
    cursor: wait;
    opacity: .72;
    box-shadow: none;
    transform: none;
}

#form-nova.task-form-configured :is(.inpt-nova, select).is-invalid {
    color: #a23832;
    background: #fff7f6;
    box-shadow: inset 0 -2px #c44a43;
}

.task-form-feedback {
    position: absolute;
    top: calc(100% + 5px);
    left: 12px;
    z-index: 560;
    width: max-content;
    max-width: min(420px, calc(100vw - 24px));
    box-sizing: border-box;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #e3aaa6;
    border-radius: 7px;
    background: #fff8f7;
    color: #8d302b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(76, 31, 29, .14);
}

.task-form-feedback[hidden] {
    display: none;
}

#form-nova.task-form-configured #btn-enviar:focus-visible,
.task-search-toggle:focus-visible,
.task-search-columns-toggle:focus-visible,
.task-search-clear:focus-visible,
.task-search-submit:focus-visible,
.task-search-popover-close:focus-visible,
.btn-filtro-toggle:focus-visible,
#form_novo_filtro button[type="submit"]:focus-visible,
#form_novo_filtro a:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--task-command-primary, #3f5fc7) 72%, white);
    outline-offset: 2px;
}

.task-company-search-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.task-company-suggestions {
    position: fixed;
    z-index: 1700;
    max-height: min(320px, calc(100vh - 24px));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #ccd7e3;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 36, 55, .18), 0 3px 8px rgba(20, 36, 55, .1);
}

.task-company-suggestions[hidden] {
    display: none !important;
}

.task-company-suggestion {
    display: grid;
    grid-template-columns: minmax(52px, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 7px 9px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #293b4d;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.task-company-suggestion:hover,
.task-company-suggestion.is-active {
    background: #edf5fc;
    color: #185f9c;
}

.task-company-suggestion-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 1px 7px;
    border: 1px solid #c7d7e7;
    border-radius: 999px;
    background: #f5f8fb;
    color: #315a7d;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}

.task-company-suggestion-name {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-company-suggestions-message {
    padding: 12px 11px;
    color: #637486;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.task-company-suggestions-message.is-loading::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 7px;
    border: 2px solid #c7d7e7;
    border-top-color: #216fb8;
    border-radius: 50%;
    vertical-align: -2px;
    animation: task-company-spin .7s linear infinite;
}

@keyframes task-company-spin {
    to { transform: rotate(360deg); }
}

.task-table .task-company-cell {
    cursor: help;
    text-decoration: underline dotted rgba(49, 90, 125, .55);
    text-underline-offset: 3px;
}

.task-table .task-company-cell:focus-visible {
    z-index: 3;
    outline: 2px solid #216fb8;
    outline-offset: -2px;
}

.task-company-tooltip {
    position: fixed;
    z-index: 1750;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    max-width: min(310px, calc(100vw - 16px));
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd7e3;
    border-radius: 8px;
    background: #fff;
    color: #203548;
    box-shadow: 0 9px 24px rgba(20, 36, 55, .18);
    pointer-events: none;
}

.task-company-tooltip[hidden] {
    display: none !important;
}

.task-company-tooltip::before {
    content: "";
    position: absolute;
    top: -5px;
    left: calc(50% - 5px);
    width: 8px;
    height: 8px;
    border-top: 1px solid #cbd7e3;
    border-left: 1px solid #cbd7e3;
    background: inherit;
    transform: rotate(45deg);
}

.task-company-tooltip.is-above::before {
    top: auto;
    bottom: -5px;
    border: none;
    border-right: 1px solid #cbd7e3;
    border-bottom: 1px solid #cbd7e3;
}

.task-company-tooltip-label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #718096;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.task-company-tooltip strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.25;
}

.task-company-tooltip-status {
    padding: 2px 6px;
    border-radius: 999px;
    background: #fce8e6;
    color: #a23832;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

body > #form-nova.task-form-configured {
    width: auto !important;
    margin: 6px 1%;
}

#form_filtros > #form-nova.task-form-configured {
    width: 100% !important;
    min-width: 0;
    margin: 0;
}

.task-toolbar {
    position: relative;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    padding-left: 10px;
    border-left: 1px solid var(--task-command-border, #d8dee8);
}

.task-search {
    position: relative;
    flex: 0 0 auto;
}

.task-search-toggle,
.task-search-columns-toggle,
.task-search-popover-close {
    font: inherit;
}

.task-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 28px;
    min-height: 28px;
    box-sizing: border-box;
    padding: 4px 11px;
    border: 1px solid var(--task-command-border-strong, #c4cedc);
    border-radius: 7px;
    background: var(--task-command-surface, #fff);
    color: var(--task-command-text, #172033);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(23, 32, 51, .06);
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.task-search-toggle:hover,
.task-search.is-expanded .task-search-toggle {
    cursor: pointer;
    border-color: var(--task-command-primary, #3f5fc7);
    background: var(--task-command-primary-soft, #e9edff);
    color: var(--task-command-primary-strong, #2946a6);
    box-shadow: 0 2px 5px rgba(41, 70, 166, .12);
}

.task-search-expanded {
    display: none;
    width: min(470px, calc(100vw - 24px));
}

.task-search.is-expanded .task-search-toggle {
    display: none;
}

.task-search.is-expanded .task-search-expanded {
    display: block;
}

.task-search-input-shell,
.task-search-column-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    box-sizing: border-box;
    border: 1px solid var(--task-command-primary, #3f5fc7);
    border-radius: 7px;
    background: var(--task-command-surface, #fff);
    color: var(--task-command-muted, #68758a);
}

.task-search-input-shell {
    padding: 3px 4px 3px 11px;
}

.task-search-input-shell:focus-within,
.task-search-column-filter:focus-within {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--task-command-primary, #3f5fc7) 18%, transparent);
}

.task-search-input,
.task-search-column-filter input {
    min-width: 0;
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    color: var(--task-command-text, #172033);
    font-size: 13px;
}

.task-search-input::-webkit-search-cancel-button,
.task-search-column-filter input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.task-search-columns-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
}

.task-search-clear,
.task-search-submit {
    min-height: 28px;
    flex: 0 0 auto;
    border: none;
    border-radius: 6px;
}

.task-search-clear {
    width: 28px;
    padding: 0;
    background: transparent;
    color: #64748b;
}

.task-search-submit {
    padding: 0 10px;
    background: var(--task-command-primary, #3f5fc7);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.task-search-clear:hover,
.task-search-submit:hover {
    cursor: pointer;
}

.task-search-clear:hover {
    background: #eef2f7;
    color: #b42318;
}

.task-search-submit:hover {
    background: var(--task-command-primary-strong, #2946a6);
}

.task-search-columns-toggle:hover,
.task-search-columns-toggle[aria-expanded="true"] {
    cursor: pointer;
    background: var(--task-command-primary-soft, #e9edff);
    color: var(--task-command-primary-strong, #2946a6);
}

.task-search-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 520;
    width: min(305px, calc(100vw - 24px));
    box-sizing: border-box;
    padding: 12px 14px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.task-search-popover-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #374151;
    font-size: 14px;
}

.task-search-popover-title strong {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-search-popover-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    padding: 0;
    border: 1px solid #9ca3af;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
}

.task-search-popover-close:hover {
    cursor: pointer;
    border-color: #216fb8;
    color: #216fb8;
}

.task-search-column-filter {
    min-height: 36px;
    margin-bottom: 7px;
    padding: 4px 12px;
}

.task-search-column-option {
    position: relative;
    display: grid;
    grid-template-columns: 20px 26px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 33px;
    cursor: pointer;
    font-size: 13px;
}

.task-search-column-option[hidden] {
    display: none;
}

.task-search-column-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.task-search-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    box-sizing: border-box;
    border: 1px solid #9ca3af;
    border-radius: 3px;
    background: #fff;
    color: transparent;
    font-size: 11px;
}

.task-search-column-option input:checked + .task-search-checkbox,
.task-search-column-option input:indeterminate + .task-search-checkbox {
    border-color: #0878ed;
    background: #0878ed;
    color: #fff;
}

.task-search-column-option input:focus-visible + .task-search-checkbox {
    outline: 2px solid rgba(11, 108, 255, 0.35);
    outline-offset: 2px;
}

.task-search-column-all {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    min-height: 40px;
    border-bottom: 1px solid #edf0f4;
}

.task-search-selected-count {
    max-width: 90px;
    color: #6b7280;
    text-align: right;
    line-height: 1.25;
}

.task-search-column-list {
    max-height: min(260px, calc(100vh - 270px));
    overflow-y: auto;
    scrollbar-width: thin;
}

.task-search-column-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #9b6be3;
    color: #fff;
    font-size: 12px;
}

.task-search-column-option:nth-child(3n + 2) .task-search-column-icon {
    background: #f5b700;
}

.task-search-column-option:nth-child(3n) .task-search-column-icon {
    background: #10b981;
}

#form_novo_filtro {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
    margin-right: 0;
    white-space: nowrap;
}

#form_novo_filtro:not(.filtro-expanded) {
    padding-left: 0;
    border-left: none;
}

#form_novo_filtro:not(.filtro-expanded) select,
#form_novo_filtro:not(.filtro-expanded) button[type="submit"],
#form_novo_filtro:not(.filtro-expanded) a {
    display: none;
}

.btn-filtro-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 28px;
    min-height: 28px;
    box-sizing: border-box;
    padding: 4px 11px;
    border: 1px solid var(--task-command-border-strong, #c4cedc);
    border-radius: 7px;
    background: var(--task-command-surface, #fff);
    color: var(--task-command-text, #172033);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(23, 32, 51, .06);
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn-filtro-toggle:hover,
#form_novo_filtro.filtro-expanded .btn-filtro-toggle {
    cursor: pointer;
    border-color: var(--task-command-primary, #3f5fc7);
    background: var(--task-command-primary-soft, #e9edff);
    color: var(--task-command-primary-strong, #2946a6);
    box-shadow: 0 2px 5px rgba(41, 70, 166, .12);
}

.btn-filtro-toggle i {
    font-size: 13px;
}

#form_novo_filtro.tem-filtro .btn-filtro-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--task-command-primary, #3f5fc7);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--task-command-primary, #3f5fc7) 14%, transparent);
}

#form_novo_filtro.tem-filtro.filtro-expanded .btn-filtro-toggle::after,
#form_novo_filtro.tem-filtro .btn-filtro-toggle:hover::after {
    background: var(--task-command-primary, #3f5fc7);
}

#form_novo_filtro select {
    border: 1px solid var(--task-command-border-strong, #c4cedc);
    border-radius: 6px;
    outline: none;
    width: 136px;
    color: var(--task-command-text, #172033);
    min-height: 26px;
    padding: 2px 8px;
    background: var(--task-command-surface, #fff);
}
option {
    border-radius: 5px;
}
#form_novo_filtro button[type="submit"] {
    min-height: 28px;
    padding: 4px 11px;
    border: 1px solid var(--task-command-border-strong, #c4cedc);
    color: var(--task-command-text, #172033);
    background: var(--task-command-surface, #fff);
    border-radius: 7px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
#form_novo_filtro button[type="submit"]:hover {
    cursor: pointer;
    border-color: var(--task-command-primary, #3f5fc7);
    background: var(--task-command-primary-soft, #e9edff);
    color: var(--task-command-primary-strong, #2946a6);
}
#form_novo_filtro a {
    text-decoration: none;
    color: var(--task-command-muted, #68758a);
    font-size: 13px;
}

#form_novo_filtro a:hover {
    color: var(--task-command-primary-strong, #2946a6);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1180px) {
    #form_filtros {
        grid-template-columns: minmax(0, 1fr) max-content;
    }

    #form_novo_filtro {
        justify-content: flex-end;
        padding-left: 0;
        border-left: none;
    }

    .task-toolbar {
        flex-wrap: nowrap;
    }
}

#erro_input{
    position: fixed;
    top: 168px;
    left: 30%;
    background: #fff;
    border: 1px solid black;
    border-radius: 6px;
    font-size: 14px;
    padding: 2px 10px;
}
#btn-enviar {
    padding: 3px 10px;
    border: none;
    background: #216fb8;
    border-radius: 5px;
    color: #f4f4fa;
}

#btn-enviar:hover {
    cursor: pointer;
    background: #216fb8d7;
}

.inpt-nova {
    background: none;
    border: none;
    outline: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    padding-left: 5px;
}

.container {
    display: grid;
    grid-template-columns: 18fr 1fr repeat(7, 4fr) 1fr 1fr;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 6px solid #305496;
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
    height: auto;
}

.task-table {
    position: relative;
    grid-template-columns: var(--task-grid-template) !important;
    width: 100%;
    min-width: var(--task-grid-min-width, 100%);
    overflow: visible;
}

.task-table .item {
    min-height: 25px;
    padding: 0 5px;
    line-height: 1.15;
}

.task-table .cab {
    position: sticky;
    top: var(--task-title-sticky-height, 34px);
    z-index: 34;
    min-height: var(--task-head-sticky-height, 25px);
    padding-top: 4px;
    padding-bottom: 2px;
    background: #f4f6fb;
    border-bottom: none;
    border-top: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: 0 3px 8px rgba(20, 31, 57, 0.12);
    overflow: visible;
}

.task-sort-header {
    position: sticky;
}

.task-sort-header:hover,
.task-sort-header.sort-active,
.task-sort-header.sort-editing {
    z-index: 45;
}

.task-sort-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-sort-controls {
    position: absolute;
    top: -1px;
    left: 50%;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transform: translate(-50%, -50%);
}

.task-sort-button {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
}

.task-sort-header:hover .task-sort-button,
.task-sort-header.sort-active .task-sort-button,
.task-sort-header.sort-editing .task-sort-button {
    opacity: 1;
    pointer-events: auto;
}

.task-sort-button:hover,
.task-sort-action:hover {
    cursor: pointer;
}

.task-sort-icon {
    display: block;
    width: 25px;
    height: 25px;
    pointer-events: none;
}

.task-sort-action {
    visibility: hidden;
    min-width: 34px;
    border: none;
    background: #fff;
    color: #474747;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 3px;
    box-shadow: 0px 0px 8px #0000004b;
    padding: 2px 8px;
}

.task-sort-header.sort-editing .task-sort-action {
    visibility: visible;
}

.task-sort-action:hover {
    color: #216fb8;
}

.task-table.pendentes .cab:first-child {
    border-top-left-radius: 7px;
}

.task-table.concluidos .cab:first-child {
    border-top-left-radius: 7px;
}

.task-table [data-col-id="status"] {
    position: relative;
    padding: 0;
    overflow: visible;
}

.task-table #bt-status {
    white-space: nowrap;
}

.task-table .item:not(.cab) {
    position: relative;
    z-index: 1;
}

.task-table .row[hidden] {
    display: none;
}

.task-table .item[data-col-id="status"].status-menu-open {
    z-index: 220;
}

.task-form-configured {
    width: auto !important;
    max-width: calc(100% - 2%);
}

.task-form-configured #tarefa {
    min-width: 220px;
}

.task-form-configured select {
    min-height: 28px;
}

.task-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50%;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.task-priority.alta,
.task-priority.urgente {
    background: #fff0ee;
    color: #b42318;
}

.task-priority.media {
    background: #fff4e5;
    color: #b54708;
}

.task-priority.baixa {
    background: #eaf8f1;
    color: #16835f;
}

.container-empresas {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    width: auto;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    max-height: calc(100vh - 200px);
    border-left: 6px solid #305496;
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
    padding-bottom: 1%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
/* primeira coluna fixa à esquerda (opcional) */
.container-empresas > :nth-child(11n + 1){  /* 1, 12, 23… = 1ª coluna em cada linha */
  position: sticky;
  top: 0;
  z-index: 25;           /* menor que o cabeçalho (20), maior que as demais células */      /* fundo sólido pra não “vazar” */
}

.container-fechamento {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    max-height: calc(100vh - 200px);
    border-left: 6px solid #305496;
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
    padding-bottom: 1%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/*-------------*/
.tabela-fechamento {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-left: 6px solid #305496;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    padding: 0.5rem;
    background: #fff;
}

.linha-fechamento {
    display: grid;
    grid-template-columns: 180px repeat(auto-fit, minmax(120px, 1fr));
    text-align: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px 0;
}

.linha-fechamento:last-child {
    border-bottom: none;
}

.cabecalho {
    background: #e9edf7;
    font-weight: bold;
    color: #333;
}

.celula {
    padding: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.celula.titulo {
    text-align: right;
    font-weight: bold;
    color: #305496;
    padding-right: 10px;
}

/* barras */
.barra-container {
    position: relative;
    width: 90%;
    height: 14px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.barra {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(var(--pct) * 1%);
    background: linear-gradient(90deg, #4caf50, #81c784);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.texto-barra {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #222;
    line-height: 14px;
    font-weight: bold;
}

/*------------------------------*/

.row-fechamento:hover .barra {
    background: linear-gradient(90deg, #43a047, #66bb6a);
}





.empresas-input:hover {
    cursor: pointer;
    background: rgba(7, 220, 89, 0.218);
    border-left: 2px solid rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.empregados {
    grid-column-start: 6;
    border-radius: 0 0 0 8px;
}

.prolabore {
    grid-column-start: 7;
}

.decimo13 {
    grid-column-start: 7;
}
.folha {
    grid-column-start: 8;
}

.fgts {
    grid-column-start: 9;
}

.inss {
    grid-column-start: 10;
}

.sindicato {
    grid-column-start: 11;
}

#btn-13,
#btn-folha,
#btn-fgts,
#btn-inss,
#btn-sindicato {
    height: 16px;
}

.container-dev {
    display: grid;
    grid-template-columns: 16fr repeat(5, 4fr) 1fr 1fr 1fr;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 6px solid #305496;
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
}

.container-dev.task-table {
    grid-template-columns: var(--task-grid-template) !important;
    width: 100%;
    min-width: var(--task-grid-min-width, 100%);
    height: auto;
    overflow: visible;
}

.pendentes {
    margin-bottom: 1%;
}

.task-table.pendentes {
    margin-bottom: 0;
}

.concluidos {
    border-left: 6px solid #548235;
}

#h3-pendentes {
    position: sticky;
    top: 0;
    z-index: 32;
    display: flex;
    align-items: center;
    column-gap: 14px;
    width: var(--task-scroll-mask-width, 100%);
    min-height: var(--task-title-sticky-height, 34px);
    min-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #305496;
    font-size: 18px;
    box-shadow: none;
}

#h3-concluidos {
    position: sticky;
    top: 0;
    z-index: 32;
    display: flex;
    align-items: center;
    column-gap: 14px;
    width: var(--task-scroll-mask-width, 100%);
    min-height: var(--task-title-sticky-height, 34px);
    min-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 12px;
    background: #fff;
    color: #548235;
    font-size: 18px;
    box-shadow: none;
}

.task-completed-section {
    min-width: 100%;
}

.task-completed-heading {
    position: sticky;
    top: 0;
    z-index: 32;
    display: flex;
    align-items: center;
    width: var(--task-scroll-mask-width, 100%);
    min-width: 100%;
    min-height: var(--task-title-sticky-height, 36px);
    box-sizing: border-box;
    background: #fff;
}

.task-section-heading-content,
.task-completed-heading-content {
    display: flex;
    align-items: center;
}

.task-section-heading-content {
    min-height: inherit;
    box-sizing: border-box;
    padding: 6px 12px;
    column-gap: 14px;
}

.task-completed-heading-content {
    min-height: inherit;
}

.task-completed-heading #h3-concluidos {
    position: static;
    z-index: auto;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
}

#h3-concluidos.task-completed-toggle {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-align: left;
    width: auto;
}

.task-completed-filters-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    min-height: 28px;
    flex: 0 0 auto;
    box-sizing: border-box;
    margin: 4px 8px 4px 0;
    padding: 0 9px;
    border: 1px solid #c8d5c1;
    border-radius: 7px;
    background: #fff;
    color: #52624c;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color .16s ease,
        background-color .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.task-completed-filters-toggle:hover,
.task-completed-filters-toggle.is-expanded {
    border-color: #548235;
    background: #edf5e9;
    color: #365b24;
}

.task-completed-filters-toggle:focus-visible {
    outline: 3px solid rgba(84, 130, 53, .24);
    outline-offset: 2px;
}

.task-completed-filters-indicator {
    display: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #548235;
}

.task-completed-filters-toggle.has-active-filter .task-completed-filters-indicator {
    display: block;
}

.task-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
    margin: 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e8eef7;
    color: #305496;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

#h3-pendentes > .task-section-heading-content > span:first-child,
#h3-concluidos > span:first-child {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    line-height: 1;
}

#h3-concluidos .task-section-count {
    background: #e9f3e5;
    color: #426a2e;
}

.task-completed-chevron {
    margin-right: 8px;
    font-size: 12px;
    transition: transform .2s ease;
}

.task-completed-toggle.is-expanded .task-completed-chevron {
    transform: rotate(180deg);
}

.task-completed-panel[hidden] {
    display: none;
}

.task-completed-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #dce6d7;
    border-bottom: none;
    background: #f8fbf6;
}

.task-completed-filters[hidden] {
    display: none;
}

.task-completed-filters-label {
    margin-right: 3px;
    color: #52624c;
    font-size: 12px;
    font-weight: 700;
}

.task-completed-latest {
    margin-left: auto;
}

.task-completed-latest i {
    margin-right: 4px;
}

.task-completed-filters button,
.task-pagination button {
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #c8d5c1;
    border-radius: 7px;
    background: #fff;
    color: #42523c;
    font-size: 12px;
    font-weight: 700;
}

.task-completed-filters button:hover,
.task-completed-filters button.active,
.task-pagination button:hover:not(:disabled) {
    cursor: pointer;
    border-color: #548235;
    background: #edf5e9;
    color: #365b24;
}

.task-completed-new-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #b9d7aa;
    border-bottom: none;
    background: #edf7e8;
    color: #365b24;
    font-size: 12px;
    font-weight: 700;
}

.task-completed-filters button {
    min-height: 26px;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.2;
}

.task-completed-new-notice[hidden] {
    display: none;
}

.task-completed-new-notice > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.task-completed-new-notice button {
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #548235;
    border-radius: 7px;
    background: #548235;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.task-completed-new-notice button:hover {
    border-color: #426a2e;
    background: #426a2e;
}

.task-completed-new-notice button:focus-visible {
    outline: 3px solid rgba(84, 130, 53, .24);
    outline-offset: 2px;
}

.task-completed-custom-period {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.task-completed-custom-period[hidden] {
    display: none;
}

.task-completed-custom-period label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #52624c;
    font-size: 12px;
}

.task-completed-custom-period input {
    min-height: 30px;
    box-sizing: border-box;
    border: 1px solid #c8d5c1;
    border-radius: 6px;
    background: #fff;
    color: #34402f;
}

.task-list-loading,
.task-list-empty {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 16px;
    border: 1px solid #dce3e9;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.task-list-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.task-list-loading[hidden],
.task-list-empty[hidden] {
    display: none;
}

.task-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid #dce6d7;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdf9 0%, #f5f9f2 100%);
    color: #52624c;
    font-size: 12px;
}

.task-pagination[hidden] {
    display: none;
}

.task-pagination-summary {
    color: #5f6f59;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.task-pagination-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.task-pagination-page-size {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5f6f59;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.task-pagination-page-size select {
    width: 62px;
    height: 28px;
    box-sizing: border-box;
    padding: 2px 6px;
    border: 1px solid #b9c9b1;
    border-radius: 7px;
    background: #fff;
    color: #365b24;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.task-pagination-page-size select:hover:not(:disabled) {
    border-color: #548235;
    background: #f6faf3;
}

.task-pagination-page-size select:focus-visible {
    outline: 3px solid rgba(84, 130, 53, .24);
    outline-offset: 2px;
    border-color: #548235;
}

.task-pagination-page-size select:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.task-pagination-page-size.is-disabled {
    opacity: .68;
}

.task-pagination-controls,
.task-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-pagination-controls {
    gap: 4px;
    max-width: 100%;
}

.task-pagination-pages {
    gap: 2px;
}

.task-pagination button {
    width: 28px;
    height: 28px;
    min-height: 28px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 7px;
    font-variant-numeric: tabular-nums;
    transition:
        color .16s ease,
        background-color .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.task-pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(66, 82, 60, .12);
}

.task-pagination button:focus-visible {
    outline: 3px solid rgba(84, 130, 53, .24);
    outline-offset: 2px;
}

.task-pagination-number.is-current {
    border-color: #548235;
    background: #548235;
    color: #fff;
    box-shadow: 0 3px 8px rgba(84, 130, 53, .24);
    cursor: default;
}

.task-pagination-number.is-current:hover {
    border-color: #548235;
    background: #548235;
    color: #fff;
    transform: none;
}

.task-pagination .task-pagination-today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 58px;
    padding: 0 7px;
    border-color: #a9bea0;
    background: #f8fbf6;
    color: #416632;
    font-size: 11px;
    font-weight: 750;
}

.task-pagination-today-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e2ecdd;
    color: #416632;
    font-size: 9px;
    line-height: 1;
}

.task-pagination .task-pagination-today.is-current {
    border-color: #548235;
    background: #548235;
    color: #fff;
    box-shadow: 0 3px 8px rgba(84, 130, 53, .24);
    cursor: default;
}

.task-pagination .task-pagination-today.is-current:hover {
    border-color: #548235;
    background: #548235;
    color: #fff;
    transform: none;
}

.task-pagination-today.is-current .task-pagination-today-count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.task-pagination-today-separator {
    width: 1px;
    height: 18px;
    flex: 0 0 1px;
    margin: 0 2px;
    background: #cbd7c5;
}

.task-pagination-navigation {
    color: #46683a;
}

.task-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 28px;
    flex: 0 0 16px;
    color: #7d8c77;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.task-pagination button:disabled {
    cursor: not-allowed;
    background: #f2f5f0;
    color: #9da89a;
    opacity: .58;
}

.task-pagination[aria-busy="true"] .task-pagination-controls {
    pointer-events: none;
    opacity: .62;
}

.item {
    border: 1px solid rgba(0, 0, 0, 0.3);
    text-align: center;
    align-content: center;
    box-sizing: border-box;
    font-size: 12px;
    border-bottom: none;
    border-right: none;
    white-space: nowrap;
}
.item-data {
    font-size: 11px;
}

.task-person {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    line-height: 1;
    vertical-align: middle;
}

.task-person-avatar {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(33, 65, 102, .2);
    border-radius: 50%;
    background: linear-gradient(135deg, #e4edf6, #d8eee8);
    color: #214166;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .02em;
}

.task-person-avatar img,
.task-owner-avatar img,
.development-project-owner-inline-icon img,
.development-project-owner-option-avatar img,
.development-stage-owner-option-avatar img,
.development-stage-assignee-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.task-person-avatar:has(> img),
.development-project-owner-inline-icon:has(> img),
.development-stage-assignee-avatar:has(> img) {
    border: 0;
}

.task-person-name {
    min-width: 0;
    overflow: hidden;
    color: #343435;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .task-page .task-table .row > .item:is(
        [data-col-id="solicitante"],
        [data-col-id="executor"],
        [data-col-id="responsavel"]
    ):has(.task-person) {
        align-items: center;
        justify-content: center;
        padding-top: 1px;
        padding-bottom: 1px;
    }
}

.task-person-empty {
    color: #8a97a4;
}

html.avatar-editor-open {
    overflow: hidden;
}

.avatar-editor[hidden] {
    display: none;
}

.avatar-editor {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 18px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.avatar-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 31, .7);
    backdrop-filter: blur(4px);
}

.avatar-editor-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border: 1px solid #d8e0ea;
    border-radius: 18px;
    background: #fff;
    color: #17212b;
    box-shadow: 0 24px 80px rgba(4, 18, 33, .36);
}

.avatar-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e4e9f0;
}

.avatar-editor-eyebrow {
    color: #216fb8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.avatar-editor-header h2 {
    margin: 3px 0 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.15;
}

.avatar-editor-header p {
    margin: 4px 0 0;
    color: #697887;
    font-size: 11px;
}

.avatar-editor-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef3f7;
    color: #435466;
    cursor: pointer;
}

.avatar-editor-body {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 18px 20px 12px;
}

.avatar-editor-workspace {
    position: relative;
    width: min(320px, 78vw);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: #eef2f6;
    box-shadow: inset 0 0 0 1px rgba(29, 55, 80, .1);
    touch-action: none;
}

.avatar-editor-workspace canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.avatar-editor-workspace canvas.is-dragging {
    cursor: grabbing;
}

.avatar-editor-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 16px;
    box-shadow: inset 0 0 0 42px rgba(7, 18, 31, .56);
}

.avatar-editor-mask::after {
    content: '';
    position: absolute;
    inset: 42px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.avatar-editor-empty {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    padding: 24px;
    background: #eef2f6;
    color: #617181;
    text-align: center;
    pointer-events: none;
}

.avatar-editor-empty[hidden] {
    display: none;
}

.avatar-editor-empty i {
    margin-bottom: 4px;
    color: #216fb8;
    font-size: 30px;
}

.avatar-editor-empty strong {
    color: #273849;
    font-size: 13px;
}

.avatar-editor-empty span {
    font-size: 10px;
}

.avatar-editor-controls {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(360px, 100%);
}

.avatar-editor-controls > p {
    margin: 0;
    color: #748292;
    font-size: 10px;
    text-align: center;
}

.avatar-editor-zoom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    color: #677787;
    font-size: 11px;
}

.avatar-editor-zoom input {
    width: 100%;
    accent-color: #216fb8;
}

.avatar-editor-feedback {
    min-height: 16px;
    color: #257257;
    font-size: 10px;
    text-align: center;
}

.avatar-editor-feedback.is-error {
    color: #b42318;
}

.avatar-editor-actions {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    padding: 13px 20px 18px;
}

.avatar-editor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.avatar-editor-button.primary {
    background: #214166;
    color: #fff;
}

.avatar-editor-button.secondary {
    border-color: #d4dde7;
    background: #fff;
    color: #34485b;
}

.avatar-editor-button.danger {
    border-color: #f2c8c4;
    background: #fff3f2;
    color: #b42318;
}

.avatar-editor-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

@media (max-width: 560px) {
    .avatar-editor {
        align-items: end;
        padding: 0;
    }

    .avatar-editor-dialog {
        width: 100%;
        max-height: 96vh;
        border-radius: 18px 18px 0 0;
    }

    .avatar-editor-actions {
        grid-template-columns: 1fr 1fr;
    }

    .avatar-editor-actions > span {
        display: none;
    }

    .avatar-editor-button.danger {
        grid-column: 1 / -1;
    }
}
.item-empresas {
    border: 1px solid rgba(0, 0, 0, 0.3);
    text-align: center;
    align-content: center;
    box-sizing: border-box;
    font-size: 13px;
    border-top: none;
    border-right: none;
    white-space: nowrap;
    padding: 3px 7px;
}

.item-left {
    text-align: start;
}

.row {
    display: contents;
}

.row:hover .item {
    background: rgba(80, 120, 200, 0.15);
    box-shadow: none;
}

.row:hover .item-empresas {
    filter: brightness(.85);
    box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.3);
}

.row:nth-child(even):hover .item {
    background: rgba(80, 120, 200, 0.15);
}

.row:nth-child(even) .item {
    background: rgba(0, 0, 0, 0.02);
}

.item-pr {
    border-left: none;
    text-align: center;
    padding-left: 4px;
    padding-right: 28px;
}

.task-page .task-table .row > [data-col-id="tarefa"],
.task-page .task-table .row > .item-pr:first-child {
    padding-left: 9px;
}

@media (min-width: 769px) {
    .task-page .task-table .row > .item:not(.item-pr):not([data-col-id="tarefa"]):not([data-col-id="status"]):not([data-col-id="tramites"]) {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 2px;
    }

    .task-page .task-table .row > .task-row-actions > .item {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .task-page .task-table #bt-status {
        padding-top: 5px;
        padding-bottom: 3px;
    }

    .task-page .task-table .row > [data-col-id="tarefa"],
    .task-page .task-table .row > .item-pr:first-child {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2px;
        text-align: left;
    }
}

.cab {
    border: none;
    padding-top: 5px;
    padding-bottom: 2px;
    font-weight: bold;
    color: rgb(71, 71, 71);
    background: #f4f4fa;
}

.cab-empresas {
    font-weight: bold;
    color: #fff;
    padding: 2% 7px;
    top: 0;
    z-index: 5;
    position: sticky;
    background: #305496;
}

.cab-acoes {
    grid-column: -3 / -1;
}
.cab-tarefa {
    grid-column: 1 / 3;
}

/* Mantem tarefa e tramites como um unico bloco durante a rolagem horizontal. */
@media (min-width: 901px) {
    .task-page .task-table {
        --task-section-color: #305496;
        --task-header-shadow: 0 3px 8px rgba(20, 31, 57, .12);
        --task-row-border-color: rgba(0, 0, 0, .3);
        --task-frozen-left: calc(var(--task-board-left-inset, 0px) - 7px);
        /* Cobre todo o espaço entre a coluna fixa e a borda do quadro. */
        --task-frozen-mask-width: calc(var(--task-board-left-inset, 0px) + max(0px, var(--task-frozen-left)));
        border-left-width: 0;
        border-right-width: 0;
        border-top-width: 0;
        border-bottom-width: 0;
    }

    .task-page .task-table.concluidos {
        --task-section-color: #548235;
    }

    .task-page .task-table .row {
        --task-frozen-row-background: #fff;
    }

    .task-page .task-table .row:nth-child(even) {
        --task-frozen-row-background: #fafafa;
    }

    .task-page .task-table .row:hover,
    .task-page .task-table .row:nth-child(even):hover {
        --task-frozen-row-background: #e6ecf8;
    }

    .task-page .task-section-heading-content,
    .task-page .task-completed-heading-content {
        position: sticky;
        left: 0;
        z-index: 1;
        flex: 0 0 auto;
        background: #fff;
    }

    .task-page .task-table .task-table-headers {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: subgrid;
        position: sticky;
        top: var(--task-title-sticky-height, 34px);
        z-index: 34;
        /* Uma sombra contínua acompanha a rolagem nativa, sem recortes por coluna. */
        --task-header-cell-shadow: none;
        box-shadow: var(--task-header-shadow);
    }

    .task-page .task-table .task-table-headers > .cab {
        top: auto;
        box-shadow: var(--task-header-cell-shadow);
    }

    .task-page .task-table .task-table-headers > .cab:not(.cab-tarefa) {
        position: relative;
    }

    .task-page .task-table .cab-tarefa {
        position: sticky;
        left: var(--task-frozen-left);
        z-index: 52;
        background: #f4f6fb;
        --task-header-cell-shadow: 7px 0 10px -9px rgba(15, 23, 42, .72);
        box-shadow: var(--task-header-cell-shadow);
    }

    .task-page .task-table .task-table-headers > .cab:last-child {
        border-right: 1px solid rgba(0, 0, 0, .3);
        border-top-right-radius: 7px;
    }

    .task-page .task-table .cab-tarefa::before {
        position: absolute;
        top: -1px;
        bottom: -1px;
        left: 0px;
        z-index: 2;
        width: 7px;
        background: var(--task-section-color);
        content: "";
        pointer-events: none;
    }

    .task-page .task-table .cab-tarefa::after,
    .task-page .task-table .row > [data-col-id="tarefa"]::after,
    .task-page .task-table .row > .item-pr:first-child::after {
        position: absolute;
        top: -1px;
        right: 100%;
        bottom: -1px;
        z-index: 1;
        width: var(--task-frozen-mask-width);
        background: #fff;
        content: "";
        pointer-events: none;
    }

    .task-page .task-table .cab-tarefa::before {
        top: 0;
        border-radius: 7px 0 0 0;
    }

    .task-page .task-table .cab-tarefa::after {
        top: 0;
        /* Mantém a margem esquerda livre da sombra inferior do cabeçalho. */
        bottom: -20px;
    }

    .task-page .task-table .row > [data-col-id="tarefa"],
    .task-page .task-table .row > .item-pr:first-child {
        position: sticky;
        left: var(--task-frozen-left);
        z-index: 19;
        padding-left: 14px;
        border-top: none;
        background: var(--task-completion-background, var(--task-frozen-row-background));
        /* A faixa cobre as divisoes; a linha da tarefa comeca depois dela. */
        box-shadow:
            inset 7px 0 0 var(--task-section-color),
            inset 0 1px 0 var(--task-row-border-color),
            var(--task-last-row-border-shadow, inset 0 0 0 transparent);
    }

    .task-page .task-table .row > [data-col-id="tramites"].item-vis {
        position: sticky;
        left: calc(var(--task-frozen-left) + var(--task-frozen-task-width, 0px));
        z-index: 18;
        border-right: 1px solid rgba(0, 0, 0, .3);
        background: var(--task-completion-background, var(--task-frozen-row-background));
        /* Sobrepoe um pixel da tarefa para evitar frestas entre as duas colunas fixas. */
        box-shadow:
            -1px 0 0 var(--task-completion-background, var(--task-frozen-row-background)),
            var(--task-last-tramites-border-shadow, inset 0 0 0 transparent),
            7px 0 10px -9px rgba(15, 23, 42, .72);
    }

    .task-page .task-table .row > [data-col-id="tramites"].item-vis + .item {
        border-left: none;
    }

    .task-page .task-table .row:nth-child(even) > [data-col-id="tarefa"],
    .task-page .task-table .row:nth-child(even) > .item-pr:first-child,
    .task-page .task-table .row:nth-child(even) > [data-col-id="tramites"].item-vis {
        background: var(--task-completion-background, var(--task-frozen-row-background));
    }

    .task-page .task-table .row:hover > [data-col-id="tarefa"],
    .task-page .task-table .row:hover > .item-pr:first-child,
    .task-page .task-table .row:hover > [data-col-id="tramites"].item-vis,
    .task-page .task-table .row:nth-child(even):hover > [data-col-id="tarefa"],
    .task-page .task-table .row:nth-child(even):hover > .item-pr:first-child,
    .task-page .task-table .row:nth-child(even):hover > [data-col-id="tramites"].item-vis {
        background: var(--task-completion-background, var(--task-frozen-row-background));
    }

    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > .item,
    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > .task-row-actions > .item {
        border-bottom: 0;
    }

    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > .item:not([data-col-id="tarefa"]):not([data-col-id="tramites"]),
    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > .task-row-actions > .item {
        box-shadow: inset 0 -1px 0 var(--task-row-border-color);
    }

    .task-page .task-table .row > .task-row-actions > .item:last-child {
        border-right: 1px solid rgba(0, 0, 0, .3);
    }

    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > .task-row-actions > .item:last-child {
        border-bottom-right-radius: 7px;
    }

    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > [data-col-id="tarefa"]::after,
    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > .item-pr:first-child::after {
        /* Encerra a mascara dentro da ultima linha, sem vazar sob a tabela. */
        bottom: 0;
    }

    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > [data-col-id="tarefa"],
    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > .item-pr:first-child {
        --task-last-row-border-shadow: inset 0 -1px 0 var(--task-row-border-color);
        border-radius: 0 0 0 7px;
    }

    .task-page .task-table .row:not([hidden]):not(:has(~ .row:not([hidden]))) > [data-col-id="tramites"].item-vis {
        --task-last-tramites-border-shadow: inset 0 -1px 0 var(--task-row-border-color);
    }
}

.item-vis {
    min-width: 44px;
    border-left: none;
    color: #585858;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative; /* permite posicionar o badge no canto */
}
.item-vis:hover {
    cursor: pointer;
    color: #216fb8;
}
.item-vis:hover .count-tramites {
    background: #216fb8;
}
/* Badge de quantidade de trâmites ao lado do ícone */
.fa-comment {
    position: absolute;
    right: 10px;
}
.count-tramites {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 13px;
    height: 13px;
    padding: 0 0px;
    border-radius: 50%;
    background: #5e5e5f;
    color: #fff;
    font-size: 8px;
    font-weight: 300;
}
#box {
    --task-title-sticky-height: 36px;
    --task-head-sticky-height: 25px;
    position: relative;
    isolation: isolate;
    border: 1px solid #cfd7e2;
    border-radius: 10px 0 0 0;
    border-right: none;
    padding: 0 1% 1%;
    margin: 0% 1% 1% 1%;
    transition: margin-right .2s;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: auto;
}

#box::-webkit-scrollbar {
    background: #fff;
    height: 14px;
    width: 14px;
}

#box::-webkit-scrollbar-thumb {
    background: #dedee4;
}


#box::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    width: var(--task-scroll-mask-width, 100%);
    min-width: 100%;
    height: calc(var(--task-title-sticky-height, 34px) + var(--task-head-sticky-height, 25px));
    margin-bottom: calc(0px - var(--task-title-sticky-height, 34px) - var(--task-head-sticky-height, 25px));
    background: #fff;
    z-index: 20;
    pointer-events: none;
}

#box.recua {
    margin-right: calc(200px + 1%);
}

.campo-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bt-eye {
    width: 14px;
}

#bt-editar {
    width: 17px;
}

#bt-deletar {
    width: 14px;
}

#bt-13,
#bt-folha,
#bt-fgts,
#bt-inss,
#bt-sindicato {
    width: 25px;
}

.campo-btn:hover {
    cursor: pointer;
}

#bt-status {
    height: 100%;
    width: 100%;
    min-width: 0;
    border: none;
    padding: 4px 6px;
    background-image: linear-gradient(to bottom, rgb(224, 224, 224), rgb(172, 172, 172));
    color: #fff;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bt-status:hover {
    cursor: pointer;
}

.list-status {
    position: fixed;
    visibility: hidden;
    text-align: center;
    background: #fff;
    top: 0;
    left: 0;
    transform: none;
    margin-top: 0;
    padding: 3px;
    width: 120px;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.28);
    z-index: 1450;
    opacity: 1;
}

.list-status.active {
    visibility: visible;
}

.st-pendente {
    background: rgb(196, 196, 196);
    color: #fff;
}

.st-andamento {
    background: rgb(34, 80, 145);
    color: #fff;
}

.st-verificar {
    background: rgb(202, 182, 65);
    color: #fff;
}

.st-analise {
    background: rgb(0, 126, 181);
    color: #fff;
}

.st-concluido {
    background: rgb(3, 127, 76);
    color: #fff;
}

.st-pendente:hover {
    background: rgb(211, 211, 211);
}

.st-andamento:hover {
    background: rgb(32, 108, 190);
}

.st-verificar:hover {
    background: rgb(212, 191, 70);
}

.st-analise:hover {
    background: rgb(6, 146, 206);
}

.st-concluido:hover {
    background: rgb(8, 153, 93);
}

.seta {
    position: absolute;
    right: 1px;
    font-size: 10px;
    color: #555555;
    transition: .2s;
    align-content: center;
    align-items: center;
    margin-top: 1px;
}

.seta.rot {
    transform-origin: 5px 6px;
    transform: rotate(-90deg);
    color: #000;
}

@keyframes abrir {
    0% {
        width: 0;
        height: 0;
    }

    50% {
        width: 110px;
    }

    100% {
        height: 92px;
    }
}

@keyframes fechar {
    0% {
        width: 110px;
        height: 92px;
    }

    50% {
        height: 0px;
    }

    100% {
        width: 0px;
    }
}

.li-status {
    padding: 4px 2px;
    margin-bottom: 3px;
    border-radius: 2px;
    font-size: 12px;
}

.li-status:hover {
    cursor: pointer;
}

#box-tarefa {
    --task-panel-header: #0b2033;
    --task-panel-surface: #101a27;
    --task-panel-border: rgba(148, 163, 184, 0.2);
    --task-panel-text: #e8eef5;
    --task-panel-muted: #99aabd;
    --task-panel-accent: #4aa3df;
    --task-panel-success: #0b675b;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: fixed;
    top: 50px;
    right: 0;
    bottom: 0;
    width: min(760px, 42vw);
    min-width: 420px;
    max-width: calc(100vw - 18px);
    height: calc(100vh - 50px);
    background: var(--task-panel-surface);
    color: var(--task-panel-text);
    visibility: hidden;
    opacity: 0;
    transform: translateX(104%);
    transition: transform .28s ease, opacity .2s ease, visibility .28s ease;
    overflow: hidden;
    z-index: var(--tc-z-task-panel, 4050);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0px 0 0 0px;
    box-shadow: -18px 0 42px rgba(2, 6, 12, 0.44);
    container: task-panel / inline-size;
}

#box-tarefa.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

#box-tarefa::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0px;
    background: linear-gradient(180deg, #09406a, #222e6c 52%, #305496);
    z-index: 3;
}

#box-tarefa > hr {
    display: none;
}

#bt-fechar {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #e7eef8;
    font-size: 16px;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

#bt-fechar:hover {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

#bt-fechar i {
    pointer-events: none;
}

#btn-tema-tarefa {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e7eef8;
    font-size: 14px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

#btn-tema-tarefa:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

#div-cabecalho {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    box-sizing: border-box;
    padding: 14px 18px 14px 64px;
    background: linear-gradient(135deg, var(--task-panel-header), #102d47);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#div-cabecalho::after {
    content: "";
    position: absolute;
    right: 0px;
    bottom: 0;
    left: 0px;
    height: 1px;
    background: linear-gradient(90deg, rgba(85, 182, 255, 0.55), rgba(255, 255, 255, 0));
}

.task-detail-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 3px;
    align-content: center;
    min-height: 68px;
    padding: 10px 16px 10px 70px;
    background:
        radial-gradient(circle at 78% 0%, rgba(66, 153, 225, .12), transparent 34%),
        linear-gradient(135deg, #0a2034, #102d47);
}

.task-detail-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #59b7f3, #2f80b9);
    box-shadow: 1px 0 12px rgba(74, 163, 223, .3);
}

#bt-fechar.task-detail-close {
    top: 15px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 16px;
}

.task-header-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.task-detail-header #h4-tarefa {
    min-width: 0;
    margin: 0;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.015em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-header-details {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.task-detail-header #btn-tema-tarefa {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.task-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: #8bc8ef;
}

.task-header-meta[hidden] {
    display: none;
}

.task-header-meta > i {
    flex: 0 0 auto;
    font-size: 12px;
}

.task-header-meta strong {
    overflow: hidden;
    min-width: 0;
    color: #edf5fb;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-header-company {
    flex: 1 1 auto;
}

.task-header-company strong {
    flex: 0 0 auto;
    max-width: 72px;
}

#p-empresa-razao {
    overflow: hidden;
    min-width: 0;
    color: #9fb2c4;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#p-empresa-razao[hidden] {
    display: none;
}

.task-header-created {
    flex: 0 0 auto;
}

.task-header-created strong {
    max-width: 135px;
}

#tramites {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    border: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #40566c #0f1a27;
    background:
        linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 30, 0.98)),
        linear-gradient(135deg, #182536, #0d1622);
}

#tramites::-webkit-scrollbar {
    width: 10px;
}

#tramites::-webkit-scrollbar-track {
    background: #0f1a27;
}

#tramites::-webkit-scrollbar-thumb {
    background: #40566c;
    border: 2px solid #0f1a27;
    border-radius: 0;
}

#msg1 {
    position: relative;
    align-self: flex-end;
    width: fit-content;
    max-width: min(78%, 540px);
    height: auto;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px 14px 5px 14px;
    background: linear-gradient(135deg, var(--task-panel-success), #07564f);
    color: #f7fffd;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    overflow-wrap: anywhere;
    right: auto;
}

#p-msg img{
    max-width: min(260px, 100%);
    border-radius: 10px;
    margin-top: 7px;
}

#msg2 {
    align-self: flex-start;
    width: fit-content;
    max-width: min(78%, 540px);
    height: auto;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px 14px 14px 5px;
    background: #1a2634;
    color: var(--task-panel-text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    overflow-wrap: anywhere;
}

#box-msg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.tramite-author {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tramite-author-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: rgba(126, 196, 255, 0.18);
    color: #9fd3ff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.tramite-author-avatar > img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}

#p-nome-msg {
    font-weight: bold;
    color: #7ec4ff;
    font-size: 12px;
    line-height: 1.2;
}

#p-data-msg {
    margin: 5px 0 0;
    color: var(--task-panel-muted);
    font-size: 11px;
    line-height: 1.2;
    text-align: right;
}

#msg1 #p-data-msg {
    color: rgba(240, 253, 250, 0.82);
}

#p-msg {
    margin: 0;
    font-size: 14px;
    line-height: 1.38;
    white-space: pre-wrap;
}

#p-msg:empty {
    display: none;
}

.tramite-mention {
    display: inline;
    padding: 1px 5px 2px;
    color: #d8efff;
    font-weight: 720;
    background: rgba(126, 196, 255, .18);
    border: 1px solid rgba(126, 196, 255, .2);
    border-radius: 5px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

#box-tarefa.modo-claro .tramite-mention {
    color: #245f96;
    background: #e7f2fb;
    border-color: #cfe0ed;
}

#escrever {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 auto;
    height: auto;
    padding: 12px 18px 14px;
    border-top: 1px solid var(--task-panel-border);
    background: rgba(13, 23, 34, 0.98);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.22);
}

#resposta {
    width: 100%;
    box-sizing: border-box;
    background: #142232;
    color: var(--task-panel-text);
}

#box-tarefa.modo-claro {
    --task-panel-header: #fff;
    --task-panel-surface: #fff;
    --task-panel-border: #e5e7eb;
    --task-panel-text: #30343b;
    --task-panel-muted: #6b7280;
    --task-panel-accent: #2f6fa7;
    background: #fff;
    color: var(--task-panel-text);
    border-left-color: rgba(17, 24, 39, 0.12);
    box-shadow: -18px 0 38px rgba(15, 23, 42, 0.18);
}

#box-tarefa.modo-claro::before {
    display: none;
}

#box-tarefa.modo-claro #div-cabecalho {
    background: #fff;
    border-bottom: 1px solid var(--task-panel-border);
}

#box-tarefa.modo-claro #div-cabecalho.task-detail-header {
    min-height: 68px;
    background:
        radial-gradient(circle at 78% 0%, rgba(47, 111, 167, .06), transparent 34%),
        linear-gradient(135deg, #fff, #f8fbfd);
}

#box-tarefa.modo-claro .task-detail-header::before {
    display: block;
    background: linear-gradient(180deg, #4aa3df, #2f6fa7);
    box-shadow: 1px 0 10px rgba(47, 111, 167, .2);
}

#box-tarefa.modo-claro #div-cabecalho::after {
    display: none;
}

#box-tarefa.modo-claro #bt-fechar,
#box-tarefa.modo-claro #btn-tema-tarefa {
    border-color: transparent;
    background: transparent;
    color: #4b5563;
}

#box-tarefa.modo-claro #bt-fechar:hover,
#box-tarefa.modo-claro #btn-tema-tarefa:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827;
}

#box-tarefa.modo-claro #btn-tema-tarefa {
    background: #f8fafc;
    border-color: #e5e7eb;
}

#box-tarefa.modo-claro .task-detail-header #h4-tarefa {
    color: #17202b;
    font-size: 16px;
    font-weight: 750;
}

#box-tarefa.modo-claro .task-header-meta {
    color: #397ba9;
}

#box-tarefa.modo-claro .task-header-meta strong {
    color: #253445;
}

#box-tarefa.modo-claro #p-empresa-razao {
    color: #66788a;
}

#box-tarefa.modo-claro #tramites {
    scrollbar-color: #cbd5e1 #fff;
    background: #fff;
}

#box-tarefa.modo-claro #tramites::-webkit-scrollbar-track {
    background: #fff;
}

#box-tarefa.modo-claro #tramites::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-color: #fff;
}

#box-tarefa.modo-claro #msg1 {
    border-color: #e1e5eb;
    background: #f0f2f5;
    color: #30343b;
    box-shadow: none;
}

#box-tarefa.modo-claro #msg2 {
    border-color: #e1e5eb;
    background: #fff;
    color: #30343b;
    box-shadow: none;
}

#box-tarefa.modo-claro #p-nome-msg {
    color: #245f96;
}

#box-tarefa.modo-claro .tramite-author-avatar {
    background: #e7f2fb;
    color: #245f96;
}

#box-tarefa.modo-claro #p-data-msg,
#box-tarefa.modo-claro #msg1 #p-data-msg {
    color: #6b7280;
}

#box-tarefa.modo-claro #escrever {
    background: #fff;
    border-top-color: #e5e7eb;
    box-shadow: none;
}

#box-tarefa.modo-claro #btn-clip {
    border-color: transparent;
    background: transparent;
    color: #64748b;
}

#box-tarefa.modo-claro #btn-clip:hover {
    border-color: transparent;
    background: #f3f4f6;
    color: #2f6fa7;
}

#box-tarefa.modo-claro #btn-mention {
    border-color: transparent;
    background: transparent;
    color: #64748b;
}

#box-tarefa.modo-claro #btn-mention:hover,
#box-tarefa.modo-claro #btn-mention[aria-expanded="true"] {
    border-color: transparent;
    background: #eef4fa;
    color: #2f6fa7;
}

#box-tarefa.modo-claro #task-message-status {
    color: #253445;
    border-color: #d8dee7;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

#box-tarefa.modo-claro #task-message-status[data-tone="success"] {
    color: #17634f;
    border-color: #b9e3d5;
    background: #eefaf6;
}

#box-tarefa.modo-claro #task-message-status[data-tone="error"] {
    color: #a33d37;
    border-color: #efcac7;
    background: #fff5f4;
}

#box-tarefa.modo-claro #resposta {
    border-color: #d8dee7;
    background: #fff;
    color: #30343b;
    box-shadow: none;
}

#box-tarefa.modo-claro #resposta::placeholder {
    color: #9aa3af;
}

#box-tarefa.modo-claro #resposta:focus {
    border-color: #2f6fa7;
    box-shadow: 0 0 0 3px rgba(47, 111, 167, 0.14);
}

#box-tarefa.modo-claro .attachment-preview {
    background: #fff;
    border-color: #e1e5eb;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    color: #30343b;
}

#box-tarefa.modo-claro .attachment-preview img {
    border-color: #e1e5eb;
}

#box-tarefa.modo-claro .preview-file-icon {
    background: #eef4fa;
    color: #2f6fa7;
}

#box-tarefa.modo-claro .preview-file-detail,
#box-tarefa.modo-claro .tramite-file-detail {
    color: #6b7280;
}

#box-tarefa.modo-claro #remover-preview {
    background: #f3f4f6;
    color: #4b5563;
}

#box-tarefa.modo-claro #remover-preview:hover {
    background: #e5e7eb;
    color: #111827;
}

#box-tarefa.modo-claro .tramite-file,
#box-tarefa.modo-claro #msg1 .tramite-file,
#box-tarefa.modo-claro #msg2 .tramite-file {
    background: #fff;
    border-color: #e1e5eb;
    color: #30343b;
}

#box-tarefa.modo-claro .tramite-file:hover,
#box-tarefa.modo-claro #msg1 .tramite-file:hover,
#box-tarefa.modo-claro #msg2 .tramite-file:hover {
    background: #f8fafc;
    border-color: #cfd8e3;
}

#box-tarefa.modo-claro .tramite-file-icon,
#box-tarefa.modo-claro #msg2 .tramite-file-icon {
    background: #eef4fa;
    color: #2f6fa7;
}

#box-tarefa.modo-claro .tramite-file-open,
#box-tarefa.modo-claro #msg1 .tramite-file-open,
#box-tarefa.modo-claro #msg2 .tramite-file-open {
    color: #6b7280;
}

@container task-panel (max-width: 640px) {
    .task-detail-header {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
        row-gap: 3px;
        min-height: 68px;
        padding-right: 12px;
        padding-left: 64px;
    }

    .task-detail-header .task-header-details {
        gap: 10px;
    }

    .task-detail-header .task-header-created strong {
        max-width: 122px;
    }

    .task-detail-header #btn-tema-tarefa {
        width: 30px;
        height: 30px;
    }

    #bt-fechar.task-detail-close {
        top: 16px;
        left: 14px;
        width: 36px;
        height: 36px;
    }
}

@container task-panel (max-width: 440px) {
    .task-detail-header {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 7px;
        row-gap: 2px;
        padding-right: 10px;
        padding-left: 56px;
    }

    .task-detail-header #h4-tarefa {
        font-size: 15px;
    }

    .task-detail-header .task-header-details {
        gap: 8px;
    }

    .task-detail-header .task-header-meta {
        gap: 4px;
    }

    .task-detail-header .task-header-meta > i {
        font-size: 10px;
    }

    .task-detail-header .task-header-meta strong {
        font-size: 10px;
    }

    .task-detail-header .task-header-created strong {
        max-width: 108px;
    }

    .task-detail-header #btn-tema-tarefa {
        width: 28px;
        height: 28px;
    }

    #bt-fechar.task-detail-close {
        left: 12px;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 900px) {
    #box-tarefa {
        width: min(100vw, 560px);
        min-width: 0;
        max-width: 100vw;
        border-radius: 0;
    }
}

@media (max-width: 520px) {
    #msg1,
    #msg2 {
        max-width: 92%;
    }
}

/* Projetos e etapas: recurso exclusivo do quadro de Desenvolvimento. */
@media (min-width: 769px) {
    .container-dev.task-table .row > .item,
    .container-dev.task-table .row > .task-row-actions > .item {
        height: 28px;
        min-height: 28px;
    }

    .container-dev.task-table .row > [data-col-id="progresso"] {
        padding: 2px 10px;
    }
}

.container-dev .row > [data-col-id="tarefa"] {
    flex-direction: row;
    align-items: stretch !important;
    justify-content: center !important;
}

.development-task-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 42px;
}

.development-task-heading .task-cell-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-open {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 26px;
    min-height: 26px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #667c90;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    opacity: .72;
    transform: translateY(-50%);
    transition: background .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease, transform .16s ease;
}

.development-project-open:hover {
    border-color: rgba(33, 111, 184, .18);
    background: rgba(33, 111, 184, .08);
    color: #216fb8;
    opacity: 1;
    transform: translateY(calc(-50% - 1px));
}

.development-project-open[aria-expanded="true"] {
    border-color: rgba(33, 111, 184, .24);
    background: rgba(33, 111, 184, .11);
    color: #216fb8;
    opacity: 1;
}

.development-project-open:focus-visible {
    outline: 2px solid rgba(33, 111, 184, .3);
    outline-offset: 1px;
    opacity: 1;
}

.development-project-open i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .development-task-heading {
        align-items: flex-start;
    }

    .development-task-heading .task-cell-content {
        white-space: normal;
    }

}

.container-dev.task-table .development-project-owner-cell {
    overflow: visible;
    padding: 2px 7px;
}

.development-project-owner-inline-wrap {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr) 21px;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    height: 24px;
    box-sizing: border-box;
    padding: 1px 6px 1px 2px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #52657a;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.development-project-owner-inline-wrap:hover {
    border-color: rgba(33, 111, 184, .17);
    background: rgba(33, 111, 184, .055);
}

.development-project-owner-inline-wrap:focus-within {
    border-color: rgba(33, 111, 184, .34);
    background: rgba(33, 111, 184, .075);
    box-shadow: 0 0 0 2px rgba(33, 111, 184, .09);
}

.development-project-owner-inline-icon {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(33, 111, 184, .1);
    color: #3478ae;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .02em;
}

.development-project-owner-inline-icon.has-owner {
    border: 1px solid rgba(33, 111, 184, .2);
    background: linear-gradient(135deg, rgba(33, 111, 184, .16), rgba(37, 166, 125, .13));
}

.development-project-owner-inline {
    overflow: hidden;
    min-width: 0;
    width: 100%;
    height: 21px;
    padding: 0;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent !important;
    background-color: transparent !important;
    color: inherit;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.container-dev.task-table .development-project-owner-inline:is(:hover, :focus, :active, :disabled) {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
}

.container-dev.task-table .development-project-owner-inline:-webkit-autofill,
.container-dev.task-table .development-project-owner-inline:-webkit-autofill:hover,
.container-dev.task-table .development-project-owner-inline:-webkit-autofill:focus {
    -webkit-text-fill-color: currentColor;
    box-shadow: 0 0 0 1000px transparent inset !important;
    transition: background-color 9999s ease-out 0s;
}

.development-project-owner-inline::-webkit-search-cancel-button {
    display: none;
}

.development-project-owner-inline::placeholder {
    color: #8191a0;
    font-weight: 600;
    opacity: 1;
}

.development-project-owner-inline-chevron {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #7e91a3;
    font-size: 8px;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

.development-project-owner-inline-chevron:hover,
.development-project-owner-inline-wrap.is-open .development-project-owner-inline-chevron {
    background: rgba(33, 111, 184, .1);
    color: #216fb8;
}

.development-project-owner-inline-chevron i {
    transition: transform .16s ease;
}

.development-project-owner-inline-wrap.is-open .development-project-owner-inline-chevron i {
    transform: rotate(180deg);
}

.development-project-owner-inline-wrap.is-saving {
    opacity: .58;
    cursor: progress;
}

.development-project-owner-inline:disabled {
    cursor: progress;
}

.development-project-owner-options {
    position: fixed;
    z-index: 1800;
    display: grid;
    max-height: min(270px, calc(100vh - 24px));
    box-sizing: border-box;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(31, 73, 106, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 44px rgba(12, 40, 63, .24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    scrollbar-width: thin;
    scrollbar-color: #b9cad9 transparent;
    animation: development-project-owner-menu-in .14s ease-out both;
}

.development-project-owner-options[hidden] {
    display: none;
}

.development-project-owner-options.is-above {
    transform-origin: bottom center;
}

.development-project-owner-option {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #263e53;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease;
}

.development-project-owner-option:hover,
.development-project-owner-option.is-active {
    background: rgba(33, 111, 184, .09);
}

.development-project-owner-option.is-active {
    transform: translateX(2px);
}

.development-project-owner-option-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(33, 111, 184, .22);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(33, 111, 184, .16), rgba(37, 166, 125, .13));
    color: #245f91;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .025em;
}

.development-project-owner-option.is-empty .development-project-owner-option-avatar {
    border-color: rgba(103, 119, 133, .18);
    background: #f1f4f7;
    color: #718293;
}

.development-project-owner-option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.development-project-owner-option-copy strong,
.development-project-owner-option-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-owner-option-copy strong {
    color: #263e53;
    font-size: 10px;
    font-weight: 800;
}

.development-project-owner-option-copy small,
.development-project-owner-empty {
    color: #748698;
    font-size: 8px;
}

.development-project-owner-option-check {
    color: #25845f;
    font-size: 9px;
    opacity: 0;
}

.development-project-owner-option[data-selected="true"] .development-project-owner-option-check {
    opacity: 1;
}

.development-project-owner-empty {
    display: block;
    padding: 14px 10px;
    text-align: center;
}

@keyframes development-project-owner-menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.development-project-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 7px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    color: #52657a;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.development-project-progress-label {
    overflow: hidden;
    width: 36px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-progress-empty {
    display: block;
    width: 100%;
    color: #8293a5;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}

.development-project-progress-track {
    display: block;
    overflow: hidden;
    height: 9px;
    border-radius: 0;
    background: linear-gradient(180deg, #e7edf3 0%, #d3dde7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        inset 0 0 0 1px rgba(47, 111, 167, .1);
}

.development-project-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #2ca67a;
    transition: width .25s ease;
}

.development-project-progress-track > span {
    border-radius: 0;
    box-shadow: none;
}

.development-project-progress[data-progress="100"] .development-project-progress-track > span {
    background: #2ca67a;
}

#box-tarefa {
    --project-panel-soft: #152435;
    --project-panel-soft-2: #1b2d40;
    --project-panel-input: #101c29;
    --project-panel-hover: #21384e;
    --project-panel-danger: #f18b85;
}

#box-tarefa.modo-claro {
    --project-panel-soft: #f6f8fb;
    --project-panel-soft-2: #edf2f7;
    --project-panel-input: #fff;
    --project-panel-hover: #e8f1f8;
    --project-panel-danger: #b42318;
}

#box-tarefa.development-project-panel #div-cabecalho {
    min-height: 48px;
    padding: 8px 14px 8px 56px;
}

#box-tarefa.development-project-panel {
    left: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: calc(100dvh - 50px);
    transition: left .28s cubic-bezier(.4, 0, .2, 1), transform .28s ease, opacity .2s ease, visibility .28s ease;
}

@media (min-width: 901px) {
    html.pessoal-sidebar-aberta #box-tarefa.development-project-panel {
        left: 0;
    }
}

#box-tarefa.development-project-panel #bt-fechar {
    top: 8px;
    width: 32px;
    height: 32px;
}

#box-tarefa.development-project-panel #btn-tema-tarefa {
    width: 30px;
    height: 30px;
}

#box-tarefa.development-project-panel #h4-tarefa {
    font-size: 13px;
}

#box-tarefa.development-project-panel #p-data {
    font-size: 10px;
}

.development-panel-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    padding: 3px 12px 0;
    border-bottom: 1px solid var(--task-panel-border);
    background: var(--task-panel-surface);
}

.development-panel-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 9px 7px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--task-panel-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.development-panel-tabs button:hover,
.development-panel-tabs button.active {
    border-bottom-color: var(--task-panel-accent);
    color: var(--task-panel-accent);
}

.development-panel-content {
    flex: 1 1 auto;
    min-height: 0;
}

.development-panel-content[hidden] {
    display: none !important;
}

.development-project-comments {
    display: flex;
    flex-direction: column;
}

.development-project-stages {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px 12px;
    overflow: hidden;
    background: var(--task-panel-surface);
    scrollbar-width: thin;
}

.development-stage-command-bar {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr);
    gap: 7px;
    flex: 0 0 auto;
    align-items: center;
}

.development-stage-create {
    position: static;
    flex: 0 0 auto;
    border: 1px solid var(--task-panel-border);
    border-radius: 8px;
    background: var(--project-panel-soft);
}

.development-stage-create > summary {
    min-height: 31px;
    box-sizing: border-box;
    padding: 8px 10px;
    color: var(--task-panel-text);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.development-stage-create > summary::-webkit-details-marker {
    display: none;
}

.development-stage-create > summary i {
    margin-right: 5px;
    color: var(--task-panel-accent);
}

.development-stage-create[open] > summary {
    border-bottom: 1px solid var(--task-panel-border);
}

.development-stage-create-content {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    max-height: min(300px, 48vh);
    box-sizing: border-box;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--task-panel-border);
    border-radius: 10px;
    background: var(--project-panel-soft);
    box-shadow: 0 18px 44px rgba(2, 8, 18, .3);
}

.development-stage-create:not([open]) > .development-stage-create-content {
    display: none;
}

.development-stage-create form,
.development-company-stage-create {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.development-stage-create label {
    color: var(--task-panel-text);
    font-size: 10px;
    font-weight: 800;
}

.development-stage-create label small {
    color: var(--task-panel-muted);
    font-weight: 500;
}

.development-stage-create textarea,
.development-stage-create input,
.development-stage-toolbar input,
.development-stage-toolbar select {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--task-panel-border);
    border-radius: 8px;
    outline: none;
    background: var(--project-panel-input);
    color: var(--task-panel-text);
    font: inherit;
    font-size: 11px;
}

.development-stage-create textarea {
    min-height: 64px;
    padding: 7px 9px;
    resize: vertical;
}

.development-stage-create input,
.development-stage-toolbar input,
.development-stage-toolbar select {
    min-height: 31px;
    padding: 6px 8px;
}

.development-stage-create :is(textarea, input):focus,
.development-stage-toolbar :is(input, select):focus {
    border-color: var(--task-panel-accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 167, .14);
}

.development-stage-create button {
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid rgba(47, 111, 167, .35);
    border-radius: 8px;
    background: #2f6fa7;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.development-stage-create button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.development-company-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.development-company-results {
    min-height: 58px;
    max-height: 110px;
    padding: 5px;
    overflow-y: auto;
    border: 1px solid var(--task-panel-border);
    border-radius: 8px;
    background: var(--project-panel-input);
}

.development-company-results > p {
    margin: 0;
    padding: 9px;
    color: var(--task-panel-muted);
    font-size: 10px;
    line-height: 1.4;
}

.development-company-option {
    display: grid;
    grid-template-columns: 18px auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 5px 6px;
    border-radius: 6px;
    color: var(--task-panel-text);
    cursor: pointer;
}

.development-company-option:hover {
    background: var(--project-panel-hover);
}

.development-company-option span {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-company-option small {
    color: var(--task-panel-accent);
    font-size: 9px;
    font-weight: 800;
}

.development-stage-create .development-add-all-companies {
    border-color: var(--task-panel-border);
    background: transparent;
    color: var(--task-panel-accent);
}

.development-stage-toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 112px auto auto;
    align-items: center;
    gap: 7px;
}

.development-stage-toolbar label {
    position: relative;
}

.development-stage-toolbar label i {
    position: absolute;
    top: 50%;
    left: 10px;
    color: var(--task-panel-muted);
    font-size: 10px;
    transform: translateY(-50%);
}

.development-stage-toolbar input {
    padding-left: 28px;
}

.development-stage-toggle-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 31px;
    box-sizing: border-box;
    padding: 6px 9px;
    border: 1px solid var(--task-panel-border);
    border-radius: 8px;
    background: transparent;
    color: var(--task-panel-accent);
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.development-stage-toggle-all:hover:not(:disabled),
.development-stage-toggle-all:focus-visible {
    border-color: rgba(47, 111, 167, .4);
    outline: none;
    background: rgba(47, 111, 167, .1);
}

.development-stage-toggle-all:disabled {
    cursor: default;
    opacity: .42;
}

.development-stage-visible {
    min-width: 82px;
    color: var(--task-panel-muted);
    font-size: 9px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.development-stage-feedback {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 24;
    display: none;
    width: fit-content;
    max-width: min(420px, calc(100% - 36px));
    box-sizing: border-box;
    padding: 7px 11px;
    border: 1px solid var(--task-panel-border);
    border-radius: 8px;
    background: var(--project-panel-input);
    color: var(--task-panel-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 8px 24px rgba(2, 8, 18, .16);
    pointer-events: none;
}

.development-stage-feedback:not(:empty) {
    display: block;
    animation: development-stage-feedback-in .16s ease-out both;
}

.development-stage-feedback.is-error {
    border-color: rgba(180, 35, 24, .28);
    background: rgba(180, 35, 24, .08);
    color: var(--project-panel-danger);
}

@keyframes development-stage-feedback-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.development-stage-list {
    display: block;
    flex: 1 1 auto;
    gap: 5px;
    min-height: 0;
    margin: 0;
    padding: 0 4px 4px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    list-style: none;
}

.development-stage-list.is-reordering {
    user-select: none;
}

.development-stage-empty {
    padding: 18px 12px;
    border: 1px dashed var(--task-panel-border);
    border-radius: 10px;
    color: var(--task-panel-muted);
    font-size: 11px;
    text-align: center;
}

.development-stage-item {
    --stage-indent: min(calc(var(--stage-depth, 0) * 28px), 168px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(38px, auto) 26px minmax(0, 1fr) 18px auto auto;
    align-items: center;
    gap: 7px;
    width: calc(100% - var(--stage-indent));
    min-height: 38px;
    box-sizing: border-box;
    margin-left: var(--stage-indent);
    padding: 4px 6px;
    border: 1px solid var(--task-panel-border);
    border-left: 3px solid rgba(47, 111, 167, .55);
    border-radius: 9px;
    background: var(--project-panel-input);
    list-style: none;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.development-stage-item + .development-stage-item {
    margin-top: 5px;
}

.development-stage-item[data-project-stage-level]:not([data-project-stage-level="0"]) {
    border-left-color: rgba(50, 166, 125, .6);
}

.development-stage-item[data-project-stage-level]:not([data-project-stage-level="0"])::before {
    position: absolute;
    top: -6px;
    bottom: 50%;
    left: -16px;
    width: 11px;
    border-bottom: 1px solid rgba(105, 137, 164, .45);
    border-left: 1px solid rgba(105, 137, 164, .45);
    border-radius: 0 0 0 7px;
    content: "";
    pointer-events: none;
}

.development-stage-item:hover {
    border-color: rgba(47, 111, 167, .38);
    border-left-color: var(--task-panel-accent);
    background: var(--project-panel-hover);
    box-shadow: 0 4px 14px rgba(2, 8, 18, .08);
}

.development-stage-drag-handle {
    display: grid;
    place-items: center;
    width: 18px;
    height: 28px;
    color: var(--task-panel-muted);
    font-size: 12px;
    cursor: grab;
    opacity: .42;
    transition: color .15s ease, opacity .15s ease;
}

.development-stage-item:hover .development-stage-drag-handle {
    color: var(--task-panel-accent);
    opacity: .9;
}

.development-stage-drag-handle:active {
    cursor: grabbing;
}

.development-stage-list.is-reordering .development-stage-item.is-dragging {
    border-style: dashed;
    opacity: .4;
}

.development-stage-item.is-drop-before::after,
.development-stage-item.is-drop-after::after {
    position: absolute;
    right: 3px;
    left: 3px;
    z-index: 2;
    height: 2px;
    border-radius: 0;
    background: var(--task-panel-accent);
    box-shadow: 0 0 0 1px var(--project-panel-input), 0 0 8px rgba(47, 111, 167, .45);
    content: "";
    pointer-events: none;
}

.development-stage-item.is-drop-before::after {
    top: -4px;
}

.development-stage-item.is-drop-after::after {
    bottom: -4px;
}

.development-stage-item.is-complete {
    opacity: .76;
}

.development-stage-item.is-group {
    min-height: 46px;
    border-left-color: var(--task-panel-accent);
    background: linear-gradient(90deg, rgba(47, 111, 167, .09), var(--project-panel-input) 52%);
}

.development-stage-item.is-group.is-complete {
    opacity: 1;
    border-left-color: #29936a;
    background: linear-gradient(90deg, rgba(41, 147, 106, .1), var(--project-panel-input) 52%);
}

.development-stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-width: 36px;
    height: 24px;
    box-sizing: border-box;
    padding: 0 7px;
    border: 1px solid var(--task-panel-border);
    border-radius: 999px;
    background: var(--project-panel-soft-2);
    color: var(--task-panel-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .02em;
}

.development-stage-check {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid #91a4b7;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    cursor: pointer;
}

.development-stage-item.is-complete .development-stage-check {
    border-color: #29936a;
    background: #29936a;
    color: #fff;
}

.development-stage-group-indicator {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    box-sizing: border-box;
    border: 1px solid rgba(47, 111, 167, .34);
    border-radius: 7px;
    background: rgba(47, 111, 167, .12);
    color: var(--task-panel-accent);
    font-size: 10px;
}

.development-stage-item.is-group.is-complete .development-stage-group-indicator {
    border-color: #29936a;
    background: #29936a;
    color: #fff;
}

.development-stage-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.development-stage-group-toggle {
    width: 100%;
    margin: -3px -4px;
    padding: 3px 4px;
    border: 0;
    border-radius: 7px;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.development-stage-group-toggle:hover {
    background: rgba(47, 111, 167, .08);
}

.development-stage-group-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(47, 111, 167, .28);
}

.development-stage-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.development-stage-group-title > i {
    flex: 0 0 auto;
    color: var(--task-panel-accent);
    font-size: 9px;
    transition: transform .18s ease;
}

.development-stage-item.is-collapsed .development-stage-group-title > i {
    transform: rotate(-90deg);
}

.development-stage-group-title > strong {
    min-width: 0;
}

.development-stage-info strong {
    overflow: hidden;
    color: var(--task-panel-text);
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-stage-hierarchy-actions,
.development-stage-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.development-stage-hierarchy-actions {
    padding-right: 6px;
    border-right: 1px solid var(--task-panel-border);
}

.development-stage-hierarchy-actions button {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--task-panel-muted);
    cursor: pointer;
}

.development-stage-hierarchy-actions button:hover:not(:disabled),
.development-stage-hierarchy-actions button:focus-visible {
    outline: none;
    background: rgba(47, 111, 167, .12);
    color: var(--task-panel-accent);
}

.development-stage-hierarchy-actions button:disabled {
    cursor: default;
    opacity: .22;
}

.development-stage-edit,
.development-stage-delete,
.development-stage-edit-save,
.development-stage-edit-cancel {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--task-panel-muted);
    cursor: pointer;
}

.development-stage-edit:hover {
    background: rgba(47, 111, 167, .12);
    color: var(--task-panel-accent);
}

.development-stage-delete:hover {
    background: rgba(180, 35, 24, .1);
    color: var(--project-panel-danger);
}

.task-page .task-row-action-button {
    --task-panel-muted: #6b7280;
    --task-panel-accent: #2f6fa7;
    --project-panel-danger: #b42318;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    font-size: 13px;
    line-height: 1;
}

.development-stage-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 27px 27px;
    align-items: center;
    grid-column: 3 / -1;
    gap: 4px;
    min-width: 0;
}

.development-stage-edit-form input {
    width: 100%;
    min-width: 0;
    height: 28px;
    box-sizing: border-box;
    padding: 4px 8px;
    border: 1px solid var(--task-panel-accent);
    border-radius: 7px;
    outline: none;
    background: var(--project-panel-input);
    color: var(--task-panel-text);
    font: inherit;
    font-size: 11px;
}

.development-stage-edit-form input:focus {
    box-shadow: 0 0 0 3px rgba(47, 111, 167, .16);
}

.development-stage-edit-save {
    background: rgba(41, 147, 106, .14);
    color: #29936a;
}

.development-stage-edit-cancel {
    background: var(--project-panel-soft-2);
    color: var(--task-panel-muted);
}

.development-stage-edit-save:hover {
    background: #29936a;
    color: #fff;
}

.development-stage-edit-cancel:hover {
    background: rgba(180, 35, 24, .1);
    color: var(--project-panel-danger);
}

@media (max-width: 680px) {
    .development-stage-command-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .development-stage-create-content {
        grid-template-columns: minmax(0, 1fr);
        max-height: min(420px, 62vh);
    }

    .development-company-results {
        max-height: 120px;
    }

    .development-stage-item {
        --stage-indent: min(calc(var(--stage-depth, 0) * 18px), 72px);
        grid-template-columns: minmax(34px, auto) 26px minmax(0, 1fr) 18px auto;
    }

    .development-stage-hierarchy-actions {
        grid-column: 3 / -1;
        grid-row: 2;
        justify-self: end;
        padding-top: 3px;
        padding-right: 0;
        border-top: 1px solid var(--task-panel-border);
        border-right: 0;
    }

    .development-stage-edit-form {
        grid-column: 3 / -1;
    }
}

@media (max-width: 420px) {
    .development-panel-tabs {
        padding-right: 6px;
        padding-left: 6px;
    }

    .development-panel-tabs button {
        gap: 5px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 10px;
    }

    .development-project-stages {
        padding: 8px 9px;
    }

    .development-stage-feedback {
        right: 9px;
        bottom: 10px;
        left: 9px;
        width: auto;
        max-width: none;
    }

    .development-stage-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .development-stage-visible {
        display: none;
    }

    .development-company-search-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .development-task-heading {
        padding-right: 40px;
    }

    .development-project-progress {
        width: 100%;
    }

}

/* Painel de projeto: visão executiva exclusiva de Desenvolvimento. */
#box-tarefa.development-project-panel {
    --project-dashboard-bg: #081522;
    --project-dashboard-card: #0d1d2c;
    --project-dashboard-card-strong: #102438;
    --project-dashboard-border: rgba(125, 158, 188, .2);
    --project-dashboard-text: #edf5fc;
    --project-dashboard-muted: #8da3b8;
    --project-dashboard-accent: #2d9df4;
    --project-dashboard-success: #25c99a;
    background: var(--project-dashboard-bg);
}

#box-tarefa.development-project-panel.modo-claro {
    --project-dashboard-bg: #f4f7fb;
    --project-dashboard-card: #fff;
    --project-dashboard-card-strong: #f7f9fc;
    --project-dashboard-border: #dce4ee;
    --project-dashboard-text: #172234;
    --project-dashboard-muted: #68798d;
    --project-dashboard-accent: #247bc0;
    --project-dashboard-success: #15956f;
    background: var(--project-dashboard-bg);
}

#box-tarefa.development-project-panel #div-cabecalho {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 64px;
    box-sizing: border-box;
    padding: 6px 14px 7px;
    border-bottom: 1px solid var(--project-dashboard-border);
    background:
        radial-gradient(circle at 78% -60%, rgba(45, 157, 244, .18), transparent 42%),
        var(--project-dashboard-bg);
}

#box-tarefa.development-project-panel.modo-claro #div-cabecalho {
    min-height: 64px;
    background:
        radial-gradient(circle at 78% -60%, rgba(36, 123, 192, .12), transparent 42%),
        var(--project-dashboard-bg);
}

.development-project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--project-dashboard-muted);
    font-size: 8px;
}

.development-project-breadcrumb i:first-child {
    color: var(--project-dashboard-accent);
}

.development-project-breadcrumb i:not(:first-child) {
    font-size: 7px;
    opacity: .65;
}

.development-project-breadcrumb strong {
    overflow: hidden;
    color: var(--project-dashboard-text);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-title-row {
    display: grid;
    grid-template-columns: 34px minmax(220px, 1fr) auto minmax(14px, .35fr) minmax(150px, auto) minmax(135px, auto) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.development-project-title-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(45, 157, 244, .32);
    border-radius: 11px;
    background: rgba(45, 157, 244, .12);
    color: var(--project-dashboard-accent);
    font-size: 15px;
}

.development-project-title-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.development-project-title-copy > span {
    color: var(--project-dashboard-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#box-tarefa.development-project-panel #h4-tarefa {
    overflow: hidden;
    margin: 0;
    color: var(--project-dashboard-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    box-sizing: border-box;
    padding: 4px 9px;
    border: 1px solid rgba(45, 157, 244, .34);
    border-radius: 999px;
    background: rgba(45, 157, 244, .12);
    color: #55b6ff;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.development-project-status > i {
    font-size: 7px;
}

.development-project-status[data-status="CONCLUIDO"] {
    border-color: rgba(37, 201, 154, .34);
    background: rgba(37, 201, 154, .12);
    color: var(--project-dashboard-success);
}

.development-project-status[data-status="PENDENTE"] {
    border-color: rgba(141, 163, 184, .3);
    background: rgba(141, 163, 184, .1);
    color: var(--project-dashboard-muted);
}

.development-project-header-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid var(--project-dashboard-border);
}

.development-project-header-meta > i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: rgba(45, 157, 244, .1);
    color: var(--project-dashboard-accent);
    font-size: 12px;
}

.development-project-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 1px solid rgba(45, 157, 244, .25);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 157, 244, .45), rgba(37, 201, 154, .28));
    color: var(--project-dashboard-text);
    font-size: 9px;
    font-weight: 900;
}

.development-project-header-meta > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.development-project-header-meta small {
    color: var(--project-dashboard-muted);
    font-size: 8px;
    font-weight: 600;
}

.development-project-header-meta strong,
#box-tarefa.development-project-panel #p-data {
    overflow: hidden;
    max-width: 150px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--project-dashboard-text);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#box-tarefa.development-project-panel .development-project-header-actions #bt-fechar,
#box-tarefa.development-project-panel .development-project-header-actions #btn-tema-tarefa {
    position: static;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--project-dashboard-border);
    border-radius: 9px;
    background: var(--project-dashboard-card);
    color: var(--project-dashboard-muted);
}

.development-project-side-ring {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--project-dashboard-success) var(--project-progress), rgba(117, 145, 171, .22) 0);
}

.development-project-side-ring::before {
    display: grid;
    place-items: center;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 50%;
    background: var(--project-dashboard-card);
}

#box-tarefa.development-project-panel .development-panel-tabs {
    display: flex;
    gap: 20px;
    min-height: 32px;
    box-sizing: border-box;
    padding: 0 18px;
    border-bottom: 1px solid var(--project-dashboard-border);
    background: var(--project-dashboard-bg);
}

#box-tarefa.development-project-panel .development-panel-tabs button {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 7px;
    min-height: 32px;
    padding: 4px 2px;
    color: var(--project-dashboard-muted);
    font-size: 10px;
}

.development-panel-tabs button small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    box-sizing: border-box;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(117, 145, 171, .14);
    color: inherit;
    font-size: 8px;
}

#box-tarefa.development-project-panel .development-panel-tabs button.active {
    color: var(--project-dashboard-accent);
}

#box-tarefa.development-project-panel .development-project-stages {
    gap: 0;
    padding: 4px 8px 8px;
    background: var(--project-dashboard-bg);
}

.development-project-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(238px, 276px);
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
}

.development-stage-board {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--project-dashboard-border);
    border-radius: 11px;
    background: var(--project-dashboard-card);
}

#box-tarefa.development-project-panel .development-stage-command-bar {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr);
    gap: 8px;
    padding: 4px 7px;
    border-bottom: 1px solid var(--project-dashboard-border);
    background: var(--project-dashboard-card-strong);
}

#box-tarefa.development-project-panel .development-stage-create {
    border-color: rgba(45, 157, 244, .4);
    background: var(--project-dashboard-accent);
}

#box-tarefa.development-project-panel .development-stage-create > summary,
#box-tarefa.development-project-panel .development-stage-create > summary i {
    color: #fff;
}

#box-tarefa.development-project-panel .development-stage-create-content {
    top: 51px;
    right: 10px;
    left: 10px;
    border-color: var(--project-dashboard-border);
    background: var(--project-dashboard-card-strong);
}

#box-tarefa.development-project-panel .development-stage-toolbar {
    grid-template-columns: minmax(150px, 1fr) 110px auto auto;
}

#box-tarefa.development-project-panel .development-stage-toggle-all {
    border-color: var(--project-dashboard-border);
    color: var(--project-dashboard-accent);
}

#box-tarefa.development-project-panel .development-stage-toggle-all:hover:not(:disabled),
#box-tarefa.development-project-panel .development-stage-toggle-all:focus-visible {
    border-color: rgba(45, 157, 244, .42);
    background: rgba(45, 157, 244, .1);
}

.development-stage-list-header {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 92px minmax(120px, 145px) 102px 124px 90px;
    gap: 6px;
    padding: 5px 8px;
    border-bottom: 1px solid var(--project-dashboard-border);
    color: var(--project-dashboard-muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.development-stage-list-header span:nth-child(n + 2) {
    text-align: center;
}

#box-tarefa.development-project-panel .development-stage-list {
    padding: 0;
    overflow: auto;
    background: var(--project-dashboard-card);
}

#box-tarefa.development-project-panel .development-stage-item {
    --stage-indent: min(calc(var(--stage-depth, 0) * 22px), 110px);
    grid-template-columns: minmax(34px, auto) 28px minmax(220px, 1fr) 92px minmax(120px, 145px) 102px 124px 90px;
    gap: 6px;
    min-height: 38px;
    margin-left: var(--stage-indent);
    padding: 4px 7px;
    border: 0;
    border-bottom: 1px solid var(--project-dashboard-border);
    border-left: 2px solid transparent;
    border-radius: 0;
    background: transparent;
}

#box-tarefa.development-project-panel .development-stage-item + .development-stage-item {
    margin-top: 0;
}

#box-tarefa.development-project-panel .development-stage-item:hover {
    border-left-color: var(--project-dashboard-accent);
    background: rgba(45, 157, 244, .07);
    box-shadow: none;
}

#box-tarefa.development-project-panel .development-stage-item.is-group {
    min-height: 43px;
    border-left-color: rgba(45, 157, 244, .7);
    background: linear-gradient(90deg, rgba(45, 157, 244, .1), transparent 55%);
}

#box-tarefa.development-project-panel .development-stage-item.is-group.is-complete {
    border-left-color: var(--project-dashboard-success);
    background: linear-gradient(90deg, rgba(37, 201, 154, .1), transparent 55%);
}

#box-tarefa.development-project-panel .development-stage-number {
    border: 0;
    border-radius: 5px;
    background: rgba(117, 145, 171, .1);
}

#box-tarefa.development-project-panel .development-stage-info strong {
    color: var(--project-dashboard-text);
    font-size: 10px;
}

#box-tarefa.development-project-panel .development-stage-visible {
    color: var(--project-dashboard-muted);
}

#box-tarefa.development-project-panel .development-stage-state {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

#box-tarefa.development-project-panel .development-stage-state.is-pending {
    background: rgba(231, 168, 63, .12);
    color: #d99528;
}

#box-tarefa.development-project-panel .development-stage-state.is-completed {
    background: rgba(37, 201, 154, .12);
    color: var(--project-dashboard-success);
}

#box-tarefa.development-project-panel .development-stage-group-indicator.development-stage-group-progress {
    display: grid;
    grid-template-columns: none;
    place-items: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    box-sizing: border-box;
    padding: 3px;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(var(--project-dashboard-accent) var(--stage-progress), rgba(117, 145, 171, .24) 0);
}

.development-stage-group-indicator-core {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--project-dashboard-card);
    color: var(--project-dashboard-text);
}

.development-stage-group-indicator-core small {
    font-size: 6px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

#box-tarefa.development-project-panel .development-stage-group-indicator.development-stage-group-progress.is-complete {
    background: var(--project-dashboard-success);
    color: #fff;
}

#box-tarefa.development-project-panel .development-stage-group-progress.is-complete .development-stage-group-indicator-core {
    background: var(--project-dashboard-success);
    color: #fff;
}

#box-tarefa.development-project-panel .development-stage-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-width: 78px;
    min-height: 22px;
    box-sizing: border-box;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

#box-tarefa.development-project-panel .development-stage-status.is-pending {
    background: rgba(117, 145, 171, .14);
    color: var(--project-dashboard-muted);
}

#box-tarefa.development-project-panel .development-stage-status.is-progress {
    background: rgba(45, 157, 244, .15);
    color: #55b6ff;
}

#box-tarefa.development-project-panel .development-stage-status.is-completed {
    background: rgba(37, 201, 154, .14);
    color: var(--project-dashboard-success);
}

.development-stage-assignee,
.development-stage-deadline,
.development-stage-completion {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--project-dashboard-text);
    font-size: 8px;
}

.development-stage-assignee {
    gap: 7px;
}

.development-stage-assignee-avatar {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(45, 157, 244, .28);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 157, 244, .32), rgba(37, 201, 154, .2));
    color: var(--project-dashboard-text);
    font-size: 7px;
    font-weight: 900;
}

.development-stage-assignee > span:last-child,
.development-stage-deadline > span,
.development-stage-completion > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-stage-assignee.is-empty,
.development-stage-deadline.is-empty,
.development-stage-completion.is-empty {
    color: var(--project-dashboard-muted);
}

.development-stage-assignee.is-empty i {
    width: 25px;
    flex: 0 0 auto;
    color: var(--project-dashboard-muted);
    text-align: center;
}

.development-stage-deadline,
.development-stage-completion {
    gap: 6px;
    white-space: nowrap;
}

.development-stage-deadline i,
.development-stage-completion i {
    flex: 0 0 auto;
    color: var(--project-dashboard-accent);
    font-size: 10px;
}

.development-stage-completion i {
    color: var(--project-dashboard-success);
}

#box-tarefa.development-project-panel .development-stage-actions {
    position: relative;
    justify-self: end;
    gap: 2px;
}

.development-stage-reorder-menu {
    position: relative;
    width: 27px;
    height: 27px;
}

.development-stage-reorder-menu > summary {
    list-style: none;
}

.development-stage-reorder-menu > summary::-webkit-details-marker {
    display: none;
}

#box-tarefa.development-project-panel .development-stage-reorder-menu > .development-stage-drag-handle {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    box-sizing: border-box;
    border: 0;
    border-radius: 7px;
    outline: none;
    background: transparent;
    color: var(--project-dashboard-muted);
    cursor: grab;
    opacity: .72;
}

#box-tarefa.development-project-panel .development-stage-reorder-menu > .development-stage-drag-handle:hover,
#box-tarefa.development-project-panel .development-stage-reorder-menu[open] > .development-stage-drag-handle {
    background: rgba(45, 157, 244, .12);
    color: var(--project-dashboard-accent);
    opacity: 1;
}

#box-tarefa.development-project-panel .development-stage-reorder-menu .development-stage-hierarchy-actions {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 32;
    display: flex;
    gap: 3px;
    width: max-content;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid var(--project-dashboard-border);
    border-radius: 8px;
    background: var(--project-dashboard-card-strong);
    box-shadow: 0 10px 28px rgba(2, 10, 18, .28);
}

#box-tarefa.development-project-panel .development-stage-reorder-menu:not([open]) .development-stage-hierarchy-actions {
    display: none;
}

#box-tarefa.development-project-panel .development-stage-edit-form {
    grid-template-columns: minmax(180px, 1fr) 92px minmax(120px, 145px) 102px 124px 90px;
    gap: 6px;
}

#box-tarefa.development-project-panel .development-stage-edit-form label {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.development-stage-edit-completion {
    display: grid;
    align-content: end;
    gap: 3px;
    min-width: 0;
}

.development-stage-edit-completion > span {
    color: var(--project-dashboard-muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.development-stage-edit-completion > strong {
    display: flex;
    align-items: center;
    height: 28px;
    overflow: hidden;
    color: var(--project-dashboard-muted);
    font-size: 8px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#box-tarefa.development-project-panel .development-stage-edit-form label > span {
    color: var(--project-dashboard-muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

#box-tarefa.development-project-panel .development-stage-edit-form :is(input, select) {
    width: 100%;
    min-width: 0;
    height: 28px;
    box-sizing: border-box;
    padding: 4px 7px;
    border: 1px solid var(--project-dashboard-border);
    border-radius: 7px;
    outline: none;
    background: var(--project-dashboard-card-strong);
    color: var(--project-dashboard-text);
    font: inherit;
    font-size: 9px;
}

#box-tarefa.development-project-panel .development-stage-edit-form :is(input, select):focus {
    border-color: var(--project-dashboard-accent);
    box-shadow: 0 0 0 2px rgba(45, 157, 244, .14);
}

.development-stage-owner-combobox {
    position: relative;
    min-width: 0;
}

#box-tarefa.development-project-panel .development-stage-owner-combobox > input {
    padding-right: 25px;
}

#box-tarefa.development-project-panel .development-stage-owner-combobox > input[aria-invalid="true"] {
    border-color: var(--project-panel-danger);
    box-shadow: 0 0 0 2px rgba(180, 35, 24, .12);
}

.development-stage-owner-combobox > i {
    position: absolute;
    top: 14px;
    right: 9px;
    color: var(--project-dashboard-muted);
    font-size: 8px;
    transform: translateY(-50%);
    pointer-events: none;
}

.development-stage-owner-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 45;
    width: max(100%, 240px);
    max-width: min(300px, calc(100vw - 32px));
    max-height: 190px;
    box-sizing: border-box;
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--project-dashboard-border);
    border-radius: 9px;
    background: var(--project-dashboard-card-strong);
    box-shadow: 0 14px 32px rgba(2, 10, 18, .34);
    scrollbar-width: thin;
}

.development-stage-owner-options.is-above {
    top: auto;
    bottom: calc(100% + 5px);
}

.development-stage-owner-options[hidden] {
    display: none;
}

.development-stage-owner-options button {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 35px;
    padding: 4px 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--project-dashboard-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.development-stage-owner-options button:hover,
.development-stage-owner-options button.is-active {
    background: rgba(45, 157, 244, .12);
}

.development-stage-owner-option-avatar {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(45, 157, 244, .3);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 157, 244, .3), rgba(37, 201, 154, .18));
    color: var(--project-dashboard-text);
    font-size: 7px;
    font-weight: 900;
}

.development-stage-owner-option-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.development-stage-owner-option-copy strong,
.development-stage-owner-option-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-stage-owner-option-copy strong {
    font-size: 9px;
}

.development-stage-owner-option-copy small,
.development-stage-owner-empty {
    color: var(--project-dashboard-muted);
    font-size: 8px;
}

.development-stage-owner-empty {
    display: block;
    padding: 10px 8px;
    text-align: center;
}

.development-stage-edit-actions {
    display: inline-flex;
    align-items: end;
    align-self: end;
    gap: 3px;
    height: 28px;
}

.development-project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.development-project-side-card {
    flex: 0 0 auto;
    padding: 13px;
    border: 1px solid var(--project-dashboard-border);
    border-radius: 11px;
    background: linear-gradient(145deg, var(--project-dashboard-card-strong), var(--project-dashboard-card));
}

.development-project-side-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.development-project-side-card h5 {
    margin: 0;
    color: var(--project-dashboard-text);
    font-size: 11px;
}

.development-project-side-card header button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--project-dashboard-accent);
    font: inherit;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}

.development-project-side-summary {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.development-project-side-ring {
    position: relative;
    width: 72px;
    height: 72px;
}

.development-project-side-ring::before {
    content: "";
}

.development-project-side-ring strong {
    position: absolute;
    z-index: 1;
    color: var(--project-dashboard-text);
    font-size: 14px;
}

.development-project-side-summary ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.development-project-side-summary li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--project-dashboard-muted);
    font-size: 9px;
}

.development-project-side-summary li i {
    width: 13px;
    color: var(--project-dashboard-accent);
    text-align: center;
}

.development-project-side-summary li.is-completed i {
    color: var(--project-dashboard-success);
}

.development-project-side-summary li.is-pending i {
    color: #e7a83f;
}

.development-project-side-summary li strong {
    color: var(--project-dashboard-text);
}

.development-project-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.development-project-facts > div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--project-dashboard-border);
}

.development-project-facts > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.development-project-facts > div:last-child {
    padding-bottom: 0;
}

.development-project-facts dt,
.development-project-facts dd {
    overflow: hidden;
    margin: 0;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-facts dt {
    color: var(--project-dashboard-muted);
}

.development-project-facts dd {
    color: var(--project-dashboard-text);
    font-weight: 800;
    text-align: right;
}

.development-project-activity {
    display: grid;
    gap: 9px;
}

.development-project-activity > p {
    margin: 0;
    color: var(--project-dashboard-muted);
    font-size: 9px;
    line-height: 1.4;
}

.development-project-activity-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    position: relative;
}

.development-project-activity-item:not(:last-child)::after {
    position: absolute;
    top: 25px;
    bottom: -10px;
    left: 12px;
    width: 1px;
    background: var(--project-dashboard-border);
    content: "";
}

.development-project-activity-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(45, 157, 244, .18);
    color: var(--project-dashboard-accent);
    font-size: 7px;
    font-weight: 900;
    overflow: hidden;
    border: 0;
}

.development-project-activity-avatar > img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}

.development-project-activity-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.development-project-activity-copy strong,
.development-project-activity-copy span,
.development-project-activity-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.development-project-activity-copy strong {
    color: var(--project-dashboard-text);
    font-size: 9px;
}

.development-project-activity-copy span,
.development-project-activity-copy small {
    color: var(--project-dashboard-muted);
    font-size: 8px;
}

#box-tarefa.development-project-panel .development-project-comments {
    padding: 12px 16px 16px;
    background: var(--project-dashboard-bg);
}

.development-project-comments-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 1px solid var(--project-dashboard-border);
    border-bottom: 0;
    border-radius: 11px 11px 0 0;
    background: var(--project-dashboard-card-strong);
}

.development-project-comments-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(45, 157, 244, .12);
    color: var(--project-dashboard-accent);
}

.development-project-comments-header > span:last-child {
    display: grid;
    gap: 2px;
}

.development-project-comments-header strong {
    color: var(--project-dashboard-text);
    font-size: 10px;
}

.development-project-comments-header small {
    color: var(--project-dashboard-muted);
    font-size: 8px;
}

#box-tarefa.development-project-panel .development-project-comments #tramites {
    border-right: 1px solid var(--project-dashboard-border);
    border-left: 1px solid var(--project-dashboard-border);
    background: var(--project-dashboard-card);
}

#box-tarefa.development-project-panel .development-project-comments #escrever {
    border: 1px solid var(--project-dashboard-border);
    border-top: 0;
    border-radius: 0 0 11px 11px;
    background: var(--project-dashboard-card-strong);
}

@media (max-width: 1180px) {
    .development-project-title-row {
        grid-template-columns: 30px minmax(190px, 1fr) auto minmax(140px, auto) minmax(125px, auto) auto;
    }

    .development-project-header-spacer {
        display: none;
    }

}

@media (max-width: 980px) {
    .development-project-owner {
        display: none;
    }

    .development-project-title-row {
        grid-template-columns: 38px minmax(180px, 1fr) auto minmax(125px, auto) auto;
    }

    .development-project-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .development-project-sidebar {
        display: none;
    }
}

@media (max-width: 760px) {
    #box-tarefa.development-project-panel #div-cabecalho,
    #box-tarefa.development-project-panel.modo-claro #div-cabecalho {
        min-height: 64px;
        padding: 6px 10px 7px;
    }

    .development-project-title-row {
        grid-template-columns: 30px minmax(0, 1fr) auto auto;
        gap: 8px;
    }

    .development-project-title-icon {
        width: 30px;
        height: 30px;
    }

    .development-project-header-meta {
        display: none;
    }

    #box-tarefa.development-project-panel #h4-tarefa {
        font-size: 15px;
    }

    #box-tarefa.development-project-panel .development-panel-tabs {
        padding: 0 12px;
    }

    #box-tarefa.development-project-panel .development-project-stages,
    #box-tarefa.development-project-panel .development-project-comments {
        padding: 4px 7px 7px;
    }
}

@media (max-width: 520px) {
    .development-project-breadcrumb {
        display: none;
    }

    #box-tarefa.development-project-panel #div-cabecalho,
    #box-tarefa.development-project-panel.modo-claro #div-cabecalho {
        min-height: 64px;
    }

    .development-project-status {
        display: none;
    }

    .development-project-title-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
    }

    .development-project-title-copy > span {
        display: none;
    }

    #box-tarefa.development-project-panel .development-panel-tabs {
        gap: 12px;
    }

    #box-tarefa.development-project-panel .development-panel-tabs button {
        min-width: 0;
        font-size: 9px;
    }

    #box-tarefa.development-project-panel .development-stage-command-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .development-stage-list-header {
        display: none;
    }
}

/* box editar */

#box-editar {
    position: absolute;
    width: 60%;
    height: 100px;
    background: rgb(255, 255, 255);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 5px;
    z-index: 3;
    visibility: hidden;

}

#box-editar.active {
    visibility: visible;
}

.container_editar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 3px 0;
    margin-bottom: 5px;
    top: 20px;
    display: flex;
    justify-content: space-evenly;
}

.container_editar.task-edit-configured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-height: 58vh;
    overflow: auto;
    padding: 28px 8px 52px;
    box-sizing: border-box;
}

#box-editar:has(.task-edit-configured) {
    width: min(900px, 92vw);
    height: auto;
    min-height: 150px;
    max-height: 72vh;
}

#btn-fechar-editar {
    position: absolute;
    right: 5px;
    background: rgb(73, 73, 73);
    color: #fff;
    padding: 2px;
    border-radius: 4px;
    height: 15px;
    width: 15px;
    justify-content: center;
    display: flex;
    align-items: center;
    z-index: 1000;
}

#btn-fechar-editar:hover {
    cursor: pointer;
    background: rgb(187, 59, 59)
}

.session-edit {
    display: flex;
    flex-direction: column;
    width: 32%;
}

.task-edit-configured .session-edit {
    width: auto;
}

.session-edit>label {
    font-size: 13px;
    font-weight: bold;
    color: #575757;
}

.session-edit>input,
.session-edit>select {
    padding: 1px 4px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    min-height: 24px;
}

#btn-salvar-edit {
    position: absolute;
    bottom: 5px;
    left: 50%;
    padding: 5px;
    transform: translateX(-50%);
    border: none;
    border-radius: 4px;
    background: #005C4B;
    color: #fff;
}

#btn-salvar-edit:hover {
    background: #026b58;
    cursor: pointer;
}



/* ======== ESTILOS ESPECÍFICOS DO FECHAMENTO ======== */

#box-fechamento {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 6px solid #305496;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    background: #fff;
    margin: 1%;
    padding: 0.5%;
    overflow-x: auto;
}

/* Mantém largura fixa entre colunas */
.tabela-fechamento {
    display: grid;
    grid-auto-rows: auto;
    width: max-content;
    border-collapse: collapse;
}

/* Todas as linhas compartilham o mesmo grid-template */
.linha-fechamento {
    display: grid;
    grid-template-columns: 160px repeat(var(--cols), 130px);
    text-align: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

.linha-fechamento.cabecalho {
    background: #e9edf7;
    font-weight: bold;
    color: #333;
}

.linha-fechamento .celula {
    padding: 5px 8px;
    white-space: nowrap;
}

.linha-fechamento .celula.titulo {
    text-align: right;
    font-weight: bold;
    color: #305496;
    padding-right: 10px;
}

/* barras */
.barra-container {
    position: relative;
    width: 90%;
    height: 14px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.barra {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(var(--pct) * 1%);
    background: linear-gradient(90deg, #4caf50, #81c784);
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
}

.texto-barra {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #222;
    line-height: 14px;
    font-weight: bold;
}

/* Hover sutil */
.linha-fechamento:hover {
    background: rgba(48, 84, 150, 0.05);
}

/* Travar largura uniforme em telas menores */
@media (max-width: 1200px) {
    .linha-fechamento {
        grid-template-columns: 140px repeat(var(--cols), 110px);
        font-size: 12px;
    }
}

/* Ajuste extra para barras pequenas */
.barra-container small {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}



/* ======== AJUSTE DE CAMADAS PARA NAVBAR E MENU ======== */

nav {
    position: relative;
    z-index: 1000;
    /* garante prioridade sobre os containers */
}

#menu,
#menu-departamentos {
    position: absolute;
    z-index: 2000;
    /* menu sempre acima de qualquer conteúdo */
}

/* Se o menu lateral tiver transição ou expansão visual */
#menu.active,
#menu-departamentos.active {
    z-index: 3000;
}

/* Impede que o fechamento sobreponha o menu */
#box-fechamento,
.tabela-fechamento {
    position: relative;
    z-index: 1;
    /* abaixo da navbar e menu */
}




/* graficos */
/* ======== DASHBOARD DE FECHAMENTO ======== */
#painel-fechamento {
    margin: 0 2%;
    padding-bottom: 40px;
}

#h3-dashboard {
    color: #305496;
    margin-bottom: 15px;
}

#cards-dashboard {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 30px;
}

.card-dashboard {
    flex: 1 1 180px;
    background: #f7f9fc;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    text-align: center;
    transition: 0.3s;
}

.card-dashboard:hover {
    background: #eef3ff;
    transform: scale(1.03);
}

.card-dashboard h4 {
    color: #305496;
    font-size: 15px;
    margin-bottom: 5px;
}

.card-dashboard p {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

#graficos-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    height: 350px;
    justify-items: center;
}

#graficoResponsaveis,
#graficoTarefas {
    width: 100%;
    height: 100%;
}






/* ====== PAINEL DE TRAMITES ====== */


#form-msg {
    position: relative;
    width: 100%;
}

#msg-input-area {
    display: grid;
    grid-template-columns: 42px 42px minmax(0, 1fr) 44px;
    align-items: end;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

#btn-clip,
#btn-mention,
#btn-send {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 11px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

#btn-clip {
    border: 1px solid #2d4055;
    background: #142232;
    color: #7ec4ff;
    font-size: 18px;
}

#btn-clip:hover {
    border-color: #4aa3df;
    background: #1a3147;
}

#btn-mention {
    border: 1px solid #2d4055;
    background: #142232;
    color: #9eb6cb;
    font-size: 17px;
}

#btn-mention:hover,
#btn-mention[aria-expanded="true"] {
    border-color: #4aa3df;
    background: #1a3147;
    color: #7ec4ff;
}

#btn-clip:focus-visible,
#btn-mention:focus-visible,
#btn-send:focus-visible,
.task-mention-option:focus-visible,
.task-mention-state button:focus-visible {
    outline: 2px solid #7ec4ff;
    outline-offset: 2px;
}

#input-wrapper {
    position: relative;
    min-width: 0;
    width: 100%;
}

#resposta {
    display: block;
    min-height: 42px;
    max-height: 122px;
    border: 1px solid #2d4055;
    border-radius: 11px;
    outline: none;
    padding: 10px 13px;
    font-size: 14px;
    font-family: inherit;
    line-height: 20px;
    resize: none;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgb(13, 23, 34) rgba(22, 30, 37, 0);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

#resposta::placeholder {
    color: #8494a8;
}

#resposta:focus {
    border-color: #4aa3df;
    box-shadow: 0 0 0 3px rgba(74, 163, 223, 0.16);
}

#btn-send {
    border: none;
    background: linear-gradient(135deg, #2386c8, #0f6faa);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 9px 20px rgba(15, 111, 170, 0.32);
}

#btn-send:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2b9bdf, #147ebf);
}

#btn-send:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

#task-message-status {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    z-index: 2;
    max-width: min(360px, calc(100vw - 28px));
    margin: 0;
    padding: 7px 10px;
    color: #dce9f4;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    background: #142232;
    border: 1px solid #2d4055;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
    pointer-events: none;
}

#task-message-status[data-tone="success"] {
    color: #d7fff4;
    border-color: rgba(82, 211, 170, .42);
    background: #12362f;
}

#task-message-status[data-tone="error"] {
    color: #ffe5e2;
    border-color: rgba(241, 139, 133, .48);
    background: #452321;
}

#task-message-status[hidden] {
    display: none;
}

.task-mention-menu {
    position: fixed;
    z-index: var(--tc-z-task-dropdown, 4300);
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    color: #e8eef5;
    font-family: var(--pessoal-fonte, inherit);
    background: #101a27;
    border: 1px solid #30465d;
    border-radius: 12px;
    box-shadow: 0 22px 52px rgba(2, 6, 12, .42), 0 3px 10px rgba(2, 6, 12, .28);
    isolation: isolate;
}

.task-mention-menu[hidden] {
    display: none;
}

.task-mention-menu-header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 8px 10px;
    border-bottom: 1px solid #2d4055;
    background: #142232;
}

.task-mention-menu-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #7ec4ff;
    background: #1d3a55;
    border-radius: 8px;
}

.task-mention-menu-header > span:last-child,
.task-mention-option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.task-mention-menu-header strong {
    font-size: 12px;
    line-height: 1.3;
}

.task-mention-menu-header small {
    margin-top: 1px;
    overflow: hidden;
    color: #9badbf;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-mention-options {
    max-height: min(240px, calc(100vh - 110px));
    padding: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.task-mention-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 5px 7px;
    color: inherit;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.task-mention-option:hover,
.task-mention-option.is-active {
    color: #fff;
    border-color: rgba(126, 196, 255, .18);
    background: #1a3147;
}

.task-mention-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    color: #d8ecff;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    background: #264864;
    border: 1px solid #3a5872;
    border-radius: 50%;
}

.task-mention-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-mention-option-copy strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 680;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-mention-option-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: #9badbf;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-mention-option.is-access-grant .task-mention-option-copy small {
    color: #e4c37a;
}

.task-mention-option-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #7ec4ff;
    font-size: 13px;
    font-weight: 750;
    background: rgba(126, 196, 255, .1);
    border-radius: 7px;
}

.task-mention-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 72px;
    padding: 12px;
    color: #9badbf;
    font-size: 11px;
    text-align: center;
}

.task-mention-state.is-error {
    flex-direction: column;
    color: #f7b0ab;
}

.task-mention-state button {
    min-height: 30px;
    padding: 0 11px;
    color: #dce9f4;
    font: inherit;
    font-weight: 700;
    border: 1px solid #40566c;
    border-radius: 8px;
    background: #1a3147;
    cursor: pointer;
}

.task-mention-menu.modo-claro {
    color: #253445;
    background: #fff;
    border-color: #d8dee7;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .16), 0 3px 10px rgba(15, 23, 42, .1);
}

.task-mention-menu.modo-claro .task-mention-menu-header {
    border-bottom-color: #e5e7eb;
    background: #f8fafc;
}

.task-mention-menu.modo-claro .task-mention-menu-mark {
    color: #2f6fa7;
    background: #e7f2fb;
}

.task-mention-menu.modo-claro .task-mention-menu-header small,
.task-mention-menu.modo-claro .task-mention-option-copy small,
.task-mention-menu.modo-claro .task-mention-state {
    color: #6b7280;
}

.task-mention-menu.modo-claro .task-mention-option:hover,
.task-mention-menu.modo-claro .task-mention-option.is-active {
    color: #172033;
    border-color: #d8e7f3;
    background: #eef5fb;
}

.task-mention-menu.modo-claro .task-mention-avatar {
    color: #245f96;
    border-color: #cfe0ed;
    background: #e7f2fb;
}

.task-mention-menu.modo-claro .task-mention-option-action {
    color: #2f6fa7;
    background: #e7f2fb;
}

.task-mention-menu.modo-claro .task-mention-option.is-access-grant .task-mention-option-copy small {
    color: #805b17;
}

.task-mention-menu.modo-claro .task-mention-state.is-error {
    color: #a33d37;
}

.task-mention-menu.modo-claro .task-mention-state button {
    color: #245f96;
    border-color: #cfd8e3;
    background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
    #btn-clip,
    #btn-mention,
    #btn-send,
    .task-mention-option {
        transition: none;
    }

    .task-mention-menu .fa-spin,
    #btn-send .fa-spin {
        animation: none;
    }
}

#preview-img {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: min(340px, 100%);
    max-width: 100%;
    border-radius: 10px;
    overflow: visible;
    display: block;
    z-index: 60;
}

.hidden,
#preview-img.hidden {
    display: none;
}

@media (max-width: 520px) {
    #escrever {
        padding: 10px 12px 12px;
    }

    #msg-input-area {
        grid-template-columns: 38px 38px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    #btn-clip,
    #btn-mention,
    #btn-send {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    #resposta {
        min-height: 38px;
        max-height: 118px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

.attachment-preview {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 8px;
    background: #142232;
    border: 1px solid #2d4055;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    color: #e8eef5;
}

.attachment-preview img,
.preview-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 7px;
    flex: 0 0 auto;
}

.attachment-preview img {
    object-fit: cover;
    border: 1px solid #2d4055;
}

.preview-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a3147;
    color: #7ec4ff;
    font-size: 19px;
}

.preview-file-info,
.tramite-file-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-file-name,
.tramite-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.preview-file-detail,
.tramite-file-detail {
    color: #9badbf;
    font-size: 11px;
    letter-spacing: 0;
}

#remover-preview {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #223246;
    color: #c4d0dc;
    cursor: pointer;
}

#remover-preview:hover {
    background: #2d4055;
    color: #fff;
}

.tramite-img {
    display: block;
    max-width: min(280px, 100%);
    max-height: 280px;
    border-radius: 10px;
    margin-top: 8px;
    cursor: zoom-in;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.tramite-file {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    width: min(320px, 100%);
    min-height: 52px;
    margin-top: 8px;
    padding: 8px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.tramite-file:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.tramite-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.09);
    color: #dce9f4;
    font-size: 17px;
}

.tramite-file-open {
    color: #b9c6d2;
    font-size: 12px;
    text-align: center;
}

#msg1 .tramite-file-detail,
#msg1 .tramite-file-open {
    color: rgba(240, 253, 250, 0.8);
}

#msg2 .tramite-file {
    background: #142232;
    border-color: #2d4055;
}

#msg2 .tramite-file:hover {
    background: #1a3147;
    border-color: #3a5872;
}

#msg2 .tramite-file-icon {
    background: #1d3a55;
    color: #7ec4ff;
}

#msg2 .tramite-file-open {
    color: #9badbf;
}

/* BOLHAS DAS MENSAGENS */
#tramites {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    overflow-y: auto;
}

.msg {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 10px;
    word-wrap: break-word;
    position: relative;
    display: inline-block;
}

.msg.eu {
    align-self: flex-end;
    background-color: #005C4B;
    color: #eee;
}

.msg.outro {
    align-self: flex-start;
    background: #fff;
}

.msg img {
    max-width: 200px;
    border-radius: 10px;
    margin-top: 5px;
}

/* ======== MODAL DE IMAGEM ======== */
#modal-img {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5000;
    overflow: hidden;
    cursor: zoom-in;
    transition: opacity 0.25s ease;
}

#modal-img.hidden {
    display: none;
}

#modal-img img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
    transform-origin: center center;
}

#close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.7);
    z-index: 5001;
}

#modal-img img.grab {
    cursor: grabbing;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Experiencia responsiva das rotas de tarefas ===== */

.task-row-actions {
    display: contents;
}

.task-table-headers {
    display: contents;
}

.task-create-toggle {
    display: none;
}

.task-mobile-details-toggle {
    display: none;
}

body.task-page-body {
    overflow: hidden;
}

.task-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.task-page-heading {
    position: relative;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 1%;
}

.task-page-heading > h2 {
    min-width: 0;
    margin: 0;
    padding: .5rem;
    color: #172b3d;
}

.task-owners-menu {
    position: relative;
    flex: 0 0 auto;
    margin-right: 0;
}

.task-owners-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 34px;
    height: 34px;
    box-sizing: border-box;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #263e53;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.task-owners-trigger::-webkit-details-marker {
    display: none;
}

.task-owners-trigger:hover,
.task-owners-menu[open] .task-owners-trigger {
    border-color: transparent;
    background: transparent;
    color: #216fb8;
    box-shadow: none;
    transform: translateY(-1px);
}

.task-owners-trigger-label {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: currentColor;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(1.5px);
    white-space: nowrap;
}

.task-owners-trigger > i {
    line-height: 1;
}

.task-owners-trigger:focus-visible {
    outline: 3px solid rgba(33, 111, 184, 0.24);
    outline-offset: 2px;
}

.task-owners-trigger-count {
    position: absolute;
    top: -6px;
    right: -7px;
    display: none;
    place-items: center;
    min-width: 17px;
    height: 17px;
    box-sizing: border-box;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #103151;
    color: #fff;
    font-size: 9px;
    font-weight: normal;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(33, 111, 184, 0.28);
}

.task-owners-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: auto;
    left: 0;
    z-index: 3600;
    display: none;
    width: min(310px, calc(100vw - 28px));
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(31, 73, 106, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 55px rgba(12, 40, 63, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform-origin: top left;
}

.task-owners-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(31, 73, 106, 0.12);
    border-left: 1px solid rgba(31, 73, 106, 0.12);
    background: #fff;
    transform: rotate(45deg);
}

.task-owners-menu[open] .task-owners-popover {
    display: block;
    animation: task-owners-popover-in .18s ease-out both;
}

.task-owners-popover-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e8eef4;
    background: linear-gradient(135deg, #e8ebef, #fbfcfc);
}

.task-owners-popover-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #172b3d;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 7px 16px rgba(33, 111, 184, 0.24);
}

.task-owners-popover-header > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.task-owners-popover-header strong {
    color: #172b3d;
    font-size: 13px;
    line-height: 1.2;
}

.task-owners-popover-header small {
    color: #6a7d8f;
    font-size: 10px;
    line-height: 1.3;
}

.task-owners-list {
    display: grid;
    max-height: min(300px, 50vh);
    margin: 0;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b9cad9 transparent;
}

.task-owner {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background .16s ease, transform .16s ease;
}

.task-owner:hover {
    background: #f1f7fc;
    transform: translateX(2px);
}

.task-owner-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cae0f1;
    border-radius: 50%;
    background: linear-gradient(145deg, #a8b9c8, #dde4ea);
    color: #172b3d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .035em;
    overflow: hidden;
}

.task-owner-avatar:has(> img) {
    border: 0;
    background: transparent;
}

.task-owner-info {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.task-owner-info strong {
    overflow: hidden;
    color: #24384a;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-owner-info small {
    width: fit-content;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e8f4ec;
    color: #287443;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    text-transform: uppercase;
}

.task-owner-check {
    color: #48a866;
    font-size: 12px;
}

.task-owners-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 88px;
    padding: 16px;
    color: #758697;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

@keyframes task-owners-popover-in {
    from {
        opacity: 0;
        transform: translateY(-7px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.task-page > h2,
.task-page > .task-page-heading,
.task-page > p,
.task-page > hr,
.task-page > #form_filtros {
    flex: 0 0 auto;
}

.task-page #box {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
}

@media (max-width: 900px) {
    .task-page #box {
        overflow-x: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }
}

@media (max-width: 768px) {
    body.task-page-body {
        background: #f3f6fa;
    }

    .task-page {
        background: #f3f6fa;
    }

    .task-page > .task-page-heading {
        min-height: 52px;
        padding: 8px 12px 4px;
        background: #f3f6fa;
    }

    .task-page-heading > h2 {
        margin: 0;
        padding: 4px;
        color: #172b3d;
        font-size: 21px;
        line-height: 1.2;
    }

    .task-owners-menu {
        margin-right: 0;
    }

    .task-owners-trigger {
        width: auto;
        min-width: 35px;
        height: 35px;
        padding: 0 4px;
    }

    .task-owners-popover {
        right: auto;
        left: 0;
        width: min(310px, calc(100vw - 24px));
        max-height: calc(100dvh - 118px);
        border-radius: 16px;
    }

    .task-owners-list {
        max-height: calc(100dvh - 215px);
    }

    .task-page > h2 {
        margin: 0;
        padding: 12px 16px 4px;
        color: #172b3d;
        font-size: 21px;
        line-height: 1.2;
    }

    .task-page > p {
        margin: 0 !important;
        padding: 0 16px 8px;
        color: #66788a !important;
        font-size: 13px;
        line-height: 1.35;
    }

    .task-page > hr {
        display: none;
    }

    .task-page #form_filtros {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        margin: 0;
        padding: 6px 12px 8px;
        background: #fff;
        border-bottom: 1px solid #dfe6ee;
        box-shadow: 0 5px 16px rgba(15, 35, 55, 0.06);
    }

    .task-page .task-form-feedback {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .task-create-toggle {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr) 18px;
        align-items: center;
        grid-column: 1;
        order: 1;
        gap: 5px;
        width: 100%;
        min-height: 40px;
        box-sizing: border-box;
        padding: 7px 8px;
        border: 1px solid #1f6ead;
        border-radius: 9px;
        background: #216fb8;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
        box-shadow: 0 5px 12px rgba(33, 111, 184, 0.2);
    }

    .task-create-toggle:active {
        transform: scale(0.99);
    }

    .task-create-chevron {
        justify-self: end;
        transition: transform .2s ease;
    }

    .task-create-toggle.is-expanded .task-create-chevron {
        transform: rotate(180deg);
    }

    #form-nova.task-form-configured.task-form-mobile:not(.is-expanded) {
        display: none !important;
    }

    #form-nova.task-form-configured.task-form-mobile.is-expanded {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-column: 1 / -1;
        order: 3;
        align-items: stretch;
        gap: 10px;
        width: 100% !important;
        height: auto;
        max-width: none;
        max-height: min(52dvh, 430px);
        margin: 0;
        padding: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        border-color: #d6e0ea;
        border-radius: 12px;
        background: #f8fafc;
        box-shadow: inset 0 1px 0 #fff;
        -webkit-overflow-scrolling: touch;
    }

    #form-nova.task-form-configured .task-create-mark {
        display: none;
    }

    #form-nova.task-form-configured .inpt-nova,
    #form-nova.task-form-configured select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        box-sizing: border-box;
        padding: 9px 10px;
        border: 1px solid #c9d5e1;
        border-radius: 9px;
        background: #fff;
        font-size: 16px;
    }

    #form-nova.task-form-configured #tarefa {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        border: 1px solid #c9d5e1;
    }

    #form-nova.task-form-configured #btn-enviar {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
        border-radius: 9px;
        font-size: 15px;
        font-weight: 700;
    }

    .task-company-suggestions {
        max-height: min(46dvh, 310px);
        border-radius: 10px;
    }

    .task-company-suggestion {
        min-height: 46px;
        padding: 9px;
    }

    .task-company-tooltip {
        max-width: calc(100vw - 20px);
    }

    .task-page .task-toolbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: stretch;
        grid-column: 2 / -1;
        order: 2;
        width: 100%;
        gap: 6px;
        padding-left: 0;
        border-left: 0;
    }

    .task-page .task-search,
    .task-page #form_novo_filtro:not(.filtro-expanded) {
        flex: 1 1 0;
        min-width: 0;
    }

    .task-page .task-toolbar:has(.task-search.is-expanded),
    .task-page .task-toolbar:has(#form_novo_filtro.filtro-expanded) {
        grid-column: 1 / -1;
    }

    .task-page .task-search-toggle,
    .task-page .btn-filtro-toggle {
        width: 100%;
        min-height: 40px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 12px;
    }

    .task-page .task-search.is-expanded {
        flex: 1 0 100%;
    }

    .task-page .task-search-expanded {
        width: 100%;
    }

    .task-page .task-search-input-shell {
        height: 44px;
    }

    .task-page .task-search-input,
    .task-page .task-search-column-filter input,
    .task-page #form_novo_filtro select {
        font-size: 16px;
    }

    .task-page #form_novo_filtro.filtro-expanded {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 1 0 100%;
        width: 100%;
        padding: 10px;
        border: 1px solid #d6e0ea;
        border-radius: 11px;
        background: #f8fafc;
        white-space: normal;
    }

    .task-page #form_novo_filtro.filtro-expanded .btn-filtro-toggle,
    .task-page #form_novo_filtro.filtro-expanded button[type="submit"],
    .task-page #form_novo_filtro.filtro-expanded a {
        grid-column: 1 / -1;
    }

    .task-page #form_novo_filtro select {
        width: 100%;
        min-height: 42px;
    }

    .task-page #form_novo_filtro button[type="submit"] {
        min-height: 42px;
    }

    .task-page #form_novo_filtro a {
        padding: 7px 4px 2px;
        color: #216fb8;
        text-align: center;
    }

    .task-page .task-search-popover {
        position: fixed;
        top: 62px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100dvh - 76px);
        overflow-y: auto;
        border-radius: 14px;
        z-index: 4300;
    }

    .task-page #box {
        --task-title-sticky-height: 37px;
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0 12px 24px;
        overflow-x: hidden;
        overflow-y: auto;
        border: none;
        border-radius: 0;
        background: #f3f6fa;
        scrollbar-width: thin;
    }

    .task-page #box::before {
        display: none;
    }

    .task-page #h3-pendentes,
    .task-page #h3-concluidos {
        width: 100%;
        min-width: 0;
        min-height: 37px;
        padding: 8px 2px 5px;
        background: #f3f6fa;
        font-size: 14px;
        letter-spacing: .06em;
        box-shadow: 0 2px 0 rgba(243, 246, 250, 0.96);
    }

    .task-page .task-completed-heading {
        width: 100%;
        min-width: 0;
        min-height: 37px;
        background: #f3f6fa;
        box-shadow: 0 2px 0 rgba(243, 246, 250, 0.96);
    }

    .task-page .task-section-heading-content,
    .task-page .task-completed-heading-content {
        width: 100%;
    }

    .task-page .task-section-heading-content {
        padding: 0;
    }

    .task-page .task-completed-heading #h3-concluidos {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        box-shadow: none;
    }

    .task-page .task-completed-filters-toggle {
        height: 29px;
        min-height: 29px;
        margin: 4px 2px 4px 4px;
        padding: 0 8px;
    }

    .task-page .task-completed-chevron {
        margin-left: auto;
    }

    .task-page .task-completed-filters {
        align-items: stretch;
        padding: 9px;
        border-radius: 10px 10px 0 0;
    }

    .task-page .task-completed-filters-label {
        flex: 1 0 100%;
    }

    .task-page .task-completed-filters > button {
        flex: 1 1 calc(50% - 6px);
        min-height: 32px;
    }

    .task-page .task-completed-latest {
        margin-left: 0;
    }

    .task-page .task-completed-new-notice {
        align-items: stretch;
        flex-direction: column;
        padding: 10px;
    }

    .task-page .task-completed-new-notice button {
        width: 100%;
        min-height: 36px;
    }

    .task-page .task-completed-custom-period {
        flex: 1 0 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-page .task-completed-custom-period label {
        display: grid;
        gap: 4px;
    }

    .task-page .task-completed-custom-period input,
    .task-page .task-completed-custom-period button {
        width: 100%;
        min-height: 34px;
    }

    .task-page .task-completed-custom-period button {
        grid-column: 1 / -1;
    }

    .task-page .task-pagination {
        gap: 8px;
        padding: 10px 6px;
    }

    .task-page .task-pagination-meta {
        width: 100%;
        gap: 6px 10px;
    }

    .task-page .task-pagination-page-size select {
        height: 26px;
    }

    .task-page .task-pagination-controls {
        gap: 2px;
        width: 100%;
    }

    .task-page .task-pagination-pages {
        gap: 1px;
    }

    .task-page .task-pagination button {
        width: 26px;
        height: 26px;
        min-height: 26px;
        border-radius: 6px;
    }

    .task-page .task-pagination .task-pagination-today {
        width: auto;
        min-width: 55px;
        padding: 0 6px;
    }

    .task-page .task-pagination-ellipsis {
        width: 12px;
        height: 26px;
        flex-basis: 12px;
    }

    .task-page .task-table,
    .task-page .container-dev.task-table {
        display: block !important;
        width: 100%;
        min-width: 0 !important;
        overflow: visible;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .task-page .task-table-headers {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 9px;
        padding: 4px 1px 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .task-page .task-table-headers::-webkit-scrollbar {
        display: none;
    }

    .task-page .task-table-headers > .cab {
        position: relative;
        top: auto;
        display: none;
        grid-column: auto !important;
        min-height: 38px;
        padding: 5px 8px 5px 11px;
        border: 1px solid #d4dee8;
        border-radius: 999px;
        background: #fff;
        box-shadow: none;
    }

    .task-page .task-table-headers > .task-sort-header {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 5px;
        z-index: 1;
    }

    .task-page .task-table-headers > .task-sort-header.sort-active,
    .task-page .task-table-headers > .task-sort-header.sort-editing {
        border-color: #216fb8;
        color: #216fb8;
    }

    .task-page .task-table-headers .task-sort-label {
        order: 1;
        max-width: 120px;
        font-size: 11px;
        white-space: nowrap;
    }

    .task-page .task-table-headers .task-sort-controls {
        position: static;
        order: 2;
        gap: 3px;
        transform: none;
    }

    .task-page .task-table-headers .task-sort-button {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        opacity: 1;
        pointer-events: auto;
    }

    .task-page .task-table-headers .task-sort-action {
        display: none;
    }

    .task-page .task-table-headers .task-sort-header.sort-editing .task-sort-action {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        visibility: visible;
    }

    .task-page .task-table .row {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin: 0 0 8px;
        overflow: visible;
        border: 1px solid #dbe3ec;
        border-left: 4px solid #305496;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(23, 43, 61, 0.07);
    }

    .task-page .task-table.concluidos .row {
        border-left-color: #548235;
    }

    .task-page .task-table .row:hover .item,
    .task-page .task-table .row:nth-child(even) .item,
    .task-page .task-table .row:nth-child(even):hover .item {
        background: var(--task-completion-background, transparent);
    }

    .task-page .task-table .row > .item {
        display: block;
        min-width: 0;
        min-height: 43px;
        box-sizing: border-box;
        padding: 7px 9px;
        overflow: visible;
        border: none;
        border-bottom: 1px solid #edf1f5;
        color: #263746;
        font-size: 12px;
        line-height: 1.2;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .task-page .task-table .row:not(.is-mobile-expanded) > .item:not([data-col-id="tarefa"]):not([data-col-id="tramites"]):not([data-col-id="empresa"]):not([data-col-id="local"]):not([data-col-id="progresso"]):not([data-col-id="status"]):not([data-col-id="criacao"]):not([data-col-id="conclusao"]),
    .task-page .task-table.pendentes .row:not(.is-mobile-expanded) > [data-col-id="conclusao"],
    .task-page .task-table.concluidos .row:not(.is-mobile-expanded) > [data-col-id="criacao"],
    .task-page .task-table .row > .item:empty {
        display: none;
    }

    .task-page .task-table .row > .item::before,
    .task-page .task-row-actions > .item::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #748396;
        font-size: 9px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .task-page .task-table .row > [data-col-id="tarefa"]::before,
    .task-page .task-table .row > [data-col-id="status"]::before {
        display: none;
    }

    .task-page .task-table .row > [data-col-id="tarefa"] {
        grid-column: 1 / -1;
        min-height: 49px;
        padding: 8px 48px 8px 14px;
        color: #14293a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
    }

    .task-page .task-table .row:not(.is-mobile-expanded) > [data-col-id="tarefa"] .task-cell-content {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .task-page .task-table .row:not(:has(> [data-col-id="tramites"])) > [data-col-id="tarefa"] {
        padding-right: 10px;
    }

    .task-page .task-table .row > [data-col-id="tramites"] {
        position: absolute;
        top: 4px;
        right: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 40px;
        min-height: 40px;
        padding: 0;
        border: none;
    }

    .task-page .task-table .row > [data-col-id="tramites"]::before {
        display: none;
    }

    .task-page .task-table .fa-comment {
        position: static;
        font-size: 17px;
    }

    .task-page .task-table .count-tramites {
        position: static;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .task-page .task-table [data-col-id="status"] {
        z-index: 2;
        padding: 5px 7px;
    }

    .task-page #bt-status {
        min-height: 32px;
        padding: 5px 8px;
        border-radius: 7px;
        font-size: 10px;
        font-weight: 700;
        justify-content: space-between;
        gap: 8px;
        box-shadow: 0 3px 8px rgba(15, 35, 55, 0.14);
        touch-action: manipulation;
    }

    .task-page #bt-status .seta {
        flex: 0 0 auto;
        margin: 0;
        color: rgba(255, 255, 255, 0.9);
        transform-origin: center;
    }

    body.task-page-body.task-status-menu-active::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 4700;
        background: rgba(6, 18, 30, 0.48);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    body.task-page-body .list-status.active {
        position: fixed !important;
        top: auto !important;
        right: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        left: 12px !important;
        z-index: 4800 !important;
        display: grid;
        gap: 8px;
        width: auto !important;
        max-width: 520px;
        max-height: calc(100dvh - 24px);
        box-sizing: border-box;
        margin: 0 auto !important;
        padding: 14px;
        overflow-x: hidden;
        overflow-y: auto;
        border: 1px solid rgba(15, 35, 55, 0.1);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 54px rgba(5, 20, 35, 0.32);
        animation: task-status-mobile-in .2s ease-out both !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.task-page-body .list-status.active::before {
        content: "Alterar status";
        display: block;
        padding: 2px 2px 5px;
        color: #1b3042;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
    }

    body.task-page-body .list-status.active .li-status {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        box-sizing: border-box;
        margin: 0;
        padding: 10px 14px;
        border-radius: 11px;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: .015em;
        touch-action: manipulation;
    }

    body.task-page-body .list-status.active .li-status:active {
        transform: scale(0.985);
        filter: brightness(0.94);
    }

    @keyframes task-status-mobile-in {
        from {
            opacity: 0;
            transform: translateY(24px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .task-page .task-row-actions {
        display: grid;
        grid-column: 1 / -1;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        min-height: 40px;
        overflow: hidden;
        border-radius: 0 0 9px 9px;
        background: #f8fafc;
    }

    .task-page .task-mobile-details-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        min-height: 40px;
        padding: 5px 6px;
        border: none;
        border-right: 1px solid #e3e9ef;
        background: transparent;
        color: #52677a;
        font: inherit;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
        cursor: pointer;
        touch-action: manipulation;
    }

    .task-page .task-mobile-details-toggle i {
        font-size: 9px;
        transition: transform .18s ease;
    }

    .task-page .task-mobile-details-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .task-page .task-row-actions > .item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 40px;
        padding: 5px 6px;
        border: none;
        border-right: 1px solid #e3e9ef;
        background: transparent;
    }

    .task-page .task-row-actions > .item:last-child {
        border-right: none;
    }

    .task-page .task-row-actions > .item::before {
        margin: 0 5px 0 0;
    }

    .task-page .campo-btn {
        min-height: 28px;
    }

    .task-page #bt-eye,
    .task-page #bt-editar,
    .task-page #bt-deletar {
        width: 19px;
        max-height: 20px;
        object-fit: contain;
    }

    #box-tarefa {
        top: 0;
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    #div-cabecalho {
        padding-top: max(14px, env(safe-area-inset-top));
    }

    #tramites {
        padding-right: 12px;
        padding-left: 12px;
    }

    #escrever {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    #box-editar:has(.task-edit-configured) {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-height: none;
        box-sizing: border-box;
        padding: max(56px, calc(env(safe-area-inset-top) + 48px)) 14px max(68px, calc(env(safe-area-inset-bottom) + 62px));
        transform: none;
        border: none;
        border-radius: 0;
        z-index: 4400;
    }

    #box-editar .container_editar.task-edit-configured {
        top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
        width: 100%;
        max-height: 100%;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    #box-editar .session-edit > input,
    #box-editar .session-edit > select {
        min-height: 44px;
        box-sizing: border-box;
        border-radius: 9px;
        font-size: 16px;
    }

    #box-editar #btn-fechar-editar {
        top: max(12px, env(safe-area-inset-top));
        right: 14px;
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 10px;
        font-size: 20px;
    }

    #box-editar #btn-salvar-edit {
        bottom: max(12px, env(safe-area-inset-bottom));
        min-width: 150px;
        min-height: 44px;
        border-radius: 9px;
        font-size: 15px;
        font-weight: 700;
    }
}

@media (prefers-reduced-motion: reduce) {
    #form-nova.task-form-configured #btn-enviar,
    #form-nova.task-form-configured #btn-enviar i,
    .task-search-toggle,
    .btn-filtro-toggle {
        transition-duration: .01ms;
    }

    #form-nova.task-form-configured #btn-enviar:hover,
    #form-nova.task-form-configured #btn-enviar:hover i {
        transform: none;
    }
}

@media (max-width: 420px) {
    #form-nova.task-form-configured.task-form-mobile.is-expanded,
    .task-page #form_novo_filtro.filtro-expanded {
        grid-template-columns: minmax(0, 1fr);
    }

    #form-nova.task-form-configured.task-form-mobile.is-expanded > *,
    .task-page #form_novo_filtro.filtro-expanded > * {
        grid-column: 1;
    }

    .task-create-chevron {
        display: none;
    }

    .task-create-toggle {
        grid-template-columns: 16px minmax(0, 1fr);
    }
}

/* Confirmação visual antes de mover uma tarefa para CONCLUÍDAS */
.task-table .row.is-completing {
    /* O fundo de conclusão prevalece também nas células fixas e no hover. */
    --task-completion-background: #eef8ec;
}

.task-table .row.is-completing > .item,
.task-table .row.is-completing > .task-row-actions > .item {
    max-height: var(--task-completion-cell-height, 80px);
    overflow: hidden;
    pointer-events: none;
    background: var(--task-completion-background);
    transition:
        max-height .26s cubic-bezier(.4, 0, .2, 1),
        min-height .26s cubic-bezier(.4, 0, .2, 1),
        padding .26s cubic-bezier(.4, 0, .2, 1),
        border-width .26s cubic-bezier(.4, 0, .2, 1),
        opacity .2s ease,
        transform .26s cubic-bezier(.4, 0, .2, 1);
    animation: task-completion-confirmation 1s ease both;
    will-change: max-height, opacity, transform;
}

.task-page .task-table .row.is-completing > [data-col-id="tramites"].item-vis {
    background: var(--task-completion-background);
}

.task-table .row.is-completion-leaving > .item,
.task-table .row.is-completion-leaving > .task-row-actions > .item {
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    transform: translateY(-5px) scale(.995);
}

#bt-status.task-status-completion {
    gap: 6px;
    background: rgb(3, 127, 76);
    cursor: default;
}

.task-completion-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #037f4c;
    font-size: 10px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
    animation: task-completion-check-pop .85s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes task-completion-confirmation {
    0% {
        background: inherit;
    }

    38% {
        background: #d9efd5;
    }

    100% {
        background: #eef8ec;
    }
}

@keyframes task-completion-check-pop {
    0% {
        opacity: 0;
        transform: scale(.35) rotate(-18deg);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .6);
    }

    48% {
        opacity: 1;
        transform: scale(1.15) rotate(0);
        box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (max-width: 768px) {
    .task-page .task-table .row.is-completing {
        max-height: var(--task-completion-row-height, 900px);
        overflow: hidden;
        transition:
            max-height .26s cubic-bezier(.4, 0, .2, 1),
            margin .26s cubic-bezier(.4, 0, .2, 1),
            border-width .26s cubic-bezier(.4, 0, .2, 1),
            opacity .2s ease,
            transform .26s cubic-bezier(.4, 0, .2, 1);
    }

    .task-page .task-table .row.is-completion-leaving {
        max-height: 0;
        margin-bottom: 0;
        border-width: 0;
        opacity: 0;
        transform: translateY(-5px) scale(.995);
    }

    .task-page .task-table .row.is-completing > .task-row-actions {
        max-height: 54px;
        min-height: 54px;
        overflow: hidden;
        transition:
            max-height .26s cubic-bezier(.4, 0, .2, 1),
            min-height .26s cubic-bezier(.4, 0, .2, 1),
            opacity .2s ease;
    }

    .task-page .task-table .row.is-completion-leaving > .task-row-actions {
        max-height: 0;
        min-height: 0;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .task-table .row.is-completing > .item,
    .task-table .row.is-completing > .task-row-actions > .item,
    .task-page .task-table .row.is-completing,
    .task-page .task-table .row.is-completing > .task-row-actions,
    .task-completion-check {
        transition: none;
        animation: none;
    }
}

/* ===== Automacao de tarefas ===== */

.task-automation-link,
.task-automation-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    margin-left: auto;
    border: 1px solid #d8e2ec;
    border-radius: 10px;
    background: #fff;
    color: #173b5b;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(19, 56, 87, .08);
    transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.task-automation-link {
    gap: 7px;
    width: auto;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #263e53;
    font-size: 17px;
    box-shadow: none;
}

.task-automation-link-label {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: currentColor;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(1.5px);
    white-space: nowrap;
}

.task-automation-link > i {
    line-height: 1;
}

.task-automation-link:hover,
.task-automation-back:hover {
    border-color: #7eb6df;
    color: #216fb8;
    box-shadow: 0 7px 18px rgba(33, 111, 184, .17);
    transform: translateY(-1px);
}

.task-automation-link:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.task-automation-link:focus-visible,
.task-automation-back:focus-visible {
    outline: 3px solid rgba(33, 111, 184, .22);
    outline-offset: 2px;
}

.task-automation-back {
    gap: 7px;
    min-width: auto;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 600;
}

.task-automation-page {
    background: #f5f7fa;
}

.task-automation-page > .task-page-heading {
    background: #fff;
}

.task-automation-page > hr {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #e4e9ef;
}

.task-automation-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 18px 1% 30px;
}

.task-automation-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 1180px;
    box-sizing: border-box;
    margin: 0 auto 12px;
    padding: 11px 14px;
    border: 1px solid #cfdbe7;
    border-radius: 9px;
    background: #fff;
    color: #365269;
    font-size: 13px;
}

.task-automation-notice.success {
    border-color: #b9dfd1;
    background: #f0faf6;
    color: #176344;
}

.task-automation-notice.error {
    border-color: #efc6c6;
    background: #fff5f5;
    color: #9a3232;
}

.task-automation-builder,
.task-automation-active {
    max-width: 1180px;
    box-sizing: border-box;
    margin: 0 auto 18px;
    border: 1px solid #dde5ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(24, 51, 74, .06);
}

.task-automation-section-heading,
.task-automation-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #e7ebf0;
}

.task-automation-section-heading h3,
.task-automation-list-heading h3 {
    margin: 2px 0 3px;
    color: #172b3d;
    font-size: 18px;
    line-height: 1.25;
}

.task-automation-section-heading p:not(.task-automation-eyebrow) {
    margin: 0;
    color: #687887;
    font-size: 13px;
}

.task-automation-eyebrow {
    margin: 0;
    color: #216fb8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.task-automation-robot {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #edf6fd;
    color: #216fb8;
    font-size: 19px;
}

.task-automation-form {
    padding: 18px 20px 20px;
}

.task-automation-fields,
.task-automation-schedule {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.task-automation-field-wide {
    grid-column: span 2;
}

.task-automation-field-full {
    grid-column: 1 / -1;
}

.task-automation-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: #425466;
    font-size: 12px;
    font-weight: 600;
}

.task-automation-field > input,
.task-automation-field > select,
.task-automation-field > textarea,
.task-automation-interval-control {
    width: 100%;
    min-width: 0;
    height: 39px;
    box-sizing: border-box;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    background: #fff;
    color: #263b4d;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    outline: none;
}

.task-automation-field > textarea {
    min-height: 88px;
    height: auto;
    padding: 10px;
    resize: vertical;
    line-height: 1.45;
}

.task-automation-field > span small {
    color: #8493a0;
    font-size: 10px;
    font-weight: 400;
}

.task-automation-field-help {
    color: #7a8996;
    font-size: 10px;
    font-weight: 400;
}

.task-automation-interval[hidden] {
    display: none;
}

.task-automation-field > input,
.task-automation-field > select {
    padding: 0 10px;
}

.task-automation-select {
    position: relative;
    width: 100%;
    min-width: 0;
    font-weight: 400;
}

.task-automation-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
}

.task-automation-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    height: 39px;
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #263b4d;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.task-automation-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-automation-select-trigger > i {
    flex: 0 0 auto;
    color: #6d8192;
    font-size: 10px;
    transition: transform .18s ease, color .18s ease;
}

.task-automation-select-trigger:hover {
    border-color: #9cb6ca;
    background: #fbfdff;
}

.task-automation-select-trigger:focus-visible,
.task-automation-select.is-open .task-automation-select-trigger {
    border-color: #5a9bd0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 111, 184, .11);
}

.task-automation-select.is-open .task-automation-select-trigger > i {
    color: #216fb8;
    transform: rotate(180deg);
}

.task-automation-select.is-invalid .task-automation-select-trigger {
    border-color: #c75b5b;
    box-shadow: 0 0 0 3px rgba(185, 55, 55, .1);
}

.task-automation-select-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 120;
    max-height: 232px;
    box-sizing: border-box;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d6e0e8;
    border-radius: 11px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(23, 52, 77, .18), 0 3px 10px rgba(23, 52, 77, .08);
    scrollbar-width: thin;
    scrollbar-color: #b7c9d7 transparent;
    transform-origin: top center;
    animation: task-automation-select-in .16s ease-out both;
}

.task-automation-select.opens-up .task-automation-select-menu {
    top: auto;
    bottom: calc(100% + 7px);
    transform-origin: bottom center;
}

.task-automation-select-menu[hidden] {
    display: none;
}

.task-automation-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    outline: 0;
    background: transparent;
    color: #344e62;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.task-automation-select-option:hover,
.task-automation-select-option:focus-visible {
    background: #eef5fa;
    color: #205f90;
}

.task-automation-select-option[aria-selected="true"] {
    background: #e7f1f8;
    color: #185f96;
    font-weight: 600;
}

.task-automation-select-option > i {
    flex: 0 0 auto;
    color: #216fb8;
    font-size: 10px;
    opacity: 0;
}

.task-automation-select-option[aria-selected="true"] > i {
    opacity: 1;
}

.task-automation-select-option:disabled {
    cursor: not-allowed;
    opacity: .48;
}

@keyframes task-automation-select-in {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.task-automation-field > input:focus,
.task-automation-field > select:focus,
.task-automation-field > textarea:focus,
.task-automation-interval-control:focus-within {
    border-color: #5a9bd0;
    box-shadow: 0 0 0 3px rgba(33, 111, 184, .11);
}

.task-automation-file-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 12px;
    overflow: hidden;
    border: 1px dashed #aebfce;
    border-radius: 8px;
    background: #f8fafc;
    color: #47657d;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.task-automation-file-control:hover {
    border-color: #5a9bd0;
    background: #f2f8fc;
    color: #216fb8;
}

.task-automation-file-control.is-disabled {
    cursor: not-allowed;
    opacity: .62;
}

.task-automation-file-control input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.task-automation-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.task-automation-file-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #edf3f8;
    color: #3f5c72;
    font-size: 10px;
    font-weight: 500;
}

.task-automation-file-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-automation-schedule {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid #edf0f4;
}

.task-automation-interval-control {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
}

.task-automation-interval-control input {
    width: 62px;
    min-width: 0;
    height: 27px;
    padding: 0 6px;
    border: 1px solid #d4dce5;
    border-radius: 5px;
    color: #263b4d;
    font: inherit;
    text-align: center;
    outline: none;
}

.task-automation-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.task-automation-actions p {
    margin: 0;
    color: #788896;
    font-size: 11px;
}

.task-automation-form-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.task-automation-form-buttons > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #cfdae3;
    border-radius: 8px;
    color: #52697c;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.task-automation-form-buttons > a:hover {
    border-color: #aebfcd;
    background: #f7f9fb;
    color: #263e53;
}

.task-automation-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    background: #216fb8;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(33, 111, 184, .2);
}

.task-automation-actions button:hover {
    background: #185f9d;
}

.task-automation-count {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #edf3f8;
    color: #34546d;
    font-size: 12px;
    font-weight: 700;
}

.task-automation-list-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-automation-search {
    display: flex;
    align-items: center;
    width: min(280px, 38vw);
    height: 34px;
    padding: 0 11px;
    box-sizing: border-box;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #7a8d9d;
}

.task-automation-search:focus-within {
    border-color: #6da2cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 111, 184, .1);
}

.task-automation-search i {
    margin-right: 8px;
    font-size: 12px;
}

.task-automation-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #29455b;
    font: inherit;
    font-size: 12px;
}

.task-automation-search input::placeholder {
    color: #8d9ba7;
}

.task-automation-list {
    padding: 14px 20px 18px;
    overflow-x: auto;
}

.task-automation-table {
    width: 100%;
    min-width: 840px;
    overflow: hidden;
    border: 1px solid #e0e7ed;
    border-spacing: 0;
    border-radius: 10px;
    background: #fff;
    table-layout: fixed;
}

.task-automation-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #dfe7ed;
    background: #f5f8fa;
    color: #5d7182;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
}

.task-automation-table th:nth-child(1) {
    width: 38%;
}

.task-automation-table th:nth-child(2) {
    width: 20%;
}

.task-automation-table th:nth-child(3) {
    width: 17%;
}

.task-automation-table th:nth-child(4) {
    width: 15%;
}

.task-automation-table th:nth-child(5) {
    width: 104px;
}

.task-automation-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e9eef2;
    color: #344e62;
    font-size: 11px;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
    transition: background .16s ease;
}

.task-automation-table tbody tr:last-child td {
    border-bottom: 0;
}

.task-automation-table tbody tr:hover td {
    background: #fbfdff;
}

.task-automation-card[hidden] {
    display: none !important;
}

.task-automation-task-cell {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.task-automation-card-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f0f6fb;
    color: #397bac;
    font-size: 14px;
    flex: 0 0 36px;
}

.task-automation-task-cell > div {
    min-width: 0;
}

.task-automation-card h4 {
    margin: 0;
    color: #20364a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.task-automation-card-context {
    margin: 3px 0 0;
    color: #6a7c8c;
    font-size: 11px;
}

.task-automation-card-context span {
    padding: 0 3px;
    color: #a0acb7;
}

.task-automation-next-run,
.task-automation-creator {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    color: #2d4c64;
    font-weight: 600;
}

.task-automation-next-run i,
.task-automation-creator i {
    margin-top: 2px;
    color: #5f8fb3;
}

.task-automation-executions {
    display: block;
    margin-top: 5px;
    color: #80909d;
    font-size: 9px;
}

.task-automation-recurrence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf5fb;
    color: #2b6b9a;
    font-size: 10px;
    font-weight: 600;
}

.task-automation-table-actions-heading,
.task-automation-table-actions {
    text-align: center !important;
}

.task-automation-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.task-automation-cancel-form {
    margin: 0;
}

.task-automation-view-details,
.task-automation-edit,
.task-automation-cancel-form button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #91a0ad;
    cursor: pointer;
    text-decoration: none;
}

.task-automation-view-details:hover {
    border-color: #cbd9e3;
    background: #f2f6f9;
    color: #365f7e;
}

.task-automation-edit:hover {
    border-color: #c8ddec;
    background: #eef6fc;
    color: #216fb8;
}

.task-automation-cancel-form button:hover {
    border-color: #efcccc;
    background: #fff4f4;
    color: #bb4444;
}

.task-automation-view-details:focus-visible,
.task-automation-edit:focus-visible,
.task-automation-cancel-form button:focus-visible,
.task-automation-details-header button:focus-visible {
    outline: 3px solid rgba(33, 111, 184, .2);
    outline-offset: 1px;
}

.task-automation-details-source {
    display: none;
}

.task-automation-details-dialog {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100vw - 32px));
    max-height: min(620px, calc(100dvh - 40px));
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 14px;
    outline: 0;
    background: transparent;
    color: #263e53;
}

.task-automation-details-dialog::backdrop {
    background: rgba(17, 35, 51, .46);
}

.task-automation-details-surface {
    overflow: hidden;
    border: 1px solid rgba(210, 222, 231, .9);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(13, 37, 57, .28);
    animation: task-automation-details-in .18s ease-out both;
}

.task-automation-details-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 11px;
    padding: 15px 16px;
    border-bottom: 1px solid #e5ebf0;
    background: linear-gradient(135deg, #f3f8fc, #fff);
}

.task-automation-details-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8f2f9;
    color: #216fb8;
    font-size: 14px;
}

.task-automation-details-header p {
    margin: 0 0 2px;
    color: #728697;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.task-automation-details-header h4 {
    margin: 0;
    color: #20384c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.task-automation-details-header button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #8293a0;
    cursor: pointer;
}

.task-automation-details-header button:hover {
    border-color: #d6e0e7;
    background: #fff;
    color: #263e53;
}

.task-automation-details-body {
    padding: 20px;
}

.task-automation-details-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #607688;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.task-automation-details-body > p {
    max-height: min(330px, 42dvh);
    margin: 0;
    padding: 13px 14px;
    overflow-y: auto;
    border: 1px solid #e3e9ee;
    border-radius: 9px;
    background: #f8fafc;
    color: #344e62;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.task-automation-details-attachments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf4f8;
    color: #537087;
    font-size: 10px;
    font-weight: 600;
}

.task-automation-details-attachments[hidden] {
    display: none;
}

@keyframes task-automation-details-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.task-automation-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 36px;
    color: #7a8c9b;
    text-align: center;
}

.task-automation-empty > i {
    margin-bottom: 10px;
    color: #a8bac8;
    font-size: 28px;
}

.task-automation-empty h4 {
    margin: 0 0 4px;
    color: #425c70;
    font-size: 14px;
}

.task-automation-empty p {
    margin: 0;
    font-size: 12px;
}

.task-automation-search-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 20px 34px;
    color: #788b9a;
    font-size: 12px;
    text-align: center;
}

.task-automation-search-empty[hidden] {
    display: none;
}

.task-automation-search-empty p {
    margin: 0;
}

@media (max-width: 980px) {
    .task-automation-list {
        overflow: visible;
    }

    .task-automation-table {
        display: block;
        min-width: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .task-automation-table thead {
        display: none;
    }

    .task-automation-table tbody {
        display: grid;
        gap: 12px;
    }

    .task-automation-table .task-automation-card {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 13px 20px;
        padding: 15px;
        border: 1px solid #e0e7ed;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(24, 51, 74, .045);
    }

    .task-automation-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .task-automation-table tbody tr:hover td {
        background: transparent;
    }

    .task-automation-table td::before {
        display: block;
        margin-bottom: 5px;
        color: #81909c;
        content: attr(data-label);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .task-automation-table td:nth-child(1) {
        grid-column: 1 / -1;
    }

    .task-automation-table-actions {
        text-align: left !important;
    }

    .task-automation-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .task-automation-link {
        min-width: 35px;
        height: 35px;
    }

    .task-automation-page > .task-page-heading {
        padding: 8px 12px 4px;
    }

    .task-automation-back {
        width: 35px;
        min-width: 35px;
        height: 35px;
        padding: 0;
    }

    .task-automation-back span {
        display: none;
    }

    .task-automation-content {
        padding: 10px 12px 22px;
    }

    .task-automation-builder,
    .task-automation-active {
        border-radius: 12px;
    }

    .task-automation-section-heading,
    .task-automation-list-heading {
        padding: 15px;
    }

    .task-automation-list-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .task-automation-list-tools,
    .task-automation-search {
        width: 100%;
    }

    .task-automation-search {
        flex: 1 1 auto;
    }

    .task-automation-section-heading p:not(.task-automation-eyebrow) {
        margin-top: 5px;
        line-height: 1.4;
    }

    .task-automation-robot {
        display: none;
    }

    .task-automation-form {
        padding: 15px;
    }

    .task-automation-fields,
    .task-automation-schedule {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .task-automation-field-wide {
        grid-column: auto;
    }

    .task-automation-field-full {
        grid-column: auto;
    }

    .task-automation-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .task-automation-actions button {
        width: 100%;
        min-height: 42px;
    }

    .task-automation-form-buttons {
        align-items: stretch;
        flex-direction: column-reverse;
        width: 100%;
    }

    .task-automation-form-buttons > a {
        min-height: 42px;
    }

    .task-automation-list {
        padding: 12px 15px 15px;
    }

    .task-automation-table .task-automation-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .task-automation-card-icon {
        width: 31px;
        height: 31px;
    }

    .task-automation-card h4 {
        white-space: normal;
    }

    .task-automation-table td:nth-child(1) {
        grid-column: auto;
    }

    .task-automation-details-header {
        padding: 13px 14px;
    }

    .task-automation-details-body {
        padding: 16px;
    }
}
