#diario-lightbox {
display: none;
position: fixed;
inset: 0;
z-index: 99999;
background: rgba(0,0,0,.88);
align-items: center;
justify-content: center;
}
#diario-lightbox.active { display: flex; }
#diario-lightbox img {
max-width: 92vw;
max-height: 88vh;
object-fit: contain;
border-radius: 4px;
box-shadow: 0 8px 40px rgba(0,0,0,.6);
user-select: none;
}
.dlb-close {
position: fixed;
top: 16px; right: 20px;
font-size: 36px;
line-height: 1;
color: #fff;
cursor: pointer;
opacity: .8;
transition: opacity .2s;
background: none;
border: none;
padding: 0;
}
.dlb-close:hover { opacity: 1; }
.dlb-arrow {
position: fixed;
top: 50%;
transform: translateY(-50%);
font-size: 44px;
color: #fff;
cursor: pointer;
opacity: .7;
transition: opacity .2s;
background: none;
border: none;
padding: 0 12px;
user-select: none;
}
.dlb-arrow:hover, .dlb-arrow:focus { 
opacity: 1; 
background-color: var(--obra-accent)!important;
}
.dlb-prev { left: 8px; }
.dlb-next { right: 8px; }
.dlb-counter {
position: fixed;
bottom: 18px;
left: 50%;
transform: translateX(-50%);
color: rgba(255,255,255,.7);
font-size: 14px;
letter-spacing: .05em;
} .diario-text figure a img { cursor: zoom-in; } :root {
--primary-color: #31a364;
--secondary-color: #1a4731;
--success-color: #27ae60;
--danger-color: #dc3545;
--warning-color: #f59e0b;
--light-bg: #f0f8f4;
--border-color: #c8e6d4;
}
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
background-color: var(--light-bg);
color: #333;
}
h1, h2, h3, h4, h5, h6{
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
}  .login-screen button,
.login-screen [type="button"],
.login-screen [type="submit"],
.obra-detail button,
.obra-detail [type="button"],
.obra-detail [type="submit"],
.cron-dm-overlay button,
.cron-dm-overlay [type="button"],
.portal-obras-list button,
.portal-user-corner button,
.portal-configuracoes-cliente button,
.portal-configuracoes-cliente [type="button"],
.portal-configuracoes-cliente [type="submit"] {
background-color: transparent;
border: none;
border-radius: 0;
color: inherit;
padding: 0;
font-size: inherit;
font-weight: inherit;
text-align: inherit;
white-space: normal;
display: inline-flex;
transition: none;
width: auto;
} .login-screen a,
.obra-detail a,
.portal-obras-list a,
.portal-user-corner a,
.portal-configuracoes-cliente a {
color: inherit;
text-decoration: none;
} .login-screen input[type="text"],
.login-screen input[type="password"],
.login-screen input[type="email"],
.obra-detail input[type="text"],
.obra-detail input[type="password"],
.obra-detail input[type="email"],
.portal-obras-list input[type="text"] {
border: none;
border-radius: 0;
padding: 0;
width: auto;
transition: none;
} .login-screen button:hover,
.login-screen button:focus,
.login-screen [type="button"]:hover,
.login-screen [type="button"]:focus,
.login-screen [type="submit"]:hover,
.login-screen [type="submit"]:focus,
.obra-detail button:hover,
.obra-detail button:focus,
.obra-detail [type="button"]:hover,
.obra-detail [type="button"]:focus,
.obra-detail [type="submit"]:hover,
.obra-detail [type="submit"]:focus,
.cron-dm-overlay button:hover,
.cron-dm-overlay button:focus,
.cron-dm-overlay [type="button"]:hover,
.cron-dm-overlay [type="button"]:focus,
.portal-obras-list button:hover,
.portal-obras-list button:focus,
.portal-user-corner button:hover,
.portal-user-corner button:focus,
.portal-configuracoes-cliente button:hover,
.portal-configuracoes-cliente button:focus,
.portal-configuracoes-cliente [type="submit"]:hover,
.portal-configuracoes-cliente [type="submit"]:focus {
background-color: transparent;
color: inherit;
text-decoration: none;
}  .portal-header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.portal-header h1 {
margin: 0;
font-size: 28px;
}
.portal-header p {
margin: 5px 0 0 0;
opacity: 0.9;
} .portal-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
} .portal-mobile-menu {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
border-top: 1px solid var(--border-color);
z-index: 999;
}
@media (max-width: 768px) {
.portal-mobile-menu {
display: flex;
justify-content: space-around;
}
.portal-mobile-menu a {
flex: 1;
text-align: center;
padding: 15px 10px;
color: #666;
text-decoration: none;
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}
.portal-mobile-menu a:last-child {
border-right: none;
}
.portal-mobile-menu a.active {
color: var(--primary-color);
background: var(--light-bg);
}
.portal-mobile-menu i {
font-size: 20px;
}
} .card {
background: white;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
margin-bottom: 20px;
transition: box-shadow 0.3s ease;
}
.card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card-header {
background-color: var(--primary-color);
color: white;
padding: 15px;
font-weight: 600;
font-size: 16px;
}
.card-body {
padding: 20px;
} .grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
@media (max-width: 768px) {
.grid {
grid-template-columns: 1fr;
}
} .timeline {
position: relative;
padding: 20px 0;
}
.timeline::before {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 100%;
background: var(--primary-color);
}
.timeline-item {
margin-bottom: 30px;
position: relative;
}
.timeline-item:nth-child(odd) .timeline-content {
margin-left: 0;
margin-right: 52%;
}
.timeline-item:nth-child(even) .timeline-content {
margin-left: 52%;
margin-right: 0;
}
.timeline-marker {
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--primary-color);
border: 3px solid white;
z-index: 1;
}
.timeline-content {
background: white;
padding: 15px;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.timeline-content h4 {
margin-top: 0;
margin-bottom: 5px;
color: var(--primary-color);
}
.timeline-content p {
margin: 5px 0 0 0;
font-size: 14px;
color: #666;
} .progress-bar {
height: 30px;
background: var(--light-bg);
border-radius: 15px;
overflow: hidden;
border: 1px solid var(--border-color);
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--success-color));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 12px;
transition: width 0.3s ease;
} .table-responsive {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
table thead {
background-color: var(--light-bg);
border-bottom: 2px solid var(--border-color);
}
table th {
padding: 12px;
text-align: left;
font-weight: 600;
color: #333;
}
table td {
padding: 12px;
border-bottom: 1px solid var(--border-color);
}
table tbody tr:hover {
background-color: #f5f5f5;
} .btn {
display: inline-block;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: none;
font-size: 14px;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--secondary-color);
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #5a6268;
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
} .alert {
padding: 15px;
margin-bottom: 20px;
border-radius: 5px;
border-left: 4px solid;
}
.alert-success {
background-color: #d4edda;
border-color: var(--success-color);
color: #155724;
}
.alert-error {
background-color: #f8d7da;
border-color: var(--danger-color);
color: #721c24;
}
.alert-info {
background-color: #d1ecf1;
border-color: var(--primary-color);
color: #0c5460;
}
.alert-warning {
background-color: #fff3cd;
border-color: var(--warning-color);
color: #856404;
} .user-menu {
position: relative;
display: inline-block;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--primary-color);
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-weight: bold;
}
.user-dropdown {
display: none;
position: absolute;
top: 100%;
right: 0;
background: white;
border: 1px solid var(--border-color);
border-radius: 5px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
min-width: 200px;
z-index: 1000;
}
.user-dropdown.active {
display: block;
}
.user-dropdown a {
display: block;
padding: 12px 20px;
color: #333;
text-decoration: none;
border-bottom: 1px solid var(--border-color);
transition: background-color 0.3s ease;
}
.user-dropdown a:last-child {
border-bottom: none;
}
.user-dropdown a:hover {
background-color: var(--light-bg);
} .portal-site-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9998;
background: #fff;
border-bottom: 1px solid var(--border-color);
box-shadow: 0 2px 8px rgba(0,0,0,.07);
height: 60px;
}
body.admin-bar .portal-site-header {
top: 32px;
}
.portal-site-header__inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
padding: 0 24px;
}
.portal-site-header__logo {
display: flex;
align-items: center;
text-decoration: none;
color: var(--secondary-color);
font-weight: 700;
font-size: 1.1rem;
}
.portal-site-header__logo img {
max-height: 36px;
width: auto;
display: block;
} .portal-user-corner {
position: relative;
top: auto;
right: auto;
z-index: auto;
}
.portal-user-corner .user-avatar {
width: 44px;
height: 44px;
font-size: 18px;
box-shadow: 0 2px 10px rgba(0,0,0,.2);
transition: transform .18s, box-shadow .18s;
border: 2px solid rgba(255,255,255,.35);
}
.portal-user-corner .user-avatar:hover {
transform: scale(1.08);
box-shadow: 0 4px 16px rgba(0,0,0,.28);
}
.portal-user-corner .user-dropdown {
top: calc(100% + 8px);
right: 0;
border-radius: 10px;
min-width: 180px;
overflow: hidden;
box-shadow: 0 8px 24px rgba(0,0,0,.14);
padding: 0;
}
.portal-user-corner .user-dropdown.active {
display: block;
}
.portal-user-name {
display: block;
padding: 12px 16px 8px;
font-size: 12px;
font-weight: 600;
color: #888;
text-transform: uppercase;
letter-spacing: .05em;
border-bottom: 1px solid var(--border-color, #e2e8f0);
pointer-events: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.portal-user-corner .user-dropdown a {
padding: 11px 16px;
font-size: 14px;
display: flex;
align-items: center;
gap: 8px;
color: #333;
border-bottom: none;
text-decoration: none;
}
.portal-user-corner .user-dropdown a:hover {
background-color: #f5f5f5;
color: #333;
text-decoration: none;
}
.portal-user-corner .user-dropdown a:last-child {
color: #dc3545;
}
.portal-user-corner .user-dropdown a:last-child:hover {
background-color: #fff5f5;
color: #dc3545;
} @media (max-width: 768px) {
.timeline::before {
left: 30px;
}
.timeline-item:nth-child(odd) .timeline-content,
.timeline-item:nth-child(even) .timeline-content {
margin-left: 70px;
margin-right: 0;
}
.timeline-marker {
left: 30px;
}
.portal-header h1 {
font-size: 20px;
}
.portal-container {
padding: 15px;
padding-bottom: 100px; }
} :root {
--obra-primary: #1a4731;
--obra-accent:  #31a364;
--obra-success: #27ae60;
--obra-warning: #f59e0b;
--obra-danger:  #c62828;
--obra-bg:      #f0f8f4;
--obra-card:    #ffffff;
--obra-border:  #d4ede0;
--obra-text:    #1a2e22;
--obra-muted:   #6b7280;
}
.obra-detail {
background: var(--obra-bg);
min-height: 100vh;
} .obra-hero {
background: linear-gradient(135deg, var(--obra-primary) 0%, var(--obra-accent) 55%, var(--obra-primary) 100%);
color: white;
padding-bottom: 32px;
position: relative;
overflow: hidden;
}
.obra-hero::before {
content: '';
position: absolute;
top: -60%;
right: -8%;
width: 520px;
height: 520px;
border-radius: 50%;
background: rgba(255,255,255,0.04);
pointer-events: none;
}
.obra-hero::after {
content: '';
position: absolute;
bottom: -50%;
left: -5%;
width: 320px;
height: 320px;
border-radius: 50%;
background: rgba(255,255,255,0.03);
pointer-events: none;
}
.obra-hero-inner {
max-width: 900px;
margin: 0 auto;
padding: 32px 24px 0;
position: relative;
z-index: 1;
}
.obra-convite-notice-wrap {
max-width: 900px;
margin: 0 auto;
padding: 20px 24px 0;
}
.obra-convite-notice-wrap .portal-notice { margin-bottom: 20px; }
.obra-detail .obra-back-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: rgba(255,255,255,0.65);
text-decoration: none;
font-size: 13px;
font-weight: 500;
margin-bottom: 28px;
transition: color 0.2s;
letter-spacing: 0.2px;
}
.obra-detail .obra-back-link:hover { color: #fff; }
.obra-hero-main {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 24px;
margin-bottom: 36px;
}
.obra-hero-text { flex: 1; }
.obra-status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.8px;
text-transform: uppercase;
margin-bottom: 14px;
}
.status-progress { background: rgba(49,163,100,.28); color: #a7e8c4; border: 1px solid rgba(49,163,100,.4); }
.status-done     { background: rgba(39,174,96,.28);  color: #86e0aa; border: 1px solid rgba(39,174,96,.4);  }
.status-late     { background: rgba(198,40,40,.28);  color: #ef9a9a; border: 1px solid rgba(198,40,40,.4);  }
.obra-title {
font-size: 26px;
font-weight: 700;
color: #fff;
margin: 0 0 10px;
line-height: 1.25;
}
.obra-address {
color: rgba(255,255,255,.62);
font-size: 14px;
margin: 0;
display: flex;
align-items: center;
gap: 6px;
} .obra-progress-ring {
position: relative;
width: 116px;
height: 116px;
flex-shrink: 0;
}
.progress-ring-svg {
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
.ring-track {
fill: none;
stroke: rgba(255,255,255,.12);
stroke-width: 8;
}
.ring-fill {
fill: none;
stroke: #52c788;
stroke-width: 8;
stroke-linecap: round;
stroke-dasharray: calc(2 * 3.14159 * 42);
stroke-dashoffset: calc(2 * 3.14159 * 42 * (1 - var(--progress, 0) / 100));
transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}
.ring-label {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.ring-value {
font-size: 22px;
font-weight: 700;
color: #fff;
line-height: 1;
}
.ring-text {
font-size: 10px;
color: rgba(255,255,255,.55);
margin-top: 3px;
letter-spacing: 0.3px;
} .obra-stats-row {
display: flex;
border-top: 1px solid rgba(255,255,255,.1);
padding-top: 24px;
}
.obra-stat {
flex: 1;
text-align: center;
padding: 0 12px;
border-right: 1px solid rgba(255,255,255,.1);
}
.obra-stat:last-child { border-right: none; }
.stat-num {
display: block;
font-size: 19px;
font-weight: 700;
color: #fff;
line-height: 1;
margin-bottom: 5px;
}
.stat-lbl {
display: block;
font-size: 10px;
color: rgba(255,255,255,.5);
text-transform: uppercase;
letter-spacing: 0.6px;
} .obra-tabs-wrapper {
background: #fff;
border-bottom: 1px solid var(--obra-border);
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.obra-tabs {
max-width: 900px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
padding: 0 16px;
}
.obra-detail .obra-tab-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 14px 14px;
background: none;
border: none;
border-bottom: 3px solid transparent;
color: var(--obra-muted);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: color .2s, background .2s;
margin-bottom: -1px;
border-radius: 0;
width: auto;
}
.obra-detail .obra-tab-btn:hover,
.obra-detail .obra-tabs button:focus {
color: var(--obra-accent);
background-color: rgba(49,163,100,.06);
}
.obra-detail .obra-tab-btn.active {
color: var(--obra-accent);
border-bottom-color: var(--obra-accent);
}
.obra-detail .tab-count {
background: var(--obra-accent);
color: #fff;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
padding: 2px 7px;
line-height: 18px;
min-width: 22px;
text-align: center;
} .obra-panels {
max-width: 900px;
margin: 0 auto;
padding: 32px 24px 72px;
}
.obra-panel { display: none; }
.obra-panel.active {
display: block;
animation: panelFadeIn .3s ease;
}
@keyframes panelFadeIn {
from { opacity: 0; transform: translateY(10px); }
to   { opacity: 1; transform: translateY(0);    }
}
.panel-header { margin-bottom: 24px; }
.panel-header h2 {
font-size: 19px;
font-weight: 700;
color: var(--obra-text);
margin: 0 0 4px;
display: flex;
align-items: center;
gap: 10px;
}
.panel-header h2 i { color: var(--obra-accent); font-size: 17px; }
.panel-header p { font-size: 13px; color: var(--obra-muted); margin: 0; } .empty-state {
text-align: center;
padding: 60px 24px;
color: var(--obra-muted);
}
.empty-state i { font-size: 48px; opacity: .25; display: block; margin-bottom: 16px; }
.empty-state p { font-size: 15px; margin: 0; } .diario-timeline { position: relative; }
.diario-item {
display: flex;
gap: 18px;
margin-bottom: 0;
}
.diario-date-col {
display: flex;
flex-direction: column;
align-items: center;
width: 58px;
flex-shrink: 0;
}
.diario-date-box {
background: var(--obra-accent);
color: #fff;
border-radius: 10px;
padding: 8px 6px;
text-align: center;
width: 54px;
box-shadow: 0 4px 12px rgba(49,163,100,.3);
}
.date-day {
display: block;
font-size: 20px;
font-weight: 700;
line-height: 1;
}
.date-mon {
display: block;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
opacity: .85;
margin-top: 2px;
}
.date-yr {
display: block;
font-size: 9px;
opacity: .65;
margin-top: 1px;
}
.diario-connector {
width: 2px;
flex: 1;
background: var(--obra-border);
margin: 6px 0;
min-height: 16px;
}
.diario-item:last-child .diario-connector { display: none; }
.diario-content-col {
flex: 1;
padding-bottom: 20px;
min-width: 0;
}
.diario-card {
background: var(--obra-card);
border-radius: 12px;
box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.04);
overflow: hidden;
border: 1px solid var(--obra-border);
transition: box-shadow .2s;
}
.diario-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); }
.diario-thumb img {
width: 100%;
max-height: 220px;
object-fit: cover;
display: block;
}
.diario-body { padding: 18px 20px; }
.diario-card-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.diario-card-top h3 {
font-size: 20px;
font-weight: 600;
color: var(--obra-text);
margin: 0;
line-height: 1.35;
}
.estagio-tag {
display: inline-flex;
align-items: center;
gap: 5px;
background: #e6f4ed;
color: var(--obra-accent);
border-radius: 20px;
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
white-space: nowrap;
flex-shrink: 0;
}
.diario-text {
font-size: 14px;
color: var(--obra-muted);
line-height: 1.65;
}
.diario-text p { margin: 0 0 8px; }
.diario-text p:last-child { margin: 0; } .diario-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 24px;
}
.obra-detail .diario-filter-btn {
display: inline-flex;
align-items: center;
padding: 6px 16px;
border-radius: 999px;
border: 1.5px solid var(--obra-border, #e2e8f0);
background: var(--obra-card, #fff);
color: var(--obra-muted, #64748b);
font-size: 13px;
font-weight: 500;
text-decoration: none;
transition: background .16s, border-color .16s, color .16s;
white-space: nowrap;
}
.obra-detail .diario-filter-btn:hover {
border-color: #fff;
color: var(--obra-accent);
text-decoration: none;
background-color: #31a36440;
}
.obra-detail .diario-filter-btn.active {
background: #31a36440;
border-color: #fff;
color: var(--obra-accent);
pointer-events: none;
} .diario-pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin-top: 32px;
flex-wrap: wrap;
}
.obra-detail .diario-page-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border-radius: 50%;
border: 2px solid var(--obra-border, #e2e8f0);
background: var(--obra-card, #fff);
color: var(--obra-text, #374151);
font-size: 14px;
font-weight: 500;
text-decoration: none;
transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
line-height: 1;
}
.obra-detail .diario-page-btn:hover {
border-color: var(--obra-primary, #2563eb);
color: var(--obra-primary, #2563eb);
box-shadow: 0 2px 8px rgba(37,99,235,.15);
text-decoration: none;
background: var(--obra-card, #fff);
}
.obra-detail .diario-page-btn.active {
background: var(--obra-primary, #2563eb);
border-color: var(--obra-primary, #2563eb);
color: #fff;
box-shadow: 0 2px 10px rgba(37,99,235,.3);
pointer-events: none;
} .cron-overview-card {
background: var(--obra-card);
border-radius: 12px;
padding: 20px 22px;
margin-bottom: 20px;
border: 1px solid var(--obra-border);
box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.cron-overview-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.cron-overview-lbl { font-size: 13px; color: var(--obra-muted); }
.cron-overview-pct {
font-size: 20px;
font-weight: 700;
color: var(--obra-accent);
}
.cron-progress-track {
height: 10px;
background: #e6f4ed;
border-radius: 10px;
overflow: hidden;
margin-bottom: 8px;
}
.cron-progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--obra-accent), #52c788);
border-radius: 10px;
transition: width 1s ease;
}
.cron-overview-meta { font-size: 12px; color: var(--obra-muted); } .cron-view-toggle {
display: flex;
gap: 10px;
margin-top: 22px;
margin-bottom: 22px;
}
.obra-detail button.cron-view-btn {
display: inline-flex;
flex-direction: row;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: 8px;
border: 1px solid var(--obra-border);
background: transparent;
font-size: 12px;
font-weight: 500;
color: var(--obra-muted);
cursor: pointer;
transition: border-color .2s, color .2s, background .2s;
}
.obra-detail button.cron-view-btn i {
font-size: 13px;
transition: color .2s;
}
.obra-detail button.cron-view-btn:hover {
border-color: var(--light-bg);
color: var(--light-bg);
box-shadow: 0 4px 14px rgba(0,0,0,.08);
background: var(--obra-accent);
}
.obra-detail button.cron-view-btn.active {
border-color: var(--light-bg);
background: var(--obra-accent);
color: var(--light-bg);
box-shadow: 0 2px 10px rgba(0,0,0,.07);
} .cron-view { display: none; }
.cron-view.active { display: block; } .cron-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.cron-item {
background: var(--obra-card);
border-radius: 12px;
padding: 16px 18px;
border: 1px solid var(--obra-border);
border-left: 4px solid var(--obra-border);
box-shadow: 0 1px 4px rgba(0,0,0,.04);
transition: box-shadow .2s;
}
.cron-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.cron-item.is-done { border-left-color: var(--obra-success); }
.cron-item.is-late { border-left-color: var(--obra-danger); }
.cron-item-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
}
.cron-item-name {
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
font-size: 14px;
color: var(--obra-text);
}
.cron-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #d1d5db;
flex-shrink: 0;
}
.cron-dot.is-active { background: var(--obra-accent); }
.cron-dot.is-done   { background: var(--obra-success); }
.cron-dot.is-late   { background: var(--obra-danger);  }
.cron-item-badges {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.cron-badge {
display: inline-flex;
align-items: center;
gap: 4px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
}
.cron-badge.done     { background: #e0f2f1; color: var(--obra-success); }
.cron-badge.late     { background: #ffebee; color: var(--obra-danger);  }
.cron-badge.progress { background: #e6f4ed; color: var(--obra-accent);  }
.cron-pct-badge {
font-size: 15px;
font-weight: 700;
color: var(--obra-accent);
margin-left: 4px;
} .cron-dates-grid {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 14px;
}
.cron-dates-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.cron-dates-type {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--obra-muted);
min-width: 60px;
}
.cron-dates-type--real { color: var(--obra-accent); }
.cron-dates-pair {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.cron-date-entry { display: flex; flex-direction: column; gap: 1px; }
.cron-date-lbl {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--obra-muted);
font-weight: 600;
}
.cron-date-val {
font-size: 13px;
font-weight: 600;
color: var(--obra-text);
}
.cron-date-val.date-overdue { color: var(--obra-danger); }
.cron-date-arrow { color: #d1d5db; font-size: 10px; }
.cron-bar-track {
height: 6px;
background: #e6f4ed;
border-radius: 6px;
overflow: hidden;
}
.cron-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--obra-accent), #52c788);
border-radius: 6px;
transition: width .9s cubic-bezier(0.4,0,0.2,1);
}
.cron-bar-fill.is-done { background: linear-gradient(90deg, var(--obra-success), #52c788); }
.cron-bar-fill.is-late { background: linear-gradient(90deg, var(--obra-danger),  #ef5350); } .cron-tl-outer {
overflow-x: auto;
border-radius: 12px;
border: 1px solid var(--obra-border);
background: var(--obra-card);
-webkit-overflow-scrolling: touch;
}
.cron-tl-head,
.cron-tl-row {
display: flex;
min-width: 700px;
}
.cron-tl-head {
border-bottom: 1px solid var(--obra-border);
background: #f9fafb;
position: sticky;
top: 0;
z-index: 2;
}
.cron-tl-label-col {
width: 180px;
min-width: 180px;
padding: 10px 14px;
display: flex;
flex-direction: column;
justify-content: center;
gap: 4px;
border-right: 1px solid var(--obra-border);
background: inherit;
}
.cron-tl-chart-col {
flex: 1;
position: relative;
height: 64px;
}
.cron-tl-head .cron-tl-chart-col { height: 32px; }
.cron-tl-month-mark {
position: absolute;
top: 0;
transform: translateX(-50%);
font-size: 10px;
font-weight: 600;
color: var(--obra-muted);
white-space: nowrap;
padding-top: 9px;
}
.cron-tl-row {
border-bottom: 1px solid var(--obra-border);
transition: background .15s;
}
.cron-tl-row:last-of-type { border-bottom: none; }
.cron-tl-row:hover { background: #fafafa; }
.cron-tl-row-name {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
font-weight: 600;
color: var(--obra-text);
}
.cron-tl-grid-line {
position: absolute;
top: 0; bottom: 0;
width: 1px;
background: #e5e7eb;
pointer-events: none;
}
.cron-tl-today {
position: absolute;
top: 0; bottom: 0;
width: 2px;
background: #f59e0b;
z-index: 2;
pointer-events: none;
}
.cron-tl-today::before {
content: 'Hoje';
position: absolute;
top: 3px;
left: 4px;
font-size: 9px;
font-weight: 700;
color: #f59e0b;
white-space: nowrap;
}
.cron-tl-bar {
position: absolute;
height: 20px;
border-radius: 4px;
display: flex;
align-items: center;
overflow: hidden;
cursor: default;
transition: opacity .2s;
}
.cron-tl-bar:hover { opacity: .85; }
.cron-tl-planned {
top: 10px;
background: #dbeafe;
border: 1px solid #93c5fd;
}
.cron-tl-real {
top: 34px;
background: linear-gradient(90deg, var(--obra-accent), #52c788);
}
.cron-tl-real.is-done { background: linear-gradient(90deg, var(--obra-success), #52c788); }
.cron-tl-real.is-late { background: linear-gradient(90deg, var(--obra-danger),  #ef5350); }
.cron-tl-diario-mark {
position: absolute;
top: 29px;
width: 26px;
height: 26px;
border-radius: 50%;
background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
border: 2px solid #16a34a;
display: flex;
align-items: center;
justify-content: center;
transform: translateX(-50%);
z-index: 5;
cursor: pointer;
box-shadow: 0 2px 6px rgba(22,163,74,.3), 0 0 0 3px rgba(22,163,74,.1);
transition: transform .15s, box-shadow .15s;
}
.cron-tl-diario-mark:hover {
transform: translateX(-50%) scale(1.3);
box-shadow: 0 4px 16px rgba(22,163,74,.45), 0 0 0 5px rgba(22,163,74,.15);
}
.cron-tl-diario-mark i {
font-size: 10px;
color: #16a34a;
pointer-events: none;
} .cron-tl-diario-group {
position: absolute;
top: 29px;
width: 26px;
height: 26px;
transform: translateX(-50%);
z-index: 5;
}
.cron-tl-diario-group .cron-tl-diario-mark {
position: absolute;
top: 0;
left: 0;
transform: none;
transition: top .25s cubic-bezier(.4,0,.2,1), box-shadow .2s, transform .2s;
}
.cron-tl-diario-group .cron-tl-diario-mark:hover {
transform: scale(1.28);
box-shadow: 0 4px 16px rgba(22,163,74,.45), 0 0 0 5px rgba(22,163,74,.15);
}
.cron-tl-diario-group.is-expanded {
z-index: 50;
}
.cron-tl-group-badge {
position: absolute;
top: -5px;
right: -6px;
min-width: 15px;
height: 15px;
padding: 0 3px;
background: #16a34a;
color: #fff;
border-radius: 8px;
font-size: 8px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
border: 1.5px solid #fff;
z-index: 10;
box-sizing: border-box;
transition: opacity .15s;
}
.cron-tl-diario-group.is-expanded .cron-tl-group-badge {
opacity: 0;
} .cron-dm-overlay {
display: none;
position: fixed;
inset: 0;
z-index: 99990;
background: rgba(0,0,0,.55);
align-items: center;
justify-content: center;
padding: 20px;
}
.cron-dm-overlay.active { display: flex; }
.cron-dm-card {
background: #fff;
border-radius: 16px;
max-width: 690px;
width: 100%;
max-height: 85vh;
overflow-y: auto;
position: relative;
box-shadow: 0 20px 60px rgba(0,0,0,.25);
animation: cron-dm-in .2s ease;
}
@keyframes cron-dm-in {
from { opacity: 0; transform: scale(.94) translateY(12px); }
to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.cron-dm-overlay .cron-dm-close {
position: absolute;
top: 14px; right: 14px;
width: 32px; height: 32px;
border-radius: 50%;
border: none;
background: #f3f4f6;
color: #6b7280;
font-size: 14px;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
transition: background .15s, color .15s;
z-index: 1;
}
.cron-dm-overlay .cron-dm-close:hover { background: #e5e7eb; color: #111; }
.cron-dm-meta {
display: flex;
align-items: center;
gap: 10px;
padding: 20px 20px 0;
flex-wrap: wrap;
}
.cron-dm-estagio {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
color: #16a34a;
background: #dcfce7;
padding: 3px 10px;
border-radius: 20px;
}
.cron-dm-data {
font-size: 12px;
color: #6b7280;
}
.cron-dm-titulo {
font-size: 18px;
font-weight: 700;
color: #111;
margin: 10px 20px 14px;
padding-right: 30px;
line-height: 1.3;
}
.cron-dm-thumb-wrap { margin: 0 20px 14px; }
.cron-dm-thumb {
width: 100%;
border-radius: 10px;
object-fit: cover;
max-height: 220px;
display: block;
}
.cron-dm-conteudo {
padding: 0 20px 24px;
font-size: 14px;
line-height: 1.65;
color: #374151;
}
.cron-dm-conteudo p   { margin: 0 0 10px; }
.cron-dm-conteudo img { max-width: 100%; border-radius: 6px; }
.cron-tl-bar-lbl {
font-size: 10px;
font-weight: 600;
padding: 0 6px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cron-tl-planned .cron-tl-bar-lbl { color: #1d4ed8; }
.cron-tl-real    .cron-tl-bar-lbl { color: #fff; } .cron-tl-legend {
display: flex;
align-items: center;
gap: 18px;
padding: 12px 16px;
border-top: 1px solid var(--obra-border);
background: #f9fafb;
}
.cron-tl-legend-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--obra-muted);
font-weight: 600;
}
.cron-tl-legend-dot {
width: 14px;
height: 8px;
border-radius: 3px;
}
.cron-tl-legend-dot.planned { background: #dbeafe; border: 1px solid #93c5fd; }
.cron-tl-legend-dot.real    { background: linear-gradient(90deg, var(--obra-accent), #52c788); }
.cron-tl-legend-dot.hoje    { background: #f59e0b; width: 3px; border-radius: 2px; } #cron-tl-tooltip {
position: fixed;
z-index: 9999;
background: #1e293b;
color: #f1f5f9;
font-size: 12px;
line-height: 1.5;
padding: 6px 10px;
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0,0,0,.25);
pointer-events: none;
white-space: pre;
max-width: 260px;
white-space: normal;
opacity: 0;
transition: opacity .15s;
}
#cron-tl-tooltip.visible { opacity: 1; }
#cron-tl-tooltip strong {
display: block;
font-size: 11px;
color: #94a3b8;
margin-bottom: 2px;
} .docs-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.doc-card {
background: var(--obra-card);
border-radius: 12px;
padding: 16px 18px;
display: flex;
align-items: center;
gap: 16px;
border: 1px solid var(--obra-border);
box-shadow: 0 1px 4px rgba(0,0,0,.04);
transition: box-shadow .2s, transform .2s;
}
.doc-card:hover {
box-shadow: 0 6px 20px rgba(0,0,0,.08);
transform: translateY(-1px);
}
.doc-icon-wrap {
width: 48px;
height: 48px;
border-radius: 10px;
background: color-mix(in srgb, var(--doc-color, #e53935) 12%, white);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.doc-icon-wrap i { font-size: 20px; color: var(--doc-color, #e53935); } @supports not (background: color-mix(in srgb, red 12%, white)) {
.doc-icon-wrap { background: #fff5f5; }
}
.doc-info { flex: 1; min-width: 0; }
.doc-info h4 {
font-size: 14px;
font-weight: 600;
color: var(--obra-text);
margin: 0 0 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.doc-info p {
font-size: 13px;
color: var(--obra-muted);
margin: 0 0 4px;
}
.doc-meta {
font-size: 11px;
color: var(--obra-muted);
display: flex;
align-items: center;
gap: 4px;
}
.obra-detail .doc-download-btn {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--obra-accent);
color: #fff;
border-radius: 8px;
padding: 9px 16px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
white-space: nowrap;
flex-shrink: 0;
transition: background .2s, transform .15s;
}
.obra-detail .doc-download-btn:hover {
background: var(--obra-primary);
transform: scale(1.04);
color: #fff;
text-decoration: none;
} @media (max-width: 640px) {
.obra-hero-main { flex-direction: column-reverse; align-items: center; }
.obra-progress-ring { width: 90px; height: 90px; }
.ring-value { font-size: 18px; }
.obra-title { font-size: 21px; }
.obra-stats-row { flex-wrap: wrap; }
.obra-stat {
flex: 1 1 42%;
border-right: none !important;
border-bottom: 1px solid rgba(255,255,255,.1);
padding: 12px 8px;
}
.obra-stat:nth-child(3),
.obra-stat:nth-child(4) { border-bottom: none; }
.obra-detail .obra-tab-btn span { display: none; }
.obra-detail .obra-tab-btn { padding: 14px 18px; gap: 0; }
.obra-detail .obra-tab-btn i { font-size: 18px; }
.obra-panels { padding: 20px 16px 90px; }
.diario-item {
flex-direction: column;
gap: 10px;
}
.diario-date-col {
flex-direction: row;
width: 100%;
align-items: center;
gap: 10px;
}
.diario-date-box { width: 54px; }
.date-day { font-size: 18px; }
.diario-connector {
flex: 1;
width: auto;
height: 2px;
min-height: unset;
margin: 0;
}
.diario-content-col {
width: 100%;
padding-bottom: 12px;
}
.cron-pct-badge { font-size: 13px; }
.cron-dates-row { flex-direction: column; align-items: flex-start; gap: 4px; }
.cron-tl-label-col { width: 130px; min-width: 130px; }
.doc-card { flex-wrap: wrap; }
.doc-download-btn { width: 100%; justify-content: center; margin-top: 4px; }
} @media (max-width: 768px) {
.obra-tabs-wrapper { display: none !important; }
.obra-panels { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.obra-bottom-nav {
position: fixed;
bottom: 0; left: 0; right: 0;
display: flex;
align-items: stretch;
background: #ffffff;
border-top: 1px solid rgba(0,0,0,.07);
box-shadow: 0 -6px 24px rgba(0,0,0,.10);
z-index: 9999;
padding-bottom: env(safe-area-inset-bottom, 0px);
height: calc(64px + env(safe-area-inset-bottom, 0px));
}
.obra-bnav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
padding: 8px 4px 4px;
background: none;
border: none;
cursor: pointer;
text-decoration: none;
color: #9ca3af;
font-family: inherit;
font-size: inherit;
position: relative;
transition: color .2s;
-webkit-tap-highlight-color: transparent;
}
.obra-bnav-item::before {
content: '';
position: absolute;
top: 0; left: 50%;
transform: translateX(-50%) scaleX(0);
width: 28px; height: 3px;
background: var(--obra-primary);
border-radius: 0 0 3px 3px;
transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.obra-bnav-item.active::before { transform: translateX(-50%) scaleX(1); }
.bnav-icon-wrap {
width: 40px; height: 32px;
display: flex; align-items: center; justify-content: center;
border-radius: 10px;
transition: background .2s, transform .2s;
}
.obra-bnav-item i {
font-size: 1.2rem;
line-height: 1;
transition: transform .2s;
}
.obra-bnav-item span {
font-size: .62rem;
font-weight: 600;
letter-spacing: .3px;
line-height: 1;
}
.obra-bnav-item.active {
color: var(--obra-primary);
}
.obra-bnav-item.active .bnav-icon-wrap {
background: rgba(45, 255, 115, 0.12);
transform: translateY(-2px);
}
.obra-bnav-item.active i {
transform: scale(1.1);
}
.obra-bnav-item:active .bnav-icon-wrap {
background: rgba(45,140,255,.2);
transform: scale(.92) translateY(-2px);
}
.obra-detail button.obra-bnav-item:hover,
.obra-detail button.obra-bnav-item:focus {
background: var(--obra-primary);
color: var(--obra-card);
} .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
.obra-bottom-nav { display: none; }
}   .portal-greeting {
max-width: 900px;
margin: 32px auto 24px;
padding: 0 16px;
animation: greetingFadeIn .45s ease both;
}
@keyframes greetingFadeIn {
from { opacity: 0; transform: translateY(-10px); }
to   { opacity: 1; transform: translateY(0); }
}
.portal-greeting-inner {
background: linear-gradient(135deg, var(--secondary-color, #1a4731) 0%, var(--primary-color, #31a364) 100%);
border-radius: 16px;
padding: 22px 28px;
display: flex;
align-items: center;
gap: 18px;
color: #fff;
box-shadow: 0 6px 24px rgba(26,71,49,.28);
position: relative;
overflow: hidden;
}
.portal-greeting-inner::after {
content: '';
position: absolute;
top: -50%;
right: -30px;
width: 200px;
height: 200px;
border-radius: 50%;
background: rgba(255,255,255,.06);
pointer-events: none;
}
.portal-greeting-icon {
width: 52px;
height: 52px;
border-radius: 14px;
background: rgba(255,255,255,.15);
border: 1.5px solid rgba(255,255,255,.2);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 20px;
}
.portal-greeting-msg {
margin: 0 0 4px;
font-size: 1.2rem;
font-weight: 500;
color: #fff;
line-height: 1.3;
}
.portal-greeting-msg strong {
font-weight: 700;
}
.portal-greeting-sub {
margin: 0;
font-size: .88rem;
color: rgba(255,255,255,.72);
}
@media (max-width: 480px) {
.portal-greeting-inner { padding: 18px 20px; gap: 14px; }
.portal-greeting-icon  { width: 44px; height: 44px; font-size: 17px; }
.portal-greeting-msg   { font-size: 1.05rem; }
} .portal-obras-list { max-width: 900px; margin: 0 auto; padding: 0 16px; font-family: inherit; }
.portal-obras-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.portal-obras-header h2 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.obras-count { font-size: .85rem; color: #888; font-weight: 500; }
.obras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.portal-obras-list .obra-card {
display: flex; flex-direction: column;
border-radius: 14px; overflow: hidden;
box-shadow: 0 2px 12px rgba(0,0,0,.10);
text-decoration: none; color: inherit;
background: #fff;
transition: transform .18s ease, box-shadow .18s ease;
}
.portal-obras-list .obra-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.15); color: inherit; text-decoration: none; }
.obra-card-thumb { position: relative; height: 180px; background: #e9ecef; overflow: hidden; }
.obra-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.obra-card-thumb--placeholder { display: flex; align-items: center; justify-content: center; }
.obra-card-thumb--placeholder svg { width: 56px; height: 56px; color: #adb5bd; }
.obra-estagio-badge {
position: absolute; bottom: 10px; left: 10px;
background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
color: #fff; font-size: .72rem; font-weight: 600;
padding: 4px 10px; border-radius: 20px; letter-spacing: .3px;
}
.obra-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.portal-obras-list .obra-card-body h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none; color: inherit; }
.portal-obras-list .obra-card-body p { text-decoration: none; }
.obra-endereco {
display: flex; align-items: flex-start; gap: 5px;
font-size: .82rem; color: #666; margin: 0; line-height: 1.4;
}
.obra-endereco svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.obra-progress { margin-top: auto; padding-top: 4px; }
.obra-progress-bar { height: 6px; background: #e9ecef; border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.obra-progress-fill { height: 100%; background: linear-gradient(90deg, var(--obra-accent), var(--obra-success)); border-radius: 99px; transition: width .4s ease; }
.obra-progress-label { font-size: .75rem; color: #555; font-weight: 500; }
.obras-empty { text-align: center; padding: 60px 20px; color: #adb5bd; }
.obras-empty svg { width: 64px; height: 64px; margin-bottom: 16px; }
.obras-empty p { font-size: .95rem; margin: 0; } .login-screen {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px 16px;
background: linear-gradient(145deg, #0d2b1a 0%, #1a4731 40%, #255c40 70%, #31a364 100%);
position: relative;
overflow: hidden;
} .login-screen::before,
.login-screen::after {
content: '';
position: absolute;
border-radius: 50%;
pointer-events: none;
}
.login-screen::before {
width: 480px;
height: 480px;
background: rgba(255,255,255,.04);
top: -140px;
right: -100px;
}
.login-screen::after {
width: 320px;
height: 320px;
background: rgba(255,255,255,.03);
bottom: -100px;
left: -80px;
} .login-card {
background: #fff;
border-radius: 24px;
width: 100%;
max-width: 420px;
box-shadow: 0 24px 64px rgba(0,0,0,.30), 0 4px 16px rgba(0,0,0,.12);
overflow: hidden;
animation: loginCardIn .45s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes loginCardIn {
from { opacity: 0; transform: translateY(32px) scale(.96); }
to   { opacity: 1; transform: translateY(0)    scale(1);   }
} .login-brand {
background: linear-gradient(135deg, var(--obra-primary, #1a4731) 0%, var(--obra-accent, #31a364) 100%);
padding: 40px 32px 36px;
text-align: center;
position: relative;
overflow: hidden;
}
.login-brand::before {
content: '';
position: absolute;
top: -60px; right: -60px;
width: 200px; height: 200px;
border-radius: 50%;
background: rgba(255,255,255,.06);
pointer-events: none;
}
.login-brand-icon {
width: 72px;
height: 72px;
border-radius: 20px;
background: rgba(255,255,255,.15);
backdrop-filter: blur(8px);
border: 1.5px solid rgba(255,255,255,.25);
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.login-brand-icon i {
font-size: 30px;
color: #fff;
}
.login-brand-title {
font-size: 22px;
font-weight: 700;
color: #fff;
margin: 0 0 8px;
letter-spacing: -.2px;
}
.login-brand-sub {
font-size: 13px;
color: rgba(255,255,255,.7);
margin: 0;
line-height: 1.5;
} .login-body {
padding: 32px 28px 36px;
} .login-message {
display: none;
padding: 12px 16px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
margin-bottom: 20px;
line-height: 1.45;
gap: 8px;
align-items: center;
}
.login-message.success {
display: flex;
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}
.login-message.error {
display: flex;
background: #fef2f2;
color: #991b1b;
border: 1px solid #fecaca;
}
.login-message i { flex-shrink: 0; font-size: 15px; } .login-field-group {
border: 1.5px solid #e5e7eb;
border-radius: 14px;
overflow: hidden;
margin-bottom: 20px;
transition: border-color .2s, box-shadow .2s;
}
.login-field-group:focus-within {
border-color: var(--obra-accent, #31a364);
box-shadow: 0 0 0 3px rgba(49,163,100,.12);
}
.login-field {
display: flex;
align-items: center;
border-bottom: 1.5px solid #e5e7eb;
position: relative;
}
.login-field:last-child { border-bottom: none; }
.login-field-icon {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
flex-shrink: 0;
color: #9ca3af;
font-size: 14px;
padding-left: 4px;
transition: color .2s;
}
.login-field:focus-within .login-field-icon { color: var(--obra-accent, #31a364); }
.login-screen .login-field input {
flex: 1;
border: none;
outline: none;
padding: 15px 12px 15px 0;
font-size: 15px;
color: #111827;
background: transparent;
font-family: inherit;
min-width: 0;
width: auto;
border-radius: 0;
}
.login-screen .login-field input::placeholder { color: #9ca3af; }
.login-screen .login-field input[readonly] { color: #6b7280; cursor: not-allowed; }
.login-screen .login-field:has(input[readonly]) { background: #f9fafb; }
.login-screen .login-toggle-pass {
background: none;
border: none;
padding: 0 14px;
color: #9ca3af;
cursor: pointer;
font-size: 14px;
line-height: 1;
transition: color .2s;
flex-shrink: 0;
}
.login-screen .login-toggle-pass:hover { color: var(--obra-accent, #31a364); background: none; } .login-screen .login-submit {
width: 100%;
padding: 15px;
border: none;
border-radius: 14px;
background: linear-gradient(135deg, var(--obra-accent, #31a364) 0%, var(--obra-primary, #1a4731) 100%);
color: #fff;
font-size: 16px;
font-weight: 700;
cursor: pointer;
letter-spacing: .3px;
position: relative;
overflow: hidden;
transition: opacity .2s, transform .15s, box-shadow .2s;
box-shadow: 0 4px 16px rgba(49,163,100,.35);
font-family: inherit;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.login-screen .login-submit:hover:not(:disabled) {
opacity: .92;
transform: translateY(-1px);
box-shadow: 0 8px 24px rgba(49,163,100,.40);
background: linear-gradient(135deg, var(--obra-accent, #31a364) 0%, var(--obra-primary, #1a4731) 100%);
color: #fff;
}
.login-screen .login-submit:active:not(:disabled) { transform: translateY(0); }
.login-screen .login-submit:disabled { opacity: .7; cursor: not-allowed; }
.login-screen .login-submit-spinner { display: none; }
.login-screen .login-submit.is-loading .login-submit-text   { opacity: 0; }
.login-screen .login-submit.is-loading .login-submit-spinner { display: inline; }
.login-screen .login-submit.is-success {
background: linear-gradient(135deg, #22c55e, #16a34a);
box-shadow: 0 4px 16px rgba(34,197,94,.4);
} .login-screen .login-forgot {
display: flex;
text-align: center;
margin-top: 18px;
font-size: 13px;
color: #6b7280;
text-decoration: none;
transition: color .2s;
align-items: center;
justify-content: center;
gap: 6px;
}
.login-screen .login-forgot:hover { color: var(--obra-accent, #31a364); }
.login-screen .login-forgot i { font-size: 12px; } @keyframes loginShake {
0%, 100% { transform: translateX(0); }
20%       { transform: translateX(-6px); }
40%       { transform: translateX(6px); }
60%       { transform: translateX(-4px); }
80%       { transform: translateX(4px); }
}
.login-body.shake { animation: loginShake .5s ease; } @media (max-width: 480px) {
.login-screen { padding: 16px 12px; align-items: flex-start; padding-top: 48px; }
.login-card   { border-radius: 20px; }
.login-brand  { padding: 32px 24px 28px; }
.login-body   { padding: 24px 20px 28px; }
.login-brand-title { font-size: 20px; }
} .convite-expira {
margin-top: 10px;
font-size: 12px;
color: #9ca3af;
}
.convite-tabs {
display: flex;
gap: 4px;
margin-bottom: 18px;
background: #f2f4f7;
border-radius: 10px;
padding: 4px;
}
.convite-tab-btn {
flex: 1;
padding: 9px 12px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
color: #667085;
cursor: pointer;
transition: background .2s, color .2s;
text-align: center;
}
.convite-tab-btn.active {
background: #fff;
color: var(--obra-accent, #31a364);
box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.convite-panel { display: none; }
.convite-panel.active { display: block; }
.convite-login-link { margin-top: 14px; }
.convite-erro {
text-align: center;
padding: 40px 24px;
}
.convite-erro-icon {
font-size: 32px;
color: #d92d20;
margin-bottom: 12px;
}  @keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.3s ease;
}  .diario-text {
font-size: 14px;
line-height: 1.7;
color: var(--obra-muted);
}
.diario-text > *:first-child { margin-top: 0; }
.diario-text > *:last-child  { margin-bottom: 0; } .diario-text p      { margin: 0 0 12px; }
.diario-text h2,
.diario-text h3,
.diario-text h4     { color: var(--obra-text); margin: 18px 0 8px; font-weight: 600; }
.diario-text ul,
.diario-text ol     { padding-left: 20px; margin: 0 0 12px; }
.diario-text li     { margin-bottom: 4px; }
.diario-text strong { color: var(--obra-text); }
.diario-text a      { color: var(--obra-accent); text-decoration: underline; }
.diario-text a:hover{ opacity: .8; } .diario-text p:empty { display: none; } .diario-text figure.wp-block-image {
margin: 16px 0;
border-radius: 10px;
overflow: hidden;
}
.diario-text figure.wp-block-image a {
display: block;
line-height: 0;
}
.diario-text figure.wp-block-image img {
max-width: 100%;
height: auto;
width: 100%;
border-radius: 10px;
display: block;
transition: transform .3s ease;
cursor: zoom-in;
}
.diario-text figure.wp-block-image a:hover img {
transform: scale(1.02);
}
.diario-text figure.wp-block-image figcaption {
font-size: 11px;
color: var(--obra-muted);
text-align: center;
padding: 6px 8px 2px;
font-style: italic;
} .diario-text .wp-block-gallery.has-nested-images {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
margin: 20px 0;
border-radius: 12px;
overflow: hidden;
background: var(--obra-border);
} .diario-text .wp-block-gallery.has-nested-images:has(> figure:only-child) {
grid-template-columns: 1fr;
} .diario-text .wp-block-gallery.has-nested-images:has(> figure:nth-child(2):last-child) {
grid-template-columns: repeat(2, 1fr);
} .diario-text .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.diario-text .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); } .diario-text .wp-block-gallery.has-nested-images figure.wp-block-image {
margin: 0;
overflow: hidden;
aspect-ratio: 4 / 3;
background: #c8d8cc;
position: relative;
} .diario-text .wp-block-gallery.has-nested-images figure.wp-block-image::after {
content: '';
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0);
transition: background .25s ease;
pointer-events: none;
z-index: 1;
}
.diario-text .wp-block-gallery.has-nested-images figure.wp-block-image:hover::after {
background: rgba(0, 0, 0, .28);
}
.diario-text .wp-block-gallery.has-nested-images figure.wp-block-image a {
display: block;
width: 100%;
height: 100%;
line-height: 0;
}
.diario-text .wp-block-gallery.has-nested-images figure.wp-block-image img {
width: 100%;
height: 100%;
object-fit: cover;
cursor: zoom-in;
transition: transform .4s ease;
display: block;
}
.diario-text .wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
transform: scale(1.08);
} .diario-text .wp-block-gallery.has-nested-images figcaption {
position: absolute;
bottom: 0;
left: 0; right: 0;
background: linear-gradient(transparent, rgba(0,0,0,.55));
color: #fff;
font-size: 11px;
padding: 20px 8px 6px;
text-align: center;
z-index: 2;
opacity: 0;
transition: opacity .25s;
}
.diario-text .wp-block-gallery.has-nested-images figure.wp-block-image:hover figcaption {
opacity: 1;
} .diario-text .wp-block-embed {
margin: 16px 0;
}
.diario-text .wp-block-embed__wrapper {
position: relative;
padding-bottom: 56.25%; height: 0;
overflow: hidden;
border-radius: 12px;
background: #000;
box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.diario-text .wp-block-embed__wrapper iframe,
.diario-text .wp-block-embed__wrapper embed,
.diario-text .wp-block-embed__wrapper object,
.diario-text .wp-block-embed__wrapper video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: none;
border-radius: 12px;
} .diario-text .wp-embed-aspect-4-3  .wp-block-embed__wrapper { padding-bottom: 75%; }
.diario-text .wp-embed-aspect-1-1  .wp-block-embed__wrapper { padding-bottom: 100%; }
.diario-text .wp-embed-aspect-9-16 .wp-block-embed__wrapper { padding-bottom: 177.78%; } .diario-text .wp-block-embed figcaption {
font-size: 11px;
color: var(--obra-muted);
text-align: center;
margin-top: 6px;
font-style: italic;
} .diario-text .wp-block-video video,
.diario-text video {
max-width: 100%;
border-radius: 10px;
display: block;
} .diario-text .wp-block-audio audio,
.diario-text audio {
width: 100%;
margin: 8px 0;
} .diario-text .wp-block-separator,
.diario-text hr {
border: none;
border-top: 1px solid var(--obra-border);
margin: 20px 0;
} .diario-text blockquote,
.diario-text .wp-block-quote {
border-left: 3px solid var(--obra-accent);
margin: 14px 0;
padding: 10px 16px;
background: rgba(49,163,100,.06);
border-radius: 0 8px 8px 0;
font-style: italic;
color: var(--obra-text);
} .diario-text pre,
.diario-text .wp-block-code {
background: #f4f6f4;
border-radius: 8px;
padding: 14px 16px;
font-size: 13px;
overflow-x: auto;
} @media (max-width: 600px) {
.diario-text .wp-block-gallery.has-nested-images,
.diario-text .wp-block-gallery.columns-3,
.diario-text .wp-block-gallery.columns-4 {
grid-template-columns: repeat(2, 1fr) !important;
}
.diario-text .wp-block-gallery.has-nested-images:has(> figure:only-child),
.diario-text .wp-block-gallery.has-nested-images:has(> figure:nth-child(2):last-child) {
grid-template-columns: 1fr !important;
}
} .colaborador-novo-diario {
margin-bottom: 28px;
}
.colaborador-diario-form {
margin-top: 16px;
background: #f8f9fa;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 24px;
}
.colaborador-diario-form h3 {
font-size: 16px;
font-weight: 600;
margin: 0 0 16px;
color: #1a202c;
}
.colaborador-diario-form .portal-form-group {
margin-bottom: 16px;
}
.colaborador-diario-form label {
display: block;
font-size: 13px;
font-weight: 600;
color: #4a5568;
margin-bottom: 6px;
}
.colaborador-diario-form input[type="text"],
.colaborador-diario-form select,
.colaborador-diario-form textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid #cbd5e0;
border-radius: 6px;
font-size: 14px;
color: #2d3748;
background: #fff;
box-sizing: border-box;
transition: border-color 0.2s;
}
.colaborador-diario-form input[type="text"]:focus,
.colaborador-diario-form select:focus,
.colaborador-diario-form textarea:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}
.colaborador-diario-form .portal-form-actions {
display: flex;
gap: 10px;
margin-top: 4px;
}
#colaborador-diario-msg .portal-notice {
padding: 10px 14px;
border-radius: 6px;
font-size: 14px;
margin-bottom: 14px;
}
#colaborador-diario-msg .portal-notice.success {
background: #f0fff4;
border: 1px solid #9ae6b4;
color: #276749;
}
#colaborador-diario-msg .portal-notice.error {
background: #fff5f5;
border: 1px solid #feb2b2;
color: #c53030;
} .portal-configuracoes-cliente {
max-width: 560px;
margin: 0 auto;
padding: 32px 16px 64px;
}
.portal-config-card {
background: #fff;
border-radius: 14px;
box-shadow: 0 4px 20px rgba(0,0,0,.08);
overflow: hidden;
}
.portal-config-card h2 {
margin: 0;
padding: 22px 24px 18px;
font-size: 1.1rem;
font-weight: 700;
color: var(--secondary-color);
border-bottom: 1px solid var(--border-color);
background: var(--light-bg);
}
.portal-config-field {
padding: 22px 24px;
border-bottom: 1px solid var(--border-color);
}
.portal-config-field label {
display: flex;
align-items: center;
gap: 10px;
font-size: 15px;
font-weight: 600;
color: #2d3748;
cursor: pointer;
user-select: none;
}
.portal-config-field label input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: var(--primary-color);
flex-shrink: 0;
cursor: pointer;
}
.portal-config-description {
margin: 8px 0 0 28px;
font-size: 13px;
color: #718096;
line-height: 1.5;
}
.portal-config-actions {
padding: 20px 24px;
display: flex;
justify-content: flex-end;
}
.portal-configuracoes-cliente .portal-button {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 11px 24px;
background: var(--primary-color);
color: #fff;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background .2s, transform .15s;
text-decoration: none;
}
.portal-configuracoes-cliente .portal-button:hover {
background: var(--secondary-color);
color: #fff;
transform: translateY(-1px);
}
.portal-configuracoes-cliente .portal-button:active {
transform: translateY(0);
} .portal-notice {
padding: 12px 16px;
border-radius: 8px;
font-size: 14px;
margin-bottom: 20px;
display: flex;
align-items: flex-start;
gap: 10px;
line-height: 1.5;
}
.portal-notice--success {
background: #f0fff4;
border: 1px solid #9ae6b4;
color: #276749;
}
.portal-notice--error {
background: #fff5f5;
border: 1px solid #feb2b2;
color: #c53030;
} .portal-config-divider {
border: none;
border-top: 1px solid var(--border-color, #e2e8f0);
margin: 0;
}
.portal-config-section-title {
padding: 20px 24px 4px;
}
.portal-config-section-title h3 {
font-size: .95rem;
font-weight: 700;
margin: 0 0 4px;
color: var(--secondary-color, #1a202c);
}
.portal-config-section-title .portal-config-description {
margin: 0;
} .portal-config-field label[for] {
display: block;
cursor: default;
user-select: auto;
font-size: 13px;
font-weight: 600;
color: #4a5568;
margin-bottom: 8px;
}
.portal-config-field input[type="text"],
.portal-config-field input[type="email"] {
width: 100%;
box-sizing: border-box;
padding: 10px 14px;
border: 1px solid var(--border-color, #e2e8f0);
border-radius: 8px;
font-size: .95rem;
background: #fafafa;
outline: none;
transition: border-color .2s, box-shadow .2s;
}
.portal-config-field input[type="text"]:focus,
.portal-config-field input[type="email"]:focus {
border-color: var(--primary-color, #3b82f6);
box-shadow: 0 0 0 3px rgba(59,130,246,.12);
background: #fff;
}
.portal-password-wrap {
position: relative;
display: flex;
align-items: center;
}
.portal-password-wrap input[type="password"],
.portal-password-wrap input[type="text"] {
width: 100%;
box-sizing: border-box;
padding: 10px 42px 10px 14px;
border: 1px solid var(--border-color, #e2e8f0);
border-radius: 8px;
font-size: .95rem;
background: #fafafa;
outline: none;
transition: border-color .2s, box-shadow .2s;
}
.portal-password-wrap input:focus {
border-color: var(--primary-color, #3b82f6);
box-shadow: 0 0 0 3px rgba(59,130,246,.12);
background: #fff;
}
.portal-password-eye {
position: absolute;
right: 12px;
background: none;
border: none;
padding: 0;
cursor: pointer;
color: #a0aec0;
font-size: 15px;
line-height: 1;
transition: color .2s;
}
.portal-password-eye:hover {
color: var(--primary-color, #3b82f6);
} .portal-password-strength {
display: flex;
align-items: center;
gap: 10px;
margin-top: 8px;
}
.portal-password-strength__bar {
flex: 1;
height: 5px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
.portal-password-strength__bar span {
display: block;
height: 100%;
border-radius: 4px;
transition: width .3s, background .3s;
}
.portal-password-strength__bar .strength-1 { width: 20%; background: #e53e3e; }
.portal-password-strength__bar .strength-2 { width: 40%; background: #dd6b20; }
.portal-password-strength__bar .strength-3 { width: 60%; background: #d69e2e; }
.portal-password-strength__bar .strength-4 { width: 80%; background: #38a169; }
.portal-password-strength__bar .strength-5 { width: 100%; background: #2f855a; }
#password-strength-label {
font-size: .78rem;
font-weight: 600;
white-space: nowrap;
min-width: 72px;
text-align: right;
}
#password-match-msg {
font-size: .8rem;
margin-top: 6px;
}
@media (max-width: 600px) {
.portal-configuracoes-cliente {
padding: 20px 12px 48px;
}
.portal-config-card h2,
.portal-config-field,
.portal-config-actions {
padding-left: 16px;
padding-right: 16px;
}
}