@charset "utf-8";
/* CSS Document */
@font-face {
    font-family: "Alegreya_Regular";
    src:url("../fonts/AlegreyaSans-Regular-HPpOqyj.ttf");
}

@font-face {
    font-family: "Alegreya_XBold";
    src:url("../fonts/AlegreyaSans-ExtraBold-KnJ5A95.ttf");
}

*{
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    max-width: 100%;
}

html, body{
	font-family:Alegreya_Regular, Arial, Geneva, sans-serif !important;
	background:#DFDFDF;
	margin: 0;
	box-sizing: border-box;
	position:relative;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

footer {
    margin-top:15px;
    bottom: 0;
    clear: both;
    text-align: center;
    width: 100%;
}

a{
	text-decoration:none;
}

.bold_text{
    font-family: Alegreya_XBold;
    font-size: 1rem;
}

.ten{
    font-family:"Alegreya_Regular";
	font-size:65px;
	font-weight:900;
	letter-spacing:-8px;
	color:#231b1b;
	cursor: context-menu;
    margin-right: 20px;
}
.ed{
	font-weight:600;
	color:#493e3e;
}

.div_header{
    padding-left:20%;
    padding-right:20%;
    background-color:#979797;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.header-logo {
    flex: 0 0 auto;
}

.header-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.menu-item {
    flex: 0 0 auto;
    text-align: center;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background-color: #7B7B7B;
    border-bottom: solid #505050 2px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle:hover {
    background-color: #505050;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 3px;
    background: #383838;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover .nav-toggle-bar {
    background: #fff;
}

.div_header.is-compact .nav-toggle,
.div_header.is-open .nav-toggle {
    display: inline-flex;
}

.div_header.is-compact .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: #8a8a8a;
    padding: 12px 5%;
    z-index: 30;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.div_header.is-compact.is-open .header-nav {
    display: flex;
}

.div_header.is-compact .but_menu {
    width: 100%;
    margin: 6px 0;
}

.div_header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.div_header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.div_header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media screen and (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background-color: #8a8a8a;
        padding: 12px 5%;
        z-index: 30;
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    }

    .div_header.is-open .header-nav {
        display: flex;
    }

    .header-nav .but_menu {
        width: 100%;
        margin: 6px 0;
    }
}

.div_main{
    padding-left:20%;
    padding-right:20%;
    margin-top:20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-form {
    display: block;
    max-width: 100%;
}

.category-search-wrap {
    margin: 16px 0 8px;
}

.search-prompt {
    margin-bottom: 8px;
}

.search-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.search-input {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
}

.search-input-date,
.search-estado-main {
    display: none;
}

.search-mode-date .search-input-text,
.search-mode-estado .search-input-text {
    display: none;
}

.search-mode-date .search-input-date {
    display: block;
}

.search-mode-estado .search-estado-main {
    display: inline-block;
    flex: 1 1 220px;
    min-width: 220px;
}

.search-form .buttonnocor {
    flex: 0 0 auto;
}

.search-filters {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f3f3f3;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
}

.search-filters-group + .search-filters-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
}

.search-filters-label {
    margin: 0 0 10px;
    font-family: Alegreya_XBold, Arial, Geneva, sans-serif;
    font-size: 0.95rem;
    color: #3f3f3f;
    letter-spacing: 0.02em;
}

