@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/static/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/static/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/static/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    body {
        display: flex;
        flex-direction: column;
        min-height: 10vh;
        background: #fff;
        color: #202124;
        font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    /* Menu lateral */
    .sidebar {
        width: 256px;
        background: #fff;
        color: #5f6368;
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 8px;
        position: fixed;
        border-right: 1px solid #e8eaed;
    }
    .sidebar h2 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        color: #202124;
        padding: 12px 20px;
        font-weight: 500;
    }
    .sidebar a {
        color: #5f6368;
        text-decoration: none;
        padding: 10px 20px;
        display: block;
        border-radius: 0 24px 24px 0;
        transition: all 0.2s ease;
        font-size: 14px;
        margin: 2px 0;
    }
    .sidebar a:hover {
        background: #e8f0fe;
        color: #1a73e8;
    }
    /* Conteúdo principal */
    .main {
        margin-left: 240px;
        padding: 1.5rem;
        flex: 1;
    }
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }
    .header input {
        padding: 0.5rem;
        width: 250px;
        border: 1px solid #ccc;
        border-radius: 4px;
        outline: none;
        transition: border 0.2s;
    }
    .header input:focus {
        border: 1px solid #1a73e8;
        box-shadow: none;
        outline: none;
    }
    .header button {
        padding: 8px 24px;
        background: #1a73e8;
        border: none;
        color: #fff;
        border-radius: 24px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 14px;
        font-weight: 500;
    }
    .header button:hover {
        background: #1557b0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    Cards
    .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
        
    }
    .card {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
        padding: 1rem;
        transition: all 0.2s ease;
        margin-left:1rem;
        border: 1px solid transparent;
    }
    .card:hover {
        box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    }
    .card h3 {
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
        color: #202124;
        font-weight: 500;
    }
    .card p {
        margin-bottom: 0.4rem;
        /* font-size: 0.9rem; */
    }
    .card button {
        width: 100%;
        padding: 8px;
        background: #1a73e8;
        border: none;
        color: #fff;
        border-radius: 24px;
        cursor: pointer;
        margin-top: 0.5rem;
        transition: all 0.2s ease;
        font-weight: 500;
        font-size: 14px;
    }
    .card button:hover {
        background: #1557b0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    /* Rodapé */
    footer {
        background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
        color: #e0e7ff;
        text-align: center;
        padding: 0.8rem;
        font-size: 0.85rem;
        margin-top: auto;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    .item_cond{
        margin-top: 10px;
    }
    hr{
         border: none;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--hr-color), transparent);
        margin: 1.5rem auto;
        width: 90%;
	}


    /* tabela  */

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    thead {
      background: #f8f9fa;
      border-bottom: 1px solid #dadce0;
    }

    thead th {
      text-align: left;
      padding: 12px 16px;
      color: #5f6368;
      font-weight: 500;
      font-size: 14px;
    }

    tbody tr {
      border-bottom: 1px solid #e8eaed;
    }

    tbody td {
      padding: 12px 16px;
      color: #202124;
      font-size: 14px;
    }

    tbody tr:hover {
      background: #f1f3f4;
      transition: background 0.2s ease;
    }

    /* Status */
    .status {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
    }

    .ativo {
      background: #d1fae5;
      color: #065f46;
      font-weight: 600;
    }

    .pendente {
      background: #fef3c7;
      color: #92400e;
      font-weight: 600;
    }

    .desativado {
      background: #fee2e2;
      color: #991b1b;
      font-weight: 600;
    }

    .card {
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      border: none;
      max-width: 650px;
      
    }
    .card-header {
      background-color: #fff;
      border-bottom: 1px solid #e5e7eb;
      border-radius: 12px 12px 0 0;
      padding: 20px;
    }

    /* Correção específica para o jQuery UI Datepicker
       Evita texto cortado ao usar box-sizing global e fonte Inter */
    .ui-datepicker,
    .ui-datepicker * {
        box-sizing: content-box;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    .ui-datepicker {
        font-size: 12px; /* ajuste se quiser maior/menor */
    }

    .ui-datepicker .ui-datepicker-title {
        line-height: 1.8; /* ajuda a não cortar o texto do mês/ano */
    }

    /* Deixa o cabeçalho um pouco mais alto e harmoniza o tamanho
       da fonte dos dias com o título do calendário */
    .ui-datepicker .ui-datepicker-header {
        padding: 0.5em 0.2em;
    }

    .ui-datepicker th,
    .ui-datepicker td span,
    .ui-datepicker td a {
        font-size: 11px;
    }
    .card-header h5 {
      margin-bottom: 0;
    }
    .info-item {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #e5e7eb;
    }
    .info-item:last-child {
      border-bottom: none;
    }
    .info-label {
      font-weight: 600;
      color: #374151;
    }
    .info-value {
      color: #6b7280;
    }
    .status {
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
    }
    .status-ativo {
      background-color: #d1fae5;
      color: #065f46;
    }
    .status-inativo {
      background-color: #fee2e2;
      color: #991b1b;
    }
     .dashboard-page {
        font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        background: #f5f7fb;
        padding: 24px 24px 40px;
    }

    .dashboard-header-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .dashboard-title {
        font-size: 22px;
        font-weight: 600;
        color: #111827;
        margin: 0 0 4px;
    }

    .dashboard-subtitle {
        font-size: 13px;
        color: #6b7280;
        margin: 0;
    }

    .dashboard-summary-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
        margin-bottom: 28px;
    }

    .summary-card {
        background: linear-gradient(135deg, #4f46e5, #3b82f6);
        border-radius: 18px;
        padding: 18px 20px;
        color: #fff;
        position: relative;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    }

    .summary-fornecedores {
        background: linear-gradient(135deg, #0f766e, #14b8a6);
    }

    .summary-main {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
    }

    .summary-label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        opacity: 0.85;
    }

    .summary-title {
        font-size: 18px;
        margin: 4px 0 10px;
        font-weight: 600;
    }

    .summary-value {
        font-size: 32px;
        font-weight: 700;
    }

    .summary-icon {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
    }

    .summary-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        color: #e5e7eb;
        text-decoration: none;
        opacity: 0.9;
    }

    .summary-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

    .dashboard-card {
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
        padding: 20px 22px 22px;
    }

    .dashboard-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .dashboard-card-title-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dashboard-card-icon {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: #eef2ff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4f46e5;
        font-size: 16px;
    }

    .dashboard-card-title {
        font-size: 16px;
        margin: 0;
        font-weight: 600;
        color: #111827;
    }

    .dashboard-card-subtitle {
        font-size: 12px;
        color: #6b7280;
    }

    .btn-filter-despesas {
        border-radius: 999px;
        padding: 6px 14px;
        background: #f3f4ff;
        color: #4f46e5;
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .btn-filter-despesas:hover {
        background: #e0e7ff;
        color: #4338ca;
        text-decoration: none;
    }

    .dashboard-card-body {
        border-top: 1px solid #f3f4f6;
        padding-top: 14px;
    }

    .dashboard-section+.dashboard-section {
        margin-top: 22px;
        padding-top: 14px;
        border-top: 1px solid #f3f4f6;
    }

    .section-header {
        margin-bottom: 10px;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6b7280;
        font-weight: 600;
    }

    .dashboard-table-wrapper {
        background: #f9fafb;
        border-radius: 12px;
        padding: 8px 10px;
    }

    .dashboard-table thead th {
        border-bottom: none;
        font-size: 12px;
        color: #6b7280;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        background: transparent;
    }

    .dashboard-table tbody td {
        font-size: 13px;
        color: #374151;
        vertical-align: middle !important;
    }

    .dashboard-table tbody tr:hover {
        background-color: #f3f4ff;
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 70px;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 500;
    }

    .status-pendente {
        background: #fff7ed;
        color: #c05621;
    }
    .status-negativo {
        
        background: #b34743;
        color: #360802;
    }
    .status-quitada {
        background: #ecfdf5;
        color: #047857;
    }

    .btn-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        border: none;
        background: #e5e7eb;
        color: #374151;
        text-decoration: none;
        font-size: 12px;
        margin-left: 4px;
    }

    .btn-action:hover {
        background: #d1d5db;
        color: #111827;
        text-decoration: none;
    }

    .empty-state {
        border-radius: 14px;
        background: #fffbeb;
        border: 1px dashed #facc15;
        padding: 24px 18px;
        text-align: center;
        color: #92400e;
    }

    .empty-state-soft {
        background: #f9fafb;
        border-color: #e5e7eb;
        color: #4b5563;
    }

    .empty-icon {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .empty-title {
        margin: 0 0 4px;
        font-weight: 500;
        font-size: 14px;
    }

    .empty-subtitle {
        margin: 0;
        font-size: 12px;
        opacity: 0.9;
    }

    @media (max-width: 768px) {
        .dashboard-page {
            padding: 16px 12px 28px;
        }

        .dashboard-card {
            padding: 16px 14px 18px;
        }

        .dashboard-header-bar {
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }
    }
    .lista-condominios-grid 	{
		margin-top: 15px;
	}

	.cond-card {
		background: #fff;
		border-radius: 8px;
		border: 1px solid #e0e0e0;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
		padding: 16px 18px;
		margin-bottom: 20px;
		display: flex;
		flex-direction: column;
		height: 100%;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.cond-card:hover {
		box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
		transform: translateY(-2px);
	}

	.cond-card-header {
		margin-bottom: 10px;
	}

	.cond-card-title {
		margin: 0;
		font-size: 16px;
		font-weight: 600;
		color: #333;
	}

	.cond-info {
		list-style: none;
		padding: 0;
		margin: 0 0 10px 0;
		font-size: 13px;
		color: #555;
	}

	.cond-info li {
		margin-bottom: 4px;
	}

	.cond-info .label-info {
		font-weight: 600;
		color: #666;
		margin-right: 4px;
		background: nonehttp: //localhost:8080/condominio/lista_condominios/;
	}

	.cond-indicadores-header {
		font-size: 11px;
		color: #777;
		margin-bottom: 6px;
		text-transform: uppercase;
	}

	.cond-indicadores-tags {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.chip {
		border-radius: 999px;
		padding: 4px 10px;
		font-size: 11px;
		line-height: 1.3;
		border: 1px solid transparent;
	}

	.chip-detail {
		margin-left: 4px;
		opacity: 0.85;
	}

	.chip-success {
		background-color: #e6f4ea;
		border-color: #a5d6a7;
		color: #256029;
	}

	.chip-danger {
		background-color: #fdecea;
		border-color: #f5c6cb;
		color: #a12622;
	}

	.chip-warning {
		background-color: #fff4e5;
		border-color: #ffcc80;
		color: #8a6d3b;
	}

	.chip-neutral {
		background-color: #f4f4f5;
		border-color: #d4d4d8;
		color: #4b5563;
	}

	.cond-card-footer {
		margin-top: auto;
		padding-top: 10px;
		border-top: 1px solid #f0f0f0;
		display: flex;
		gap: 6px;
		justify-content: space-between;
	}

	.cond-card-footer .btn {
		flex: 1 1 auto;
	}

	/* Destaque de risco na borda esquerda do card */
	.cond-card.risco-alto {
		border-left: 4px solid #e53935;
	}

	.cond-card.risco-medio {
		border-left: 4px solid #ffb300;
	}

	.cond-card.risco-baixo {
		border-left: 4px solid #43a047;
	}

	@media (max-width: 767px) {
		.cond-card-footer {
			flex-direction: column;
		}
	}

  /* itens de modal  */
  .cp-report-header {
        margin-bottom: 20px;
    }

    .cp-report-header h3 {
        font-weight: 600;
        color: #111827;
        margin-bottom: 4px;
    }

    .cp-report-header h3 small {
        font-weight: 500;
        color: #6b7280;
    }

    .cp-report-header p {
        margin: 0;
        color: #6b7280;
        font-size: 13px;
    }

    .cp-report-table-wrapper {
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        overflow: hidden;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
    }

    .cp-report-table {
        margin-bottom: 0;
        font-size: 13px;
    }

    .cp-report-table thead tr {
        background-color: #f9fafb;
    }

    .cp-report-table thead th {
        border-bottom: 1px solid #e5e7eb !important;
        color: #6b7280;
        font-weight: 600;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .cp-report-table tbody td {
        border-top: 1px solid #f3f4f6;
        color: #111827;
        vertical-align: middle;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .cp-report-table tbody tr:hover {
        background-color: #f9fafb;
    }

    .cp-report-total-row {
        background-color: #f3f4ff;
        color: #1d4ed8;
    }

    .cp-report-total-row th {
        border-top: 1px solid #e0e7ff !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .cp-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 70px;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .cp-status-active {
        background-color: #dcfce7;
        color: #166534;
    }

    .cp-status-inactive {
        background-color: #fef9c3;
        color: #854d0e;
    }

    .cp-report-section {
        margin-bottom: 20px;
    }

    .cp-report-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: 10px 10px 0 0;
        background-color: #f9fafb;
        border: 1px solid #e5e7eb;
        border-bottom: none;
    }

    .cp-report-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #111827;
    }

    .cp-report-section-title i {
        color: #2563eb;
    }

    .cp-report-section-meta {
        font-size: 12px;
        color: #6b7280;
    }

    .cp-report-summary-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 20px;
    }

    .cp-report-card {
        background-color: #ffffff;
        border-radius: 14px;
        border: 1px solid #e5e7eb;
        padding: 14px 16px;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
    }

    .cp-report-card-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .cp-report-card-icon {
        width: 26px;
        height: 26px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        color: #111827;
    }

    .cp-icon-purple {
        background: #eef2ff;
        color: #4f46e5;
    }

    .cp-icon-blue {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .cp-icon-green {
        background: #dcfce7;
        color: #15803d;
    }

    .cp-report-card-title {
        font-size: 13px;
        font-weight: 600;
        color: #111827;
    }

    .cp-report-card-body {
        font-size: 12px;
        color: #4b5563;
    }

    .cp-report-card-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
    }

    .cp-report-card-label {
        color: #6b7280;
    }

    .cp-report-card-value {
        font-weight: 600;
        color: #111827;
    }

    .cp-report-card-body-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    @media (max-width: 991px) {
        .cp-report-summary-row {
            grid-template-columns: 1fr;
        }
    }

    /* Página visualizar_cond - layout de cards e barra de ações */

    .cond-page {
        background-color: #f9fafb;
    }

    .cond-toolbar-wrapper {
        margin-bottom: 20px;
    }

    .cond-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border-radius: 999px;
        padding: 8px 12px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .cond-toolbar-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .cond-toolbar-item {
        position: relative;
    }

    .cond-toolbar-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        background-color: #ffffff;
        color: #111827;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
    }

    .cond-toolbar-btn:hover,
    .cond-toolbar-btn:focus {
        background-color: #f9fafb;
        border-color: #c7d2fe;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
        text-decoration: none;
        transform: translateY(-1px);
    }

    .cond-toolbar-icon {
        width: 20px;
        height: 20px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #e0f2fe;
        color: #0369a1;
        font-size: 12px;
    }

    .cond-toolbar-btn-warning {
        background: #fffbeb;
        border-color: #facc15;
        color: #92400e;
    }

    .cond-toolbar-btn-warning:hover {
        background: #fef3c7;
    }

    .cond-toolbar-btn-danger {
        background: #ef4444;
        border-color: #ef4444;
        color: #ffffff;
    }

    .cond-toolbar-btn-danger:hover {
        background: #b91c1c;
        border-color: #b91c1c;
        color: #ffffff;
    }

    .cond-toolbar-right {
        display: flex;
        align-items: center;
    }

    .cond-card {
        background-color: #ffffff;
        border-radius: 18px;
        border: 1px solid #e5e7eb;
        padding: 18px 20px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
        margin-bottom: 20px;
    }

    .cond-card-small {
        padding: 16px 18px;
    }

    .cond-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .cond-card-header-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .cond-card-header-icon {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: #eef2ff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4f46e5;
        font-size: 14px;
    }

    .cond-card-title {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #111827;
    }

    .cond-card-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        background: #f3f4ff;
        color: #4f46e5;
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
    }

    .cond-card-link:hover {
        background: #e0e7ff;
        color: #4338ca;
        text-decoration: none;
    }

    .cond-card-body {
        font-size: 13px;
        color: #4b5563;
    }

    .cond-card-body-two-cols {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .cond-card-column {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .cond-section-label {
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6b7280;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .cond-field-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #9ca3af;
        font-weight: 600;
    }

    .cond-field-value {
        font-size: 13px;
        color: #374151;
        margin-bottom: 6px;
    }

    .cond-field-value-strong {
        font-weight: 600;
        color: #111827;
    }

    .cond-chip-green {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 12px;
        border-radius: 999px;
        background: #dcfce7;
        color: #166534;
        font-size: 11px;
        font-weight: 600;
        align-self: flex-start;
    }

    .cond-card-table .cond-card-body {
        padding-top: 4px;
    }

    .cond-card-badge {
        padding: 4px 10px;
        border-radius: 999px;
        background: #eef2ff;
        color: #4f46e5;
        font-size: 11px;
        font-weight: 500;
    }

    .cond-accounts-list li + li {
        margin-top: 6px;
    }

    .cond-accounts-list a {
        display: block;
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        color: #111827;
        font-size: 13px;
        text-decoration: none;
        background: #f9fafb;
        transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    }

    .cond-accounts-list a:hover {
        background: #eef2ff;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
        text-decoration: none;
    }

    @media (max-width: 991px) {
        .cond-card-body-two-cols {
            grid-template-columns: 1fr;
        }

        .cond-toolbar {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            border-radius: 16px;
        }

        .cond-toolbar-right {
            width: 100%;
            justify-content: flex-start;
        }
    }

    /* Tela de login moderna */

    .login-page {
        min-height: 100vh;
        background: radial-gradient(circle at top left, #1d4ed8 0, #0f172a 42%, #020617 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 16px;
    }

    .login-wrapper {
        width: 100%;
        max-width: 380px;
    }

    .login-card {
        background-color: #ffffff;
        border-radius: 18px;
        padding: 22px 22px 20px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
        border: 1px solid rgba(148, 163, 184, 0.35);
    }

    .login-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .login-logo img {
        max-height: 80px;
        width: auto;
    }

    .login-header {
        text-align: center;
        margin-bottom: 14px;
    }

    .login-title {
        font-size: 18px;
        font-weight: 600;
        color: #0f172a;
        margin: 0 0 4px;
    }

    .login-subtitle {
        font-size: 13px;
        color: #6b7280;
        margin: 0;
    }

    .login-form .form-group {
        margin-bottom: 12px;
    }

    .login-form label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #6b7280;
        margin-bottom: 4px;
    }

    .login-form .form-control {
        border-radius: 999px;
        border-color: #d1d5db;
        font-size: 13px;
        padding: 8px 12px;
        height: auto;
        box-shadow: none;
    }

    .login-form .form-control:focus {
        border-color: #4f46e5;
        box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.35);
    }

    .login-button {
        margin-top: 6px;
        border-radius: 999px;
        border: none;
        background: linear-gradient(135deg, #4f46e5, #3b82f6);
        font-size: 14px;
        font-weight: 600;
        padding: 8px 12px;
        box-shadow: 0 10px 18px rgba(37, 99, 235, 0.4);
    }

    .login-button:hover {
        background: linear-gradient(135deg, #4338ca, #2563eb);
        box-shadow: 0 12px 22px rgba(37, 99, 235, 0.55);
    }

    .login-alert {
        border-radius: 12px;
        font-size: 13px;
        padding: 8px 10px;
        margin-bottom: 12px;
    }

    .login-footer-text {
        margin-top: 10px;
        text-align: center;
        font-size: 11px;
        color: #9ca3af;
    }

    @media (max-width: 480px) {
        .login-card {
            padding: 18px 16px 18px;
        }

        .login-title {
            font-size: 17px;
        }
    }

    /* Correção visual do jQuery UI Datepicker */
.ui-datepicker {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;          /* ou 0.85rem, ajuste se quiser maior/menor */
}

.ui-datepicker .ui-datepicker-title {
    line-height: 1.6;         /* evita cortar "Março 2026" na parte de cima/baixo */
}
.ui-state-default{
    font-size: 11px;          /* harmoniza o tamanho dos dias com o título do calendário */
    text-align: center;
}
.ui-datepicker th {
    padding: 0.4em 0.3em;     /* cabe melhor o texto Dom/Seg/... */
}

.ui-datepicker td span,
.ui-datepicker td a {
    padding: 0.25em 0;        /* reduz um pouco a altura interna da célula */
    line-height: 1.4;
}
.form-control.datepicker,
input.datepicker {
    line-height: 1.2;
    padding-top: 4px;
    padding-bottom: 4px;
}
.ui-datepicker-title{
    font-size: 12px;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    text-align: center;
}

   .modal-loader {
        display: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
        text-align: center;
    }

    .modal-loader.show {
        display: block;
    }

    .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
        margin: 0 auto 10px;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .modal-content.loading {
        opacity: 0.5;
        pointer-events: none;
    }
/* Alterando dimensão das células da tabela para evitar corte de texto e melhorar legibilidade */
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
    height: 15px;
}

/* Caixa de alerta personalizada */
#cp-custom-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

#cp-custom-alert-backdrop .cp-custom-alert {
    background: #fff;
    max-width: 420px;
    margin: 12% auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#cp-custom-alert-backdrop .cp-custom-alert-header {
    padding: 10px 16px;
    background: #F8FAFC;
    color: #333;
    font-weight: bold;
}

#cp-custom-alert-backdrop .cp-custom-alert-body {
    padding: 16px;
    font-size: 14px;
    color: #333;
}

