.icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--surface);
        box-shadow: var(--shadow-2);
        display: grid;
        place-items: center;
        cursor: pointer;
        transition:
          0.15s transform ease,
          0.15s border-color ease;
        position: relative;
      }

.icon-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(47, 86, 179, 0.35);
      }

.pill {
        position: absolute;
        top: 6px;
        right: 6px;
        min-width: 18px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--brand-500);
        color: #fff;
        font-size: 12px;
        display: grid;
        place-items: center;
        font-weight: 400;
        border: 1px solid rgba(255, 255, 255, 0.25);
      }

.pill {
        transform-origin: center;
      }

.pill.is-pulsing {
        animation: notifBadgePulse 0.48s ease;
      }

.content {
        padding: var(--pad-6);
        min-width: 0;
      }

table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
        border-radius: var(--radius-xl);
        border: 1px solid var(--border);
        background: var(--surface);
      }

thead th {
        text-align: left;
        font-size: 12px;
        color: var(--muted);
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        background: var(--surface-2);
        font-weight: 400;
        letter-spacing: 0.2px;
        text-transform: uppercase;
      }

tbody td {
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
        font-size: 13px;
      }

.totais-table thead th {
        padding: 10px 12px;
      }

.totais-table tbody td {
        padding: 9px 12px;
      }

.totais-table .badge {
        min-width: 62px;
        justify-content: center;
      }

.totais-table thead th:last-child,
      .totais-table tbody td:last-child {
        text-align: center;
      }

tbody tr:last-child td {
        border-bottom: none;
      }

tbody tr {
        transition:
          background 0.15s ease,
          transform 0.15s ease;
      }

tbody tr.obra-row:hover td {
        background: rgba(47, 86, 179, 0.06);
      }

tbody tr.obra-row:hover {
        cursor: pointer;
      }

tbody tr:hover {
        cursor: pointer;
      }

.fases-header {
        transition: background 0.15s ease;
        border-radius: 8px;
        padding: 6px;
      }

.fases-header:hover {
        background: rgba(47, 86, 179, 0.06);
      }

tbody tr.open td {
        background: rgba(47, 86, 179, 0.1);
      }

.fases-table thead th {
        padding-top: 10px;
        padding-bottom: 10px;
      }

.fases-table tbody td {
        padding-top: 8px;
        padding-bottom: 8px;
      }

.fases-table .input {
        padding-top: 10px;
        padding-bottom: 10px;
      }

.fases-table tbody tr:hover td,
      #obraFasesTable tr:hover td {
        background: rgba(11, 27, 58, 0.05);
      }

.fases-table tbody tr:hover,
      #obraFasesTable tr:hover {
        cursor: default;
      }

.row-detail td {
        background: rgba(47, 86, 179, 0.03);
        padding: 18px;
      }

.obra-inline-wrap {
        animation: fadeInObra 0.18s ease;
      }

.obra-inline-wrap.detail-collapsible {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition:
          max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
          opacity 0.22s ease,
          transform 0.22s ease;
        animation: none;
      }

.obra-inline-wrap.detail-collapsible.is-open {
        max-height: 4200px;
        opacity: 1;
        transform: translateY(0);
      }

.obra-inline-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 14px;
      }

.dropdown {
        position: relative;
      }

.menu {
        position: absolute;
        right: 0;
        top: 50px;
        width: 360px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow);
        padding: 12px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px) scale(0.98);
        transition:
          opacity 0.18s ease,
          transform 0.18s ease,
          visibility 0s linear 0.18s;
        z-index: 50;
        transform-origin: top right;
        will-change: transform, opacity;
      }

.menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition:
          opacity 0.18s ease,
          transform 0.18s ease,
          visibility 0s linear 0s;
      }

.menu h4 {
        margin: 6px 8px 10px;
        font-size: 12px;
        letter-spacing: 0.2px;
        text-transform: uppercase;
        color: var(--muted);
      }

.notif {
        padding: 12px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--surface-2);
        margin: 8px 6px;
        animation: notifSlideIn 0.2s ease;
      }

.notif.notif-clickable {
        cursor: pointer;
        transition: border-color .16s ease, transform .16s ease, background .16s ease;
      }

.notif.notif-clickable:hover {
        border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
        background: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
        transform: translateY(-1px);
      }

.notif b {
        font-size: 13px;
        display: block;
        margin-bottom: 3px;
      }

.notif span {
        font-size: 12px;
        color: var(--muted);
      }

.notif-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 4px;
      }

.notif-date {
        font-size: 11px;
        color: var(--muted);
        font-weight: 400;
        white-space: nowrap;
      }

.notif-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
      }

.btn-mark-read {
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 12px;
      }

.notif-empty {
        padding: 16px 12px;
        border-radius: 14px;
        border: 1px dashed var(--border);
        background: var(--surface-2);
        color: var(--muted);
        text-align: center;
        margin: 8px 6px;
        font-size: 13px;
        font-weight: 700;
      }

.notif-note {
        margin: 8px 8px 10px;
        font-size: 12px;
        color: var(--muted);
        line-height: 1.35;
      }

.revision-modal {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(11, 18, 32, 0.42);
        backdrop-filter: blur(4px);
        z-index: 2000;
        padding: 24px;
      }

.revision-modal.open {
        display: flex;
      }

.revision-modal-card {
        width: min(720px, 96vw);
        max-height: 90vh;
        overflow: auto;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow);
        padding: 24px;
        opacity: 0;
        transform: translateY(14px) scale(0.985);
        transition:
          opacity 0.18s ease,
          transform 0.18s ease;
        will-change: transform, opacity;
      }

.revision-modal.open .revision-modal-card {
        opacity: 1;
        transform: translateY(0) scale(1);
      }

.report-date-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 14px;
      }

.report-extra-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 14px;
      }

.report-date-help {
        margin-top: 12px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.4;
      }

.btn-success-flash {
        animation: btnSuccessFlash 0.34s ease;
        box-shadow: 0 0 0 0 rgba(33, 163, 101, 0.18);
      }