.search-filters-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-filter-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.search-filter-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.search-filter-chip span {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.search-filter-chip:hover span {
    border-color: #888;
    background: #f7f7f7;
}

.search-filter-chip:has(input:checked) span,
.search-filter-chip input:checked + span {
    background: #6f6f6f;
    border-color: #5a5a5a;
    color: #fff;
}

.search-filter-chip-tudo:has(input:checked) span,
.search-filter-chip-tudo input:checked + span {
    background: #505050;
    border-color: #3f3f3f;
}

.search-filter-chip-special:has(input:checked) span,
.search-filter-chip-special input:checked + span {
    background: #5f6b73;
    border-color: #4a555c;
}

.search-estado-select {
    min-width: 220px;
    padding: 8px 12px;
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-family: Alegreya_Regular, Arial, Geneva, sans-serif;
    font-size: 0.95rem;
}

.search-estado-select:focus {
    outline: none;
    border-color: #777;
    box-shadow: inset 0 0 0 1px #777;
}

@media screen and (max-width: 1100px) {
    .div_header,
    .div_main {
        padding-left: 5%;
        padding-right: 5%;
    }
}

.div_content{
    text-align: center;
    padding:20px;
    border-radius:10px;
    background-color:#fff;
}

.div_content_logged{
    text-align: left;
    padding:20px;
    border-radius:10px;
    background-color:#fff;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0 28px;
}

.admin-stat {
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
}

.admin-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.1;
    color: #333;
}

.admin-stat-label {
    margin-top: 6px;
    font-size: 0.95em;
    color: #555;
}

.admin-table-wrap {
    overflow-x: auto;
    max-width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #ddd;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-weight: bold;
    background: #f7f7f7;
}

.admin-table td:nth-child(n+3),
.admin-table th:nth-child(n+3) {
    text-align: right;
    white-space: nowrap;
}

.admin-backup {
    margin: 8px 0 28px;
    padding: 16px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
}

.admin-backup p {
    margin: 0 0 12px;
    color: #555;
}

.admin-backup-form {
    margin: 0;
}

.admin-author-convert .text-form-hint {
    margin-top: 0;
    margin-bottom: 14px;
}

.entry-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 8px;
}

.entry-mode-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.entry-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.entry-mode-option:hover {
    border-color: #999;
}

.entry-mode-option.is-selected {
    border-color: #5f5f5f;
    background: #f3f3f3;
}

.entry-mode-title {
    font-weight: 700;
    color: #333;
}

.entry-mode-text {
    color: #666;
    font-size: 0.92em;
    line-height: 1.35;
}

.entry-import-box {
    margin-top: 14px;
}

.reference-builder {
    margin-bottom: 16px;
}

.reference-builder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.reference-lookup-box {
    margin: 12px 0 16px;
    padding: 14px;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    background: #fff;
}

.reference-lookup-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 10px;
    align-items: center;
}

.reference-lookup-feedback {
    margin-top: 10px;
    font-size: 0.92em;
}

.reference-lookup-feedback.is-success {
    color: #1e8449;
}

.reference-lookup-feedback.is-error {
    color: #c0392b;
}

.reference-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 14px;
}

.reference-field-item.is-missing .reference-field-input {
    border-color: #d4a017;
    box-shadow: 0 0 0 1px #fff3cd;
}

@media (max-width: 720px) {
    .entry-mode-options,
    .reference-lookup-row,
    .reference-fields-grid {
        grid-template-columns: 1fr;
    }
}

.admin-backups-table td:nth-child(n+3),
.admin-backups-table th:nth-child(n+3) {
    text-align: left;
}

.admin-backups-table td:last-child,
.admin-backups-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.admin-backup-filename {
    word-break: break-all;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.92em;
}

.admin-backups-table tr.is-stale-backup {
    background: #fff8e8;
}

.admin-backup-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #cfcfcf;
    background: #f3f3f3;
    color: #555;
    font-size: 0.85em;
    white-space: nowrap;
}

.admin-backup-badge.is-stale {
    border-color: #d4a017;
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
}

.admin-backup-delete-form {
    margin: 0;
    display: inline-block;
}

.admin-backup-delete-button {
    margin: 0;
    padding: 6px 10px;
    font-size: 0.9em;
}

.buttonnocor {
  display: inline-block;
  border-radius: 3px;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 15px;
  font-family:Alegreya_Regular, Arial;
  padding: 10px;
  transition: all 0.10s;
  cursor: pointer;
  margin: 5px;
}

.buttonnocor span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.buttonnocor span:after {
  content: '\00bb';
  position: absolute;
  font-family:Alegreya_Regular, Arial;
  opacity: 0;
  bottom: 0;
  right: -20px;
  transition: 0.5s;
}