#cp-custom-alert-backdrop .cp-custom-alert-footer {
    padding: 10px 16px;
    text-align: right;
    background: #f5f5f5;
}

/* Caixa de confirmação personalizada */
#cp-custom-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

#cp-custom-confirm-backdrop .cp-custom-alert {
    background: #fff;
    max-width: 420px;
    margin: 12% auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#cp-custom-confirm-backdrop .cp-custom-alert-header {
    padding: 10px 16px;
    background: #F8FAFC;
    color: #333;
    font-weight: bold;
}

#cp-custom-confirm-backdrop .cp-custom-alert-body {
    padding: 16px;
    font-size: 14px;
    color: #333;
}

#cp-custom-confirm-backdrop .cp-custom-alert-footer {
    padding: 10px 16px;
    text-align: right;
    background: #f5f5f5;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.logo_cond{
    max-height: 40px;
    width: auto;
}

/* Ajustes da logo do topo na navbar */
.navbar-inverse .navbar-brand {
    display: flex;
    align-items: center;
    padding: 5px 20px;
}

.navbar-inverse .navbar-brand img.logo_cond {
    max-height: 180px;
    height: auto;
    width: auto;
    display: block;
    margin-top:15px;
}
.cp-reports-wrapper {
		background-color: #f9fafb;
		border-radius: 16px;
		padding: 24px 28px;
		border: 1px solid #e5e7eb;
		box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
	}

	.cp-reports-header h2 {
		font-size: 22px;
		font-weight: 600;
		color: #111827;
		margin-bottom: 4px;
	}

	.cp-reports-header p {
		margin: 0 0 18px;
		color: #6b7280;
		font-size: 13px;
	}

	.cp-reports-toolbar {
		margin-top: 10px;
		margin-bottom: 8px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		flex-wrap: wrap;
	}

	.cp-reports-search-wrapper {
		position: relative;
		flex: 1 1 220px;
		max-width: 420px;
	}

	.cp-reports-search-input {
		width: 100%;
		border-radius: 999px;
		border: 1px solid #d1d5db;
		padding: 7px 12px 7px 30px;
		font-size: 13px;
		outline: none;
		transition: border-color 0.15s ease, box-shadow 0.15s ease;
	}

	.cp-reports-search-input:focus {
		border-color: #4f46e5;
		box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
	}

	.cp-reports-search-icon {
		position: absolute;
		left: 10px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 12px;
		color: #9ca3af;
	}

	.cp-reports-counter {
		font-size: 12px;
		color: #4b5563;
		white-space: nowrap;
	}

	.cp-reports-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}

	.cp-report-card {
		background-color: #ffffff;
		border-radius: 18px;
		border: 1px solid #e5e7eb;
		padding: 18px 16px 16px;
		box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cp-report-card-icon-wrapper {
		width: 46px;
		height: 46px;
		border-radius: 16px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 20px;
	}

	.cp-icon-blue {
		background: #dbeafe;
		color: #1d4ed8;
	}

	.cp-icon-purple {
		background: #eef2ff;
		color: #4f46e5;
	}

	.cp-icon-green {
		background: #dcfce7;
		color: #15803d;
	}

	.cp-report-card-body h4 {
		font-size: 15px;
		font-weight: 600;
		color: #111827;
		margin: 0 0 4px;
	}

	.cp-report-card-body p {
		margin: 0 0 10px;
		font-size: 12px;
		color: #6b7280;
	}

	.cp-report-card-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 6px 14px;
		border-radius: 999px;
		border: none;
		background-color: #111827;
		color: #ffffff !important;
		font-size: 12px;
		font-weight: 500;
		text-decoration: none;
		transition: background-color 0.2s ease, transform 0.1s ease;
	}

	.cp-report-card-button:hover {
		background-color: #020617;
		text-decoration: none;
		transform: translateY(-1px);
	}

	@media (max-width: 991px) {
		.cp-reports-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

	@media (max-width: 767px) {
		.cp-reports-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==========================================================================
   Modal de formulário padrão (reutilizável)
   Aplique a classe "cp-form-modal" no ".modal-content" de qualquer modal
   de cadastro/edição para herdar cabeçalho, rodapé e campos com este visual.
   Combine com "cp-form-section" / "cp-form-section-title" (complemento.css)
   para agrupar os campos em blocos com título.
   ========================================================================== */
.cp-form-modal {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
    overflow: hidden;
}
.cp-form-modal .modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e7edf5;
    padding: 18px 24px;
}
.cp-form-modal .modal-header .titulo_pagina h3,
.cp-form-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #122033;
}
.cp-form-modal .modal-header .titulo_pagina h3 i,
.cp-form-modal .modal-title i {
    color: #0f5cc0;
    margin-right: 8px;
}
.cp-form-modal .modal-body {
    padding: 24px;
    background: #fff;
}
.cp-form-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e7edf5;
    padding: 14px 24px;
}
.cp-form-modal .form-group {
    margin-bottom: 16px;
}
.cp-form-modal label {
    font-weight: 600;
    font-size: 13px;
    color: #344054;
    margin-bottom: 6px;
}
.cp-form-modal .form-control {
    border-radius: 8px;
    border: 1px solid #d7dee8;
    padding: 9px 12px;
    height: auto;
    box-shadow: none;
}
.cp-form-modal .form-control:focus {
    border-color: #0f5cc0;
    box-shadow: 0 0 0 3px rgba(15, 92, 192, .12);
}
.cp-form-modal .btn-primary {
    background: #0f5cc0;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 600;
}
.cp-form-modal .btn-primary:hover,
.cp-form-modal .btn-primary:focus {
    background: #0c4fa7;
    color: #fff;
}
.cp-form-modal .modal-footer .btn-default {
    border-radius: 8px;
    padding: 9px 18px;
}
@media (max-width: 768px) {
    .cp-form-modal .modal-body {
        padding: 18px;
    }
}


