        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #22242C;
            min-height: 100vh;
            color: #22242C;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 24px;
        }

        .hidden {
            display: none;
        }

        .logo-button {
            width: 30px;
            height: 30px;
            cursor: pointer;
            margin-left: 10px;
            vertical-align: middle;
        }


        .panel {
            background: white;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            overflow: hidden;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
            margin-bottom: 5px;
        }

        .panel-header {
            background: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
            padding: 16px 20px;
            font-weight: 600;
            font-size: 14px;
            color: #374151;
            display: flex;
            align-items: center;
            gap: 8px;

        }

        .panel-content {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 16px;
        }

        .address-row {
            display: grid;
            grid-template-columns: 1fr 80px 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }

        label {
            display: block;
            margin-bottom: 4px;
            font-weight: 500;
            font-size: 13px;
            color: #374151;
        }

        input,
        select,
        textarea {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.2s;
            background: white;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .form-group {
            position: relative;
            margin-bottom: 16px;
        }

        .message-found {
            display: none;
            margin-top: 1px;
            font-size: 0.75rem;
            color: green;
            text-align: right;
        }

        .message-not-found {
            display: none;
            margin-top: 1px;
            font-size: 0.75rem;
            color: rgb(209, 5, 5);
            text-align: right;
        }


        .btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            margin-right: 8px;
            margin-bottom: 8px;
            width: 100%;
            text-align: center;
        }

        .btn:hover {
            background: #2563eb;
        }

        .btn-confirm {
            background: #10b981;
        }

        .btn-confirm:hover {
            background: #059669;
        }

        .btn-attention {
            background: #f59e0b;
        }

        .btn-attention:hover {
            background: #d97706;
        }

        .btn-limitted {
            min-width: 100px;
            max-width: 200px;
            width: auto;
            background-color: #616161;
            margin-left: auto;
            display: block;
            padding: 8px 16px;
            text-align: center;
        }

        .result-box {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 6px;
            padding: 12px;
            margin-top: 16px;
            font-size: 13px;
            display: none;
        }

        .result-box.error {
            background: #fef2f2;
            border-color: #fecaca;
            color: #991b1b;
        }

        .result-box.warning {
            background: #fffbeb;
            border-color: #fed7aa;
            color: #92400e;
        }

        .result-box.success {
            color: #166534;
        }

        .user-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-top: 12px;
        }

        .info-item {
            background: #f9fafb;
            padding: 12px;
            border-radius: 6px;
            border: 1px solid #e5e7eb;
        }

        .info-label {
            font-weight: 500;
            color: #6b7280;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .info-value {
            font-size: 13px;
            color: #1f2937;
            font-weight: 500;
        }

        .status-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-ativo {
            background: #d1fae5;
            color: #065f46;
        }

        .status-inativo {
            background: #fee2e2;
            color: #991b1b;
        }

        .status-pendente {
            background: #fef3c7;
            color: #92400e;
        }

        .search-results {
            max-height: 300px;
            overflow-y: auto;
        }

        .divider {
            height: 1px;
            background: #e5e7eb;
            margin: 16px 0;
        }

        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 26px;
        }

        .icon {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        textarea {
            resize: vertical;
            min-height: 60px;
        }

        .required {
            color: #ef4444;
        }

        @media (max-width: 768px) {
            .container {
                grid-template-columns: 1fr;
                padding: 12px;
            }

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

            .panel-content {
                padding: 16px;
            }
        }

        .notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: var(--primary-color);
            color: white;
            padding: 15px 45px 15px 20px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            max-width: 400px;
            transform: translateX(150%);
            transition: transform 0.3s ease;
            z-index: 1000;
        }


        .notification.show {
            transform: translateX(0);
        }

        #notification-message {
            word-break: break-word;
        }



        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }

            .card {
                border-radius: 8px;
            }

            .header {
                padding: 20px;
            }

            .form-container {
                padding: 20px;
            }

            .notification {
                max-width: calc(100% - 40px);
            }
        }

        .notification.success {
            background-color: #4CAF50;
        }

        .notification.info {
            background-color: #2196F3;
        }

        .notification.error {
            background-color: #f44336;
        }

        .notification.warning {
            background-color: #ff9800;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal-content {
            background-color: #fff;
            margin: 10% auto;
            padding: 20px;
            width: 80%;
            max-width: 500px;
            border-radius: 10px;
            position: relative;
        }

        .modal.show {
            display: block;
        }


        .close-btn {
            background: none;
            border: none;
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            font-size: 20px;
            cursor: pointer;
            color: white;
            line-height: 1;
            padding: 0;
        }

        .card {
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            background-color: #f9f9f9;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        }

        .card h3 {
            color: #333;
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        .card p {
            margin: 5px 0;
            line-height: 1.4;
        }

        .card strong {
            color: #555;
        }

        .no-edit {
            opacity: 0.7;
            pointer-events: none;
            background-color: #f8f8f8;
            border: 1px dashed #ccc;
        }

        .disabled-field {
            background-color: #e9e9e9;
            color: #666;
            cursor: not-allowed;
            border: 1px solid #ddd;
        }

        .no-edit-update {
            opacity: 0.7;
            pointer-events: none;
            background-color: #f8f8f8;
            border: 1px dashed #ccc;
        }


        .disabled-field+label,
        .no-edit .form-group label {
            color: #aaaaaa;
        }

        #basic-data {
            opacity: 1;
        }

        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-color: #4CAF50;
            /* Verde - pode mudar pra sua cor tema */
        }

        .btn-copy {
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            margin-left: auto;
            color: #666;
            transition: color 0.2s;
        }

        .btn-copy:hover {
            color: #333;
        }

        .btn-copy svg {
            display: block;
        }

        .panel-header {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        h4 {
            margin-bottom: 10px;
        }

        .btn-copy {
            background-color: white;
            color: #2563eb;
            border: 1px;
            border-color: #2563eb;
        }

        .btn:disabled,
        .btn-copy:disabled,
        .btn:disabled:hover,
        .btn-copy:disabled:hover {
            background-color: #cccccc !important;
            cursor: not-allowed !important;
            box-shadow: none !important;
            opacity: 0.7;
        }