.buttonnocor:hover span {
  padding-right: 25px;
}

.buttonnocor:hover span:after {
  opacity: 1;
  right: 0;
}

.but_login{
    vertical-align:middle;
    background-color:#8E8E8E;
}

hr{
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #EBEBEB, #B8B8B8, #EBEBEB);
}

.but_menu{
	border-radius: 5px 5px 5px 5px;
	background-color:#7B7B7B;
	overflow-wrap: break-word;
	width:120px;
	color:#383838;
	padding-top:10px;
	cursor:pointer;
	padding-bottom: 10px;
	padding-left: 5px;
	padding-right: 5px;
	border-bottom: solid #505050 2px;
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px;
}
.but_menu:hover{
	background-color:#505050;
	border-bottom: solid #424242 2px;
	color:#fff;
	
}
.but_menu:active{
	background-color:#ADADAD;
	border-bottom: solid #808080 2px;
}

.but_menu a{
	text-decoration:none;
	color:#383838;
    font-family: Alegreya_XBold, Arial;
    font-size: 18px;
}
.but_menu:hover a{
	color:#FFF;
}

.but_select{
	border-radius: 5px 5px 5px 5px;
	background-color:#56442D;
	color:#FFF;
	width:120px;
	height:120px;
	padding-top:10px;
	cursor:pointer;
	border-bottom: solid #443522 2px;
}
.but_select:hover{
	background-color:#574328;
	border-bottom: solid #342818 2px;
}
.but_select:active{
	background-color:#8E6835;
	border-bottom: solid #5d4422 2px;
}

.but_select a{
	text-decoration:none;
	color:#443522;
}
.but_select:hover a{
	color:#221b11;
}

.but_table{
	border-radius: 5px 5px 5px 5px;
	background-color:#7C613E;
	color:#443522;
	height:50px;
	cursor:pointer;
	border-bottom: solid #443522 2px;
}
.but_table:hover{
	background-color:#735835;
	border-bottom: solid #342818 2px;
}
.but_table:active{
	background-color:#8E6835;
	border-bottom: solid #5d4422 2px;
}

.but_table a{
	text-decoration:none;
	color:#443522;
}
.but_table:hover a{
	color:#221b11;
}

.divid_tab{
	border-bottom:2px #9E9E9E solid;
	padding-bottom:10px;
	padding-top:10px;
}

textarea{
    resize: vertical;
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='number'],
textarea{
    font-size:20px;
    padding: 10px;
    border: solid 1px #fff;
    box-shadow: inset 1px 1px 2px 0 #707070;
    transition: box-shadow 0.3s;
    font-family:Alegreya_Regular, Arial;
}

input[type='text']:focus,
input[type='password']:focus,
input[type='email']:focus,
input[type='number']:focus,
textarea:focus{
    box-shadow: inset 1px 1px 2px 0 #c9c9c9;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #9b9b9b;
    border-radius: 4px;
    font-family: Alegreya_Regular, sans-serif;
    line-height: 1.5;
}

.login-error{
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-error strong{
    display: block;
}

#imgmeioarredondado{
	border-radius: 5px 5px 5px 5px;
}
.imgmeioarredondado{
	border-radius: 5px 5px 5px 5px;
}

.cntr {
  margin: auto;
}

.btn-radio {
  cursor: pointer;
  display: inline-block;
  float: left;
  -webkit-user-select: none;
  user-select: none;
}
.btn-radio:not(:first-child) {
  margin-left: 20px;
}
@media screen and (max-width: 480px) {
  .btn-radio {
    display: block;
    float: none;
  }
  .btn-radio:not(:first-child) {
    margin-left: 0;
    margin-top: 15px;
  }
}
.btn-radio svg {
  fill: none;
  vertical-align: middle;
}
.btn-radio svg circle {
  stroke-width: 2;
  stroke: #E8E8E8;
}
.btn-radio svg path {
  stroke: #616161;
}
.btn-radio svg path.inner {
  stroke-width: 6;
  stroke-dasharray: 19;
  stroke-dashoffset: 19;
}
.btn-radio svg path.outer {
  stroke-width: 2;
  stroke-dasharray: 57;
  stroke-dashoffset: 57;
}
.btn-radio input {
  display: none;
}
.btn-radio input:checked + svg path {
  transition: all 0.4s ease;
}
.btn-radio input:checked + svg path.inner {
  stroke-dashoffset: 38;
  transition-delay: 0.3s;
}
.btn-radio input:checked + svg path.outer {
  stroke-dashoffset: 0;
}
.btn-radio span {
  display: inline-block;
  vertical-align: middle;
}