/* ==========================================================
   Monitoramento das recorrências (/monitoramento)
   ========================================================== */
.monit-page .dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.monit-filtros {
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.monit-filtros label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.monit-filtros-acoes {
    padding-top: 24px;
}

.monit-filtros-secao {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 4px 0 8px;
}

.monit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.monit-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    text-decoration: none;
}

.monit-chip:hover,
.monit-chip:focus {
    background: #e0e7ff;
    color: #312e81;
    text-decoration: none;
}

/* Barra de filtros do plano de contas */
.plano-filtros {
    margin: 12px 0 4px;
}

.plano-filtros .form-group {
    margin-bottom: 8px;
}

.plano-filtros label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.monit-rotinas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.monit-rotina {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    border-left: 5px solid #94a3b8;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.monit-rotina-ok { border-left-color: #10b981; }
.monit-rotina-atrasada { border-left-color: #f59e0b; }
.monit-rotina-erro { border-left-color: #dc2626; }

.monit-rotina-icone {
    font-size: 22px;
    color: #64748b;
    margin-top: 2px;
}

.monit-rotina-ok .monit-rotina-icone { color: #10b981; }
.monit-rotina-atrasada .monit-rotina-icone { color: #f59e0b; }
.monit-rotina-erro .monit-rotina-icone { color: #dc2626; }

.monit-rotina-titulo {
    font-weight: 600;
    color: #1f2933;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.monit-rotina-detalhe {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.monit-summary-pendentes {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.monit-summary-erros {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.monit-card + .monit-card {
    margin-top: 20px;
}

.monit-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.monit-texto-erro {
    color: #b91c1c;
}

.monit-mensagem {
    max-width: 420px;
    font-size: 12px;
}

.status-badge.monit-status-aguardando {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-badge.monit-status-erro {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.monit-status-neutro {
    background: #f1f5f9;
    color: #475569;
}

/* Automação de acordos (/automacao_acordo) */
.automacao-dias {
    display: inline-block;
    width: 70px;
    margin: 4px 4px 0 0;
}

.automacao-chave {
    font-weight: 500;
    cursor: pointer;
}

.automacao-msg {
    max-width: 320px;
    margin-left: auto;
    font-size: 12px;
}