.exp {
  display: table;
  width: 100%;
  height: 100%;
}
.exp .checkbox {
  display: table-cell;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  text-align: center;
}

.exp label {
  display: inline-block;
  color: #000;
  cursor: pointer;
  position: relative;
}
.exp label span {
  display: inline-block;
  position: relative;
  background-color: transparent;
  width: 16px;
  height: 16px;
  transform-origin: center;
  border: 2px solid #E8E8E8;
  border-radius: 50%;
  vertical-align: -6px;
  margin-right: 10px;
  transition: background-color 150ms 200ms, transform 350ms cubic-bezier(0.78, -1.22, 0.17, 1.89);
}
.exp label span:before {
  content: "";
  width: 0px;
  height: 2px;
  border-radius: 2px;
  background: #616161;
  position: absolute;
  transform: rotate(45deg);
  top: 8px;
  left: 4px;
  transition: width 50ms ease 50ms;
  transform-origin: 0% 0%;
}
.exp label span:after {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #616161;
  position: absolute;
  transform: rotate(305deg);
  top: 11px;
  left: 5px;
  transition: width 50ms ease;
  transform-origin: 0% 0%;
}
.exp label:hover span:before {
  width: 5px;
  transition: width 100ms ease;
}
.exp label:hover span:after {
  width: 10px;
  transition: width 150ms ease 100ms;
}

.exp input[type="checkbox"] {
  display: none;
}
.exp input[type="checkbox"]:checked + label span {
  background-color: #616161;
  border:2px solid #616161;
  transform: scale(1.25);
}
.exp input[type="checkbox"]:checked + label span:after {
  width: 10px;
  background: #E8E8E8;
  transition: width 150ms ease 100ms;
}
.exp input[type="checkbox"]:checked + label span:before {
  width: 5px;
  background: #E8E8E8;
  transition: width 150ms ease 100ms;
}
.exp input[type="checkbox"]:checked + label:hover span {
  background-color: #E8E8E8;
  transform: scale(1.25);
}
.exp input[type="checkbox"]:checked + label:hover span:after {
  width: 10px;
  background: #E8E8E8;
  transition: width 150ms ease 100ms;
}
.exp input[type="checkbox"]:checked + label:hover span:before {
  width: 5px;
  background: #E8E8E8;
  transition: width 150ms ease 100ms;
}

.but_busca{
	background: #828282;
	color: #FFFFFF;
	padding:10px;
	border-radius: 10px;
	cursor: pointer;
}

.but_busca_sel{
	background: #CBCBCB;
	color: #535353;
	padding:10px;
	border-radius: 10px;
	cursor: context-menu;
}

.grid-title-info{
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
}

.grid-title-item{
    align-items: center;
    align-content: center;
    display: contents;
}

.text-top-grid{
    display: grid;
    grid-template-columns: 10% 90%;
    gap: 10px;
}

.grid-item-image{
    margin-top: 0;
    grid-column: 1 / 2;
}

.grid-item-info{
    margin-top: 0;
    grid-column: 2 / 3;
}

.grid-item-info h2{
    margin-top: 0;
}

.status-header{
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: #8E8E8E;
    border-radius: 10px;
    padding: 10px;
}

.status-containers{
    display: inline-block;
    width: 50%;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.container-lido{
    font-family: Alegreya_XBold;
    font-size: large;
    color: #85FF88;
}

.container-lido-parte{
    font-family: Alegreya_XBold;
    font-size: large;
    color:#FFCD85;
}

.resumo-page .resumo-header {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e2e2;
}

.resumo-kicker {
    margin: 0 0 4px;
    color: #777;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.resumo-title {
    margin: 0;
    font-size: 1.55em;
    line-height: 1.25;
    color: #333;
}

.resumo-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.resumo-meta-item {
    background: #f7f7f7;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 12px 14px;
}

.resumo-meta-label {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 0.9em;
}

.resumo-meta-value {
    color: #333;
    font-weight: bold;
}

.resumo-state-unread { color: #c0392b; }
.resumo-state-partial { color: #d68910; }
.resumo-state-finished { color: #1e8449; }

.resumo-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.resumo-progress-card {
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 14px;
}

.resumo-finish-link,
.resumo-progress-done,
.resumo-pages-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.resumo-icon {
    flex-shrink: 0;
    display: block;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.resumo-finish-link:hover {
    opacity: 0.9;
}

.resumo-finish-link strong,
.resumo-progress-done strong,
.resumo-pages-heading strong {
    display: block;
    margin-bottom: 2px;
    color: #333;
}

.resumo-finish-link p,
.resumo-progress-done p,
.resumo-pages-heading p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.resumo-pages-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resumo-pages-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #444;
}

.resumo-pages-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.resumo-pages-input {
    width: 90px !important;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px;
    background: #fff;
}

.resumo-pages-total {
    color: #666;
    margin-right: 4px;
}

.resumo-editor-section {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.resumo-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e6e6e6;
    background: #f7f7f7;
}

.resumo-save-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: #555;
    font-size: 0.95em;
}

.resumo-save-label {
    color: #777;
}

.resumo-save-feedback {
    display: none;
    font-weight: bold;
}

.resumo-save-feedback.is-success {
    color: #1e8449;
}

.resumo-save-feedback.is-error {
    color: #c0392b;
}

.resumo-editor-form {
    margin: 0;
}

.resumo-editor-form .note-editor.note-frame {
    border: 0;
    border-radius: 0;
    margin: 0;
}

.resumo-toolbar-label {
    font-weight: bold;
    white-space: nowrap;
}

#salvar_resumo.is-saving {
    opacity: 0.7;
    cursor: wait;
}

.resumo-fullscreen-save-group {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.resumo-fullscreen-save-btn {
    background: #5f5f5f !important;
    color: #fff !important;
    border-color: #5f5f5f !important;
    font-weight: 600;
}

.resumo-fullscreen-save-btn:hover,
.resumo-fullscreen-save-btn:focus {
    background: #444 !important;
    border-color: #444 !important;
    color: #fff !important;
}

.resumo-fullscreen-save-btn.is-saving {
    opacity: 0.75;
    cursor: wait;
}

.resumo-fullscreen-save-feedback {
    display: none;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

.resumo-fullscreen-save-feedback.is-success {
    color: #1e8449;
}

.resumo-fullscreen-save-feedback.is-error {
    color: #c0392b;
}

.note-editor.fullscreen .resumo-fullscreen-save-group {
    display: inline-flex;
    margin-left: 12px;
}

@media (max-width: 720px) {
    .resumo-progress {
        grid-template-columns: 1fr;
    }

    .resumo-page .resumo-header {
        flex-direction: column;
    }

    .resumo-editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .resumo-editor-toolbar .buttonnocor {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

.flash-notice{
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.success{    
    background-color: #D4EDDA;
    color: #155724;
    border: 2px solid #155724;
}

.error{
    background-color: #F8D7DA;
    color: #721C24;
    border: 2px solid #721C24;
}

.warning{
    background-color: #FFF3CD;
    color: #856404;
    border: 2px solid #856404;
}

.flash-notice.warning a{
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

.duplicate-title-notice{
    margin-top: 10px;
    margin-bottom: 0;
    text-align: left;
}

.duplicate-title-link-wrap{
    position: relative;
    display: inline;
}

.duplicate-title-link{
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

.duplicate-title-tooltip{
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 20;
    min-width: 220px;
    max-width: min(340px, 80vw);
    padding: 12px 14px;
    border-radius: 8px;
    background: #2f2f2f;
    color: #f5f5f5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    text-align: left;
    font-weight: 400;
    line-height: 1.4;
}

.duplicate-title-tooltip::after{
    content: '';
    position: absolute;
    bottom: 100%;
    left: 18px;
    border: 7px solid transparent;
    border-bottom-color: #2f2f2f;
}

.duplicate-title-link-wrap:hover .duplicate-title-tooltip,
.duplicate-title-link-wrap:focus-within .duplicate-title-tooltip{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.duplicate-title-tooltip-title{
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.duplicate-title-tooltip-meta{
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.92em;
    color: #e4e4e4;
}

.duplicate-title-tooltip-meta strong{
    color: #fff;
    font-weight: 600;
}

.form-container {
    margin: 0 auto;
    margin-top: 20px;
}

.form-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.form-label {
    flex: 0 0 10%;
    padding-right: 15px;
}

.form-field, .form-group-content {
    flex-grow: 1;
}

.form-group-full {
    display: block;
}

.tipo-options-grid, .tipo-descriptions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 5px;
}

.capa-options-flex {
    display: flex;
    gap: 20px;
    padding-left: 10%;
}

.capa-option {
    text-align: center;
}

.estado-options-list label{
    padding-right: 20px;
}

.category-checkboxes-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
}

.category-checkboxes-container .exp {
    max-width: 20%;
    flex: 0 0 auto; 
    margin-bottom: 5px; 
}

.area-buttons-edit{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.text-edit-page .text-edit-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e2e2;
}

.text-edit-subtitle {
    margin: 4px 0 0;
    color: #666;
    font-size: 1.05em;
}

.but_primary {
    background-color: #5f5f5f !important;
}

.but_secondary {
    background-color: #8E8E8E !important;
}

.but_danger {
    background-color: #b94a48 !important;
}

.text-form {
    margin-top: 18px;
}

.text-form-section {
    margin-bottom: 22px;
    padding: 18px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fafafa;
}

.text-form-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.text-form-section-title {
    margin: 0 0 12px;
    font-size: 1.15em;
    color: #333;
}

.text-form-section-heading .text-form-section-title {
    margin-bottom: 0;
}

.text-form-section-link {
    color: #555;
    font-size: 0.95em;
}

.text-form-field {
    margin-bottom: 14px;
}

.text-form-field:last-child {
    margin-bottom: 0;
}

.text-form-field-narrow {
    max-width: 220px;
    margin-top: 14px;
}

.text-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.text-form-optional {
    font-weight: normal;
    color: #777;
}

.text-form-hint {
    margin: 6px 0 0;
    color: #777;
    font-size: 0.92em;
}

.text-form-input,
.text-form textarea.text-form-input,
.text-form select.text-form-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    background: #fff;
    font-size: 20px;
    padding: 10px;
    font-family: Alegreya_Regular, Arial;
    color: #333;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.text-form select.text-form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff;
    padding-right: 36px;
    cursor: pointer;
}

.text-form-input:focus,
.text-form textarea.text-form-input:focus,
.text-form select.text-form-input:focus {
    outline: none;
    border-color: #c9a227 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px #c9a227 !important;
}

.text-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.file-type-options,
.read-state-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-type-option,
.read-state-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.file-type-option {
    flex-direction: column;
    min-width: 130px;
    text-align: center;
}

.file-type-option img {
    display: block;
    margin: 0 auto;
}

.file-type-option input,
.read-state-option input,
.category-chip-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-type-option:hover,
.read-state-option:hover,
.category-chip:hover {
    border-color: #aaa;
}

.file-type-option.is-selected,
.read-state-option.is-selected {
    border-color: #6a6a6a;
    background: #f0f0f0;
    box-shadow: inset 0 0 0 1px #6a6a6a;
}

.read-state-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #999;
    flex-shrink: 0;
}

.read-state-unread .read-state-dot { background: #c0392b; }
.read-state-partial .read-state-dot { background: #d68910; }
.read-state-finished .read-state-dot { background: #1e8449; }

.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    padding: 8px 14px;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.category-chip-label {
    color: #444;
    font-size: 0.98em;
}

.category-chip.is-selected {
    border-color: #5f5f5f;
    background: #5f5f5f;
}

.category-chip.is-selected .category-chip-label {
    color: #fff;
}

.author-chips {
    margin-top: 4px;
}

.author-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 0;
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #5f5f5f;
    border-radius: 999px;
    background: #5f5f5f;
    color: #fff;
    padding: 6px 10px 6px 12px;
    max-width: 100%;
}

.author-chip-label {
    font-size: 0.95em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.author-chip-remove {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.85;
}

.author-chip-remove:hover,
.author-chip-remove:focus-visible {
    opacity: 1;
}

.author-chip-input-wrap {
    position: relative;
}

.author-chip-input {
    width: 100%;
}

.author-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 25;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.author-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    text-align: left;
}

.author-suggestion:hover,
.author-suggestion.is-active {
    background: #f0f0f0;
}

.author-display-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    vertical-align: middle;
}

.author-display-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #f3f3f3;
    color: #333;
    padding: 3px 10px;
    font-size: 0.95em;
}

.author-copy-button {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 10px;
    border: 1px solid #bdbdbd;
    border-radius: 999px;
    background: #fff;
    color: #444;
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    vertical-align: middle;
}

.author-copy-button:hover,
.author-copy-button:focus-visible {
    border-color: #888;
    background: #f7f7f7;
}

.author-copy-feedback {
    margin-left: 6px;
    color: #1e8449;
    font-size: 0.9em;
    vertical-align: middle;
}

.category-empty {
    margin-top: 10px;
    padding: 16px;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.text-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    padding-top: 8px;
}

.confirm-modal-open {
    overflow: hidden;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal[hidden] {
    display: none !important;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 40, 0.55);
}

.confirm-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: #fff;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    padding: 22px 20px 18px;
}

.confirm-modal-title {
    margin: 0 0 10px;
    font-size: 1.3em;
    color: #333;
}

.confirm-modal-text {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.45;
}

.confirm-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.confirm-modal-actions .text-delete-form {
    display: inline;
    margin: 0;
}

@media (max-width: 720px) {
    .text-edit-page .text-edit-header {
        flex-direction: column;
    }

    .area-buttons-edit {
        width: 100%;
        justify-content: stretch;
    }

    .area-buttons-edit .buttonnocor,
    .text-delete-wrap {
        flex: 1 1 auto;
    }

    .area-buttons-edit .buttonnocor,
    .text-delete-wrap .buttonnocor {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .text-form-grid-2 {
        grid-template-columns: 1fr;
    }

    .file-type-option {
        flex: 1 1 120px;
    }

    .confirm-modal-actions {
        flex-direction: column-reverse;
    }

    .confirm-modal-actions .buttonnocor,
    .confirm-modal-actions .text-delete-form,
    .confirm-modal-actions .text-delete-form .buttonnocor {
        width: 100%;
    }
}

.general-categories{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

.category-item{
    text-align: center;
}

.pagination{
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px;
    text-decoration: none;
    margin: 15px;
    gap: 10px;
}

.page,
.next,
.last,
.previous,
.first{
    padding: 10px;
    border-radius: 10px;
    margin-left:5px;
    margin-right:5px;
    background-color: rgb(112, 112, 112);
    color: white;
}

.page a,
.next a,
.last a,
.previous a,
.first a{
    color: white;
}

.current{
    padding: 10px;
    border-radius: 10px;
    margin-left:5px;
    margin-right:5px;
    background-color: rgb(168, 182, 181);
    color: white;
}

.note-editor.note-frame {
    display: block;
    width: 100%;
    background: #fff;
}

.note-editor .note-editing-area .note-editable {
    min-height: 200px;
